1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-06-08 05:03:42 +08:00

using "string-escape" decoding

This commit is contained in:
MikeCol
2014-01-29 16:12:38 +01:00
Unverified
parent 89ad100660
commit 7bbaf4d413
+1 -2
View File
@@ -38,8 +38,7 @@ class TumblrIE(InfoExtractor):
thumb_list = []
ma = re.search(r'posters.*?\[(?P<thumb>\\x22.*?\\x22)]', webpage)
if not ma is None:
for t in ma.group('thumb').replace(r'\\/', '/').split(','):
t = t.replace(r'\x22','"')
for t in ma.group('thumb').decode('string-escape').replace(r'\/',r'/').split(','):
if (t[0] == '"') and (t[-1] == '"'):
thumb_list.append( {"url": t[1:-1]} )