Keep ie key as an option for soundcloud

Replace extractor (which is never compared) with extractor_key
This commit is contained in:
Qualis Svagtlys 2023-12-14 12:18:35 -06:00
parent 72619f74fc
commit 33d8e9ac7d
2 changed files with 3 additions and 3 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(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
return self.kwargs(EXTRACTOR) or self.kwargs(IE_KEY)
@property
def epoch(self: "BaseEntry") -> int:

View file

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