using "string-escape" decoding
This commit is contained in:
parent
89ad100660
commit
7bbaf4d413
@ -38,8 +38,7 @@ class TumblrIE(InfoExtractor):
|
|||||||
thumb_list = []
|
thumb_list = []
|
||||||
ma = re.search(r'posters.*?\[(?P<thumb>\\x22.*?\\x22)]', webpage)
|
ma = re.search(r'posters.*?\[(?P<thumb>\\x22.*?\\x22)]', webpage)
|
||||||
if not ma is None:
|
if not ma is None:
|
||||||
for t in ma.group('thumb').replace(r'\\/', '/').split(','):
|
for t in ma.group('thumb').decode('string-escape').replace(r'\/',r'/').split(','):
|
||||||
t = t.replace(r'\x22','"')
|
|
||||||
if (t[0] == '"') and (t[-1] == '"'):
|
if (t[0] == '"') and (t[-1] == '"'):
|
||||||
thumb_list.append( {"url": t[1:-1]} )
|
thumb_list.append( {"url": t[1:-1]} )
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user