mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2025-10-23 15:11:08 +00:00
style(dl): Standardize quotation marks for service attribute checks
This commit is contained in:
@@ -541,7 +541,7 @@ class dl:
|
|||||||
events.subscribe(events.Types.TRACK_REPACKED, service.on_track_repacked)
|
events.subscribe(events.Types.TRACK_REPACKED, service.on_track_repacked)
|
||||||
events.subscribe(events.Types.TRACK_MULTIPLEX, service.on_track_multiplex)
|
events.subscribe(events.Types.TRACK_MULTIPLEX, service.on_track_multiplex)
|
||||||
|
|
||||||
if hasattr(service, 'NO_SUBTITLES') and service.NO_SUBTITLES:
|
if hasattr(service, "NO_SUBTITLES") and service.NO_SUBTITLES:
|
||||||
console.log("Skipping subtitles - service does not support subtitle downloads")
|
console.log("Skipping subtitles - service does not support subtitle downloads")
|
||||||
no_subs = True
|
no_subs = True
|
||||||
s_lang = None
|
s_lang = None
|
||||||
@@ -911,7 +911,7 @@ class dl:
|
|||||||
while (
|
while (
|
||||||
not title.tracks.subtitles
|
not title.tracks.subtitles
|
||||||
and not no_subs
|
and not no_subs
|
||||||
and not (hasattr(service, 'NO_SUBTITLES') and service.NO_SUBTITLES)
|
and not (hasattr(service, "NO_SUBTITLES") and service.NO_SUBTITLES)
|
||||||
and not video_only
|
and not video_only
|
||||||
and len(title.tracks.videos) > video_track_n
|
and len(title.tracks.videos) > video_track_n
|
||||||
and any(
|
and any(
|
||||||
|
|||||||
Reference in New Issue
Block a user