diff --git a/unshackle/commands/dl.py b/unshackle/commands/dl.py index b0acdf7..92faa82 100644 --- a/unshackle/commands/dl.py +++ b/unshackle/commands/dl.py @@ -541,7 +541,12 @@ class dl: events.subscribe(events.Types.TRACK_REPACKED, service.on_track_repacked) events.subscribe(events.Types.TRACK_MULTIPLEX, service.on_track_multiplex) - if no_subs: + 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 + title.tracks.subtitles = [] + elif no_subs: console.log("Skipped subtitles as --no-subs was used...") s_lang = None title.tracks.subtitles = [] @@ -906,6 +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 video_only and len(title.tracks.videos) > video_track_n and any( diff --git a/unshackle/services/EXAMPLE/__init__.py b/unshackle/services/EXAMPLE/__init__.py index 686ef3f..64fdb8f 100644 --- a/unshackle/services/EXAMPLE/__init__.py +++ b/unshackle/services/EXAMPLE/__init__.py @@ -33,6 +33,7 @@ class EXAMPLE(Service): TITLE_RE = r"^(?:https?://?domain\.com/details/)?(?P[^/]+)" GEOFENCE = ("US", "UK") + NO_SUBTITLES = True @staticmethod @click.command(name="EXAMPLE", short_help="https://domain.com")