diff --git a/src/ytdl_sub/entries/entry.py b/src/ytdl_sub/entries/entry.py index b440f139..5970bc26 100644 --- a/src/ytdl_sub/entries/entry.py +++ b/src/ytdl_sub/entries/entry.py @@ -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: """ diff --git a/src/ytdl_sub/entries/variables/entry_variables.py b/src/ytdl_sub/entries/variables/entry_variables.py index fccf892f..dfb1b1ca 100644 --- a/src/ytdl_sub/entries/variables/entry_variables.py +++ b/src/ytdl_sub/entries/variables/entry_variables.py @@ -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: """ diff --git a/tests/unit/entries/conftest.py b/tests/unit/entries/conftest.py index 0bf2faf3..2e625eeb 100644 --- a/tests/unit/entries/conftest.py +++ b/tests/unit/entries/conftest.py @@ -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, }