Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions devine/commands/dl.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ class dl:
help="Disable folder creation for TV Shows.")
@click.option("--no-source", is_flag=True, default=False,
help="Disable the source tag from the output file name and path.")
@click.option("--no-subs", is_flag=True, default=False,
help="Disable downloading of subtitles.")
@click.option("--workers", type=int, default=None,
help="Max workers/threads to download with per-track. Default depends on the downloader.")
@click.option("--downloads", type=int, default=1,
Expand Down Expand Up @@ -279,6 +281,7 @@ def result(
no_proxy: bool,
no_folder: bool,
no_source: bool,
no_subs: bool,
workers: Optional[int],
downloads: int,
*_: Any,
Expand Down Expand Up @@ -338,6 +341,11 @@ def result(
events.subscribe(events.Types.TRACK_REPACKED, service.on_track_repacked)
events.subscribe(events.Types.TRACK_MULTIPLEX, service.on_track_multiplex)

if no_subs:
console.log("Skipped subtitles as --no-subs was used...")
s_lang = None
title.tracks.subtitles = []

with console.status("Getting tracks...", spinner="dots"):
title.tracks.add(service.get_tracks(title), warn_only=True)
title.tracks.chapters = service.get_chapters(title)
Expand Down