File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -334,7 +334,9 @@ def item(
334
334
if media_id and media_type :
335
335
# If no media instance is provided, we need to create the media instance.
336
336
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.
338
340
if not media .available :
339
341
self .fn_logger .info (
340
342
f"This item is not available for listening anymore on TIDAL. Skipping: { name_builder_item (media )} "
Original file line number Diff line number Diff line change @@ -277,8 +277,7 @@ def path_file_uniquify(path_file: pathlib.Path) -> pathlib.Path:
277
277
# For most OS filename has a character limit of 255.
278
278
path_file = (
279
279
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
282
281
else path_file .parent / (path_file .stem + unique_suffix )
283
282
)
284
283
You can’t perform that action at this time.
0 commit comments