mirror of
https://github.com/n0stal6ic/unshackle-services.git
synced 2026-07-15 17:40:02 +02:00
Update __init__.py
This commit is contained in:
+4
-1
@@ -300,7 +300,10 @@ class PBS(Service):
|
|||||||
if not r.ok:
|
if not r.ok:
|
||||||
self.log.warning(f"Unable to find specials for '{show_slug}': {r.status_code}.")
|
self.log.warning(f"Unable to find specials for '{show_slug}': {r.status_code}.")
|
||||||
return []
|
return []
|
||||||
return r.json()
|
return [
|
||||||
|
sp for sp in r.json()
|
||||||
|
if sp.get("slug") != sp.get("parent", {}).get("slug")
|
||||||
|
]
|
||||||
|
|
||||||
def _fetch_season_episodes(self, show_slug: str, season_cid: str) -> list[dict]:
|
def _fetch_season_episodes(self, show_slug: str, season_cid: str) -> list[dict]:
|
||||||
url = self.config["endpoints"]["show_episodes"].format(
|
url = self.config["endpoints"]["show_episodes"].format(
|
||||||
|
|||||||
Reference in New Issue
Block a user