style(dl): Standardize quotation marks for service attribute checks

This commit is contained in:
Andy
2025-08-05 23:27:59 +00:00
parent 948ef30de7
commit be0f7299f8

View File

@@ -541,7 +541,7 @@ class dl:
events.subscribe(events.Types.TRACK_REPACKED, service.on_track_repacked)
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")
no_subs = True
s_lang = None
@@ -911,7 +911,7 @@ class dl:
while (
not title.tracks.subtitles
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 len(title.tracks.videos) > video_track_n
and any(