revert entry var changes

This commit is contained in:
jbannon 2022-08-12 08:06:12 +00:00
parent 1f8d247a18
commit 76544738d6
3 changed files with 0 additions and 29 deletions

View file

@ -58,18 +58,6 @@ class Entry(EntryVariables, BaseEntry):
return None
def get_download_subtitles_name(self) -> str:
"""
Returns
-------
The download subtitle's file name
"""
return f"{self.uid}.{self.subtitles_ext}"
def get_download_subtitles_path(self) -> str:
"""Returns the entry's thumbnail's file path to where it was downloaded"""
return str(Path(self.working_directory()) / self.get_download_subtitles_name())
@final
def is_downloaded(self) -> bool:
"""

View file

@ -112,16 +112,6 @@ class EntryVariables(SourceVariables):
"""
return "jpg"
@property
def subtitles_ext(self: BaseEntry) -> str:
"""
Returns
-------
str
The download entry's subtitles extension.
"""
return "srt"
@property
def upload_date(self: BaseEntry) -> str:
"""

View file

@ -55,11 +55,6 @@ def thumbnail_ext():
return "jpg"
@pytest.fixture
def subtitles_ext():
return "srt"
@pytest.fixture
def download_thumbnail_name(uid, thumbnail_ext):
return f"{uid}.{thumbnail_ext}"
@ -79,7 +74,6 @@ def mock_entry_to_dict(
upload_date,
upload_year,
thumbnail_ext,
subtitles_ext,
upload_month,
upload_day,
):
@ -98,7 +92,6 @@ def mock_entry_to_dict(
"upload_day": upload_day,
"upload_day_padded": _pad(upload_day),
"thumbnail_ext": thumbnail_ext,
"subtitles_ext": subtitles_ext,
}