♻️ Ruff reformatting.
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
from typing import Any
|
||||
|
||||
from collections.abc import Callable
|
||||
from json import JSONDecodeError
|
||||
from typing import Any
|
||||
|
||||
import tidalapi
|
||||
from requests import HTTPError
|
||||
|
||||
from tidal_dl_ng.helper.decorator import SingletonMeta
|
||||
from tidal_dl_ng.helper.path import path_file_settings, path_file_token
|
||||
from tidal_dl_ng.model.cfg import Settings as ModelSettings
|
||||
from tidal_dl_ng.model.cfg import Token as ModelToken
|
||||
from requests import HTTPError
|
||||
|
||||
|
||||
class BaseConfig:
|
||||
|
||||
@@ -6,7 +6,7 @@ from collections.abc import Callable
|
||||
from pathlib import Path
|
||||
|
||||
from pathvalidate import sanitize_filename
|
||||
from tidalapi import Album, Playlist, Track, UserPlaylist, Video, Mix
|
||||
from tidalapi import Album, Mix, Playlist, Track, UserPlaylist, Video
|
||||
|
||||
|
||||
def path_base():
|
||||
@@ -128,7 +128,7 @@ def length_max_name_file() -> int:
|
||||
try:
|
||||
if system in ['Darwin', 'Linux']:
|
||||
result: int = os.pathconf('/', 'PC_NAME_MAX')
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
return result
|
||||
@@ -141,7 +141,7 @@ def length_max_name_path() -> int:
|
||||
try:
|
||||
if system in ['Darwin', 'Linux']:
|
||||
result: int = os.pathconf('/', 'PC_PATH_MAX')
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
return result
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
from dataclasses import dataclass
|
||||
|
||||
from tidal_dl_ng.constants import QualityVideo
|
||||
from dataclasses_json import dataclass_json
|
||||
from tidalapi import Quality
|
||||
|
||||
from tidal_dl_ng.constants import QualityVideo
|
||||
|
||||
|
||||
@dataclass_json
|
||||
@dataclass
|
||||
|
||||
Reference in New Issue
Block a user