From 7bbaf4d413ff2d556d1a162616dfba2a3d5299a8 Mon Sep 17 00:00:00 2001 From: MikeCol Date: Wed, 29 Jan 2014 16:12:38 +0100 Subject: [PATCH] using "string-escape" decoding --- youtube_dl/extractor/tumblr.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/youtube_dl/extractor/tumblr.py b/youtube_dl/extractor/tumblr.py index 10f26d631..666879d50 100644 --- a/youtube_dl/extractor/tumblr.py +++ b/youtube_dl/extractor/tumblr.py @@ -38,8 +38,7 @@ class TumblrIE(InfoExtractor): thumb_list = [] ma = re.search(r'posters.*?\[(?P\\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]} )