Skip to content

Commit b50e3bd

Browse files
committed
👷 Code style.
1 parent 1c4e669 commit b50e3bd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tidal_dl_ng/download.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,9 @@ def item(
334334
if media_id and media_type:
335335
# If no media instance is provided, we need to create the media instance.
336336
media = instantiate_media(self.session, media_type, media_id)
337-
elif isinstance(media, Track) or isinstance(media, Video): # Check if media is available not deactivated / removed from TIDAL.
337+
elif isinstance(media, Track) or isinstance(
338+
media, Video
339+
): # Check if media is available not deactivated / removed from TIDAL.
338340
if not media.available:
339341
self.fn_logger.info(
340342
f"This item is not available for listening anymore on TIDAL. Skipping: {name_builder_item(media)}"

tidal_dl_ng/helper/path.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,7 @@ def path_file_uniquify(path_file: pathlib.Path) -> pathlib.Path:
277277
# For most OS filename has a character limit of 255.
278278
path_file = (
279279
path_file.parent / (str(path_file.stem)[: -len(file_suffix)] + file_suffix)
280-
if len(str(path_file.parent / (path_file.stem + unique_suffix)))
281-
> FILENAME_LENGTH_MAX
280+
if len(str(path_file.parent / (path_file.stem + unique_suffix))) > FILENAME_LENGTH_MAX
282281
else path_file.parent / (path_file.stem + unique_suffix)
283282
)
284283

0 commit comments

Comments
 (0)