refactor name
This commit is contained in:
parent
1ccf7cc080
commit
ea701efd91
2 changed files with 4 additions and 4 deletions
|
|
@ -45,9 +45,9 @@ class BaseEntry(ABC):
|
||||||
return str(self._kwargs[v.uid.metadata_key])
|
return str(self._kwargs[v.uid.metadata_key])
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def extractor(self: "BaseEntry") -> str:
|
def download_archive_extractor(self: "BaseEntry") -> str:
|
||||||
"""
|
"""
|
||||||
The ytdl extractor name
|
The extractor name used in yt-dlp download archives
|
||||||
"""
|
"""
|
||||||
# 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
|
||||||
|
|
@ -178,4 +178,4 @@ class BaseEntry(ABC):
|
||||||
-------
|
-------
|
||||||
extractor + uid, making this a unique hash for any entry
|
extractor + uid, making this a unique hash for any entry
|
||||||
"""
|
"""
|
||||||
return self.extractor + self.uid
|
return self.download_archive_extractor + self.uid
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@ class DownloadMapping:
|
||||||
"""
|
"""
|
||||||
return DownloadMapping(
|
return DownloadMapping(
|
||||||
upload_date=entry.get(v.upload_date_standardized, str),
|
upload_date=entry.get(v.upload_date_standardized, str),
|
||||||
extractor=entry.get(v.extractor, str),
|
extractor=entry.download_archive_extractor,
|
||||||
file_names=set(),
|
file_names=set(),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue