Update ytdl-sub playlist download archive to use ie_key instead of extractor, as YT-DLP actually compares IE_KEY's when determining if a video exists or not

This commit is contained in:
Qualis Svagtlys 2023-12-14 08:23:29 -06:00
parent 8998861b49
commit 72619f74fc
2 changed files with 2 additions and 2 deletions

View file

@ -105,7 +105,7 @@ class BaseEntryVariables:
# pylint: disable=line-too-long
# Taken from https://github.com/yt-dlp/yt-dlp/blob/e6ab678e36c40ded0aae305bbb866cdab554d417/yt_dlp/YoutubeDL.py#L3514
# pylint: enable=line-too-long
return self.kwargs_get(EXTRACTOR) or self.kwargs(IE_KEY)
return self.kwargs(IE_KEY) #yt-dlp is comparing the extractor in ytdl-sub's info.json to its extractor key, so we need to save the extractor key instead
@property
def epoch(self: "BaseEntry") -> int:

View file

@ -52,7 +52,7 @@ SPLIT_BY_CHAPTERS_PARENT_ENTRY = _("split_by_chapters_parent_entry", backend=Tru
COMMENTS = _("comments", backend=True)
UID = _("id")
EXTRACTOR = _("extractor")
IE_KEY = _("ie_key")
IE_KEY = _("extractor_key") #IE_KEY is saved in the info.json as extractor_key
EPOCH = _("epoch")
CHANNEL = _("channel")
CHANNEL_ID = _("channel_id")