1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 13:44:14 +01:00

utils.download_thumbnails: unescape url

tv4play escape their thumb urls for some reason
This commit is contained in:
Johan Andersson 2021-07-09 20:30:31 +02:00
parent a162357a64
commit c4b2747217

View File

@ -1,5 +1,6 @@
import logging
import re
from html import unescape
from urllib.parse import urljoin
from requests import Session
@ -47,6 +48,8 @@ class HTTP(Session):
def download_thumbnails(output, config, urls):
for show, url in urls:
if "&" in url:
url = unescape(url)
data = Session().get(url).content
loutout = output.copy()
loutout["ext"] = "tbn"