mirror of
https://github.com/vinefeeder/TwinVine.git
synced 2026-07-15 18:10:04 +02:00
CBC service
This commit is contained in:
@@ -156,9 +156,7 @@ class CBC(Service):
|
|||||||
if label in ("film", "movie", "standalone"):
|
if label in ("film", "movie", "standalone"):
|
||||||
movies: list[Movie] = self._movie(data)
|
movies: list[Movie] = self._movie(data)
|
||||||
return Movies(movies)
|
return Movies(movies)
|
||||||
elif label in ("parts"):
|
|
||||||
episodes: list[Episode] = self._show(data)
|
|
||||||
return Series(episodes)
|
|
||||||
else:
|
else:
|
||||||
episodes: list[Episode] = self._show(data)
|
episodes: list[Episode] = self._show(data)
|
||||||
return Series(episodes)
|
return Series(episodes)
|
||||||
@@ -230,7 +228,7 @@ class CBC(Service):
|
|||||||
# Service specific
|
# Service specific
|
||||||
|
|
||||||
def _show(self, data: dict) -> list[Episode]:
|
def _show(self, data: dict) -> list[Episode]:
|
||||||
|
|
||||||
lineups = next(
|
lineups = next(
|
||||||
(
|
(
|
||||||
x["lineups"]
|
x["lineups"]
|
||||||
|
|||||||
Reference in New Issue
Block a user