Keep ie key as an option for soundcloud
Replace extractor (which is never compared) with extractor_key
This commit is contained in:
parent
72619f74fc
commit
33d8e9ac7d
2 changed files with 3 additions and 3 deletions
|
|
@ -105,7 +105,7 @@ class BaseEntryVariables:
|
||||||
# pylint: disable=line-too-long
|
# pylint: disable=line-too-long
|
||||||
# Taken from https://github.com/yt-dlp/yt-dlp/blob/e6ab678e36c40ded0aae305bbb866cdab554d417/yt_dlp/YoutubeDL.py#L3514
|
# Taken from https://github.com/yt-dlp/yt-dlp/blob/e6ab678e36c40ded0aae305bbb866cdab554d417/yt_dlp/YoutubeDL.py#L3514
|
||||||
# pylint: enable=line-too-long
|
# 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
|
@property
|
||||||
def epoch(self: "BaseEntry") -> int:
|
def epoch(self: "BaseEntry") -> int:
|
||||||
|
|
|
||||||
|
|
@ -51,8 +51,8 @@ SPONSORBLOCK_CHAPTERS = _("sponsorblock_chapters", backend=True)
|
||||||
SPLIT_BY_CHAPTERS_PARENT_ENTRY = _("split_by_chapters_parent_entry", backend=True)
|
SPLIT_BY_CHAPTERS_PARENT_ENTRY = _("split_by_chapters_parent_entry", backend=True)
|
||||||
COMMENTS = _("comments", backend=True)
|
COMMENTS = _("comments", backend=True)
|
||||||
UID = _("id")
|
UID = _("id")
|
||||||
EXTRACTOR = _("extractor")
|
EXTRACTOR = _("extractor_key") # EXTRACTOR is saved in the info.json as extractor_key
|
||||||
IE_KEY = _("extractor_key") #IE_KEY is saved in the info.json as extractor_key
|
IE_KEY = _("ie_key")
|
||||||
EPOCH = _("epoch")
|
EPOCH = _("epoch")
|
||||||
CHANNEL = _("channel")
|
CHANNEL = _("channel")
|
||||||
CHANNEL_ID = _("channel_id")
|
CHANNEL_ID = _("channel_id")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue