ARD/ZDF: Drop year from Episode objects

This commit is contained in:
lambda 2026-01-20 03:05:14 +01:00
parent 8cb3886b67
commit 730cfd4125
2 changed files with 2 additions and 2 deletions

View File

@ -145,12 +145,12 @@ class ARD(Service):
"data": widget,
"service": self.__class__,
"language": "de",
"year": widget["broadcastedOn"][0:4],
}
if widget["show"]["coreAssetType"] == "SINGLE" or not widget["show"].get("availableSeasons"):
return Movies([Movie(
name=widget["title"],
year=widget["broadcastedOn"][0:4],
**common_data
)])
else:

View File

@ -151,7 +151,6 @@ class ZDF(Service):
common_data = {
"id_": video["id"],
"service": self.__class__,
"year": video["editorialDate"][0:4],
"data": video["currentMedia"],
}
@ -159,6 +158,7 @@ class ZDF(Service):
if "publicationFormInfo" in meta and meta["publicationFormInfo"]["original"] == "Film":
return Movies([Movie(
name=video["title"],
year=video["editorialDate"][0:4],
**common_data
)])
else: