aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-03-24 16:30:01 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-03-24 16:30:01 +0800
commit87696e78d7203cf47bdd27773d06ba15af7c819d (patch)
tree3a39cdf19e1090485363d9bf7ee6e474790b79b0
parentc4096e8aeaa373159e350a3674b0ce18b6c519e2 (diff)
[instagram] Unescape description (#8817)
-rw-r--r--youtube_dl/extractor/instagram.py3
1 files changed, 3 insertions, 0 deletions
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,