Add --subs option to download subtites
MODIFY
plextraktsync/cli.py
plextraktsync/cli.py
@@ -263,9 +263,14 @@ def watch():
@command()
@click.argument("input", nargs=-1)
+@click.option(
+ "--only_subs",
+ is_flag=True,
+ help="Download only subtitles",
+)
def download():
"""
- Downloads subtitles to a local directory
+ Downloads movie or subtitles to a local directory
"""
pass

MODIFY
plextraktsync/commands/download.py
plextraktsync/commands/download.py
from plextraktsync.util.expand_id import expand_id
if TYPE_CHECKING:
+ from typing import List
+
from plextraktsync.plex.PlexApi import PlexApi
from plextraktsync.plex.PlexLibraryItem import PlexLibraryItem
@@ -26,7 +28,7 @@ def download_subtitles(plex: PlexApi, pm: PlexLibraryItem):
plex.download(sub, filename=filename, showstatus=True)
-def download(input):
+def download(input: List[str], only_subs: bool):
plex = factory.plex_api
for id in expand_id(input):

Add --subs option to download subtites