mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-23 00:54:31 +01:00
Handle the badly sent JSON from Dailymotion
This commit is contained in:
parent
b95ed52358
commit
da6386f8f2
@ -1338,6 +1338,12 @@ class DailymotionIE(InfoExtractor):
|
||||
|
||||
# if needed add http://www.dailymotion.com/ if relative URL
|
||||
sequenceJsonContent = urllib.unquote_plus(mobj.group(1))
|
||||
|
||||
# JSON does not suppot escaping of '.
|
||||
# Replace every \' by a ' in the JSON string
|
||||
sequenceJsonContent = sequenceJsonContent.replace("\\'", "'")
|
||||
|
||||
# Build the JSON object based on the string
|
||||
try:
|
||||
sequenceJson = json.loads(sequenceJsonContent)
|
||||
except:
|
||||
|
Loading…
Reference in New Issue
Block a user