Skip to content

Commit

Permalink
tvthek.orf.at: Fix DRM check
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas0907 committed Feb 17, 2022
1 parent a4bc3b8 commit f56affc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion feeds/spiders/tvthek_orf_at.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ def _parse_episode(self, response):
# This is also how mediathekviewweb.de works.
item["sources"] = item["_embedded"]["segments"][0]["sources"]

if item["sources"]["dash"][0]["quality_description"] == "Kein DRM":
if (
len(item["sources"]["dash"]) > 0
and item["sources"]["dash"][0]["quality_description"] == "Kein DRM"
):
self.logger.debug(f'Video for {item["title"]} is DRM protected')
else:
try:
Expand Down

0 comments on commit f56affc

Please sign in to comment.