Download subs only once
MODIFY
plextraktsync/commands/subdl.py
plextraktsync/commands/subdl.py
+from os.path import exists
+
from plextraktsync.factory import factory
from plextraktsync.plex_api import PlexApi, PlexLibraryItem
from plextraktsync.util.expand_id import expand_id
@@ -10,6 +12,7 @@ def download(plex: PlexApi, pm: PlexLibraryItem):
f" Subtitle {index}: ({sub.language}) {sub.title} (codec: {sub.codec}, selected: {sub.selected}, transient: {sub.transient})"
)
filename = f"{sub.id}. {f'{sub.language}.' if sub.language else ''}{sub.languageCode}.{sub.codec}"
+ if not exists(filename):
plex.download(sub, filename=filename, showstatus=True)

Download subs only once