]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[instagram] Unescape description (#8817)
authorYen Chi Hsuan <yan12125@gmail.com>
Thu, 24 Mar 2016 08:30:01 +0000 (16:30 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Thu, 24 Mar 2016 08:30:01 +0000 (16:30 +0800)
youtube_dl/extractor/instagram.py

index e8b27b3794ef0623a9b64f5a876e887cc841c8c8..4e62098b05fa1ec753f240adc5a27b7da57e2e95 100644 (file)
@@ -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,