mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
utils.download_thumbnails: unescape url
tv4play escape their thumb urls for some reason
This commit is contained in:
parent
a162357a64
commit
c4b2747217
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user