add ability to update show's metadata and extract the poster image download logic into a separate function

This commit is contained in:
maxDorninger
2025-06-09 12:14:21 +02:00
parent b86f4371b1
commit 406ae044cb
6 changed files with 352 additions and 26 deletions

View File

@@ -24,6 +24,15 @@ class AbstractMetadataProvider(ABC):
def search_show(self, query) -> list[MetaDataProviderShowSearchResult]:
pass
@abstractmethod
def download_show_poster_image(self, show: Show) -> bool:
"""
Downloads the poster image for a show.
:param show: The show to download the poster image for.
:return: True if the image was downloaded successfully, False otherwise.
"""
pass
metadata_providers = {}