mirror of
https://github.com/g0ldyy/comet.git
synced 2026-01-12 01:16:12 +01:00
refactor: rename get_unique_watch_providers to has_watch_providers
This commit is contained in:
@@ -54,7 +54,7 @@ class DigitalReleaseFilter:
|
||||
release_date_str = await tmdb.get_upcoming_movie_release_date(tmdb_id)
|
||||
if not release_date_str:
|
||||
# Check watch providers as fallback
|
||||
has_watch_providers = await tmdb.get_unique_watch_providers(tmdb_id)
|
||||
has_watch_providers = await tmdb.has_watch_providers(tmdb_id)
|
||||
if has_watch_providers:
|
||||
# Treat as released a long time ago
|
||||
release_date_str = "1970-01-01"
|
||||
|
||||
@@ -78,7 +78,7 @@ class TMDBApi:
|
||||
logger.error(f"TMDB: Error converting IMDB ID {imdb_id}: {e}")
|
||||
return None
|
||||
|
||||
async def get_unique_watch_providers(self, tmdb_id: str):
|
||||
async def has_watch_providers(self, tmdb_id: str):
|
||||
try:
|
||||
url = f"{self.base_url}/movie/{tmdb_id}/watch/providers"
|
||||
async with self.session.get(url, headers=self.headers) as response:
|
||||
|
||||
Reference in New Issue
Block a user