From: Yen Chi Hsuan Date: Thu, 24 Mar 2016 08:30:01 +0000 (+0800) Subject: [instagram] Unescape description (#8817) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=87696e78d7203cf47bdd27773d06ba15af7c819d;p=youtube-dl [instagram] Unescape description (#8817) --- diff --git a/youtube_dl/extractor/instagram.py b/youtube_dl/extractor/instagram.py index e8b27b379..4e62098b0 100644 --- a/youtube_dl/extractor/instagram.py +++ b/youtube_dl/extractor/instagram.py @@ -7,6 +7,7 @@ from ..utils import ( get_element_by_attribute, int_or_none, limit_length, + lowercase_escape, ) @@ -59,6 +60,8 @@ class InstagramIE(InfoExtractor): webpage, 'uploader id', fatal=False) desc = self._search_regex( r'"caption":"(.+?)"', webpage, 'description', default=None) + if desc is not None: + desc = lowercase_escape(desc) return { 'id': video_id,