From 5f5079de6c5dd434aea06c0dd99495d84c65e471 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Sat, 13 Nov 2021 14:31:47 +0100 Subject: [PATCH] urplay: grab the thumb from json sometimes it seems like the og:image to be bad or 404. --- lib/svtplay_dl/service/urplay.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/svtplay_dl/service/urplay.py b/lib/svtplay_dl/service/urplay.py index dc852f7..92543e4 100644 --- a/lib/svtplay_dl/service/urplay.py +++ b/lib/svtplay_dl/service/urplay.py @@ -12,6 +12,7 @@ from svtplay_dl.fetcher.hls import hlsparse from svtplay_dl.service import OpenGraphThumbMixin from svtplay_dl.service import Service from svtplay_dl.subtitle import subtitle +from svtplay_dl.utils.http import download_thumbnails class Urplay(Service, OpenGraphThumbMixin): @@ -95,9 +96,14 @@ class Urplay(Service, OpenGraphThumbMixin): if "id" in data and data["id"]: self.output["id"] = str(data["id"]) + self.output["episodethumbnailurl"] = data["image"]["1280x720"] + # Try to match Season info from HTML (not available in json, it seems), e.g.: