Browse Source

[instagram] Unescape description (#8817)

master
Yen Chi Hsuan 8 years ago
parent
commit
87696e78d7
1 changed files with 3 additions and 0 deletions
  1. 3
      youtube_dl/extractor/instagram.py

3
youtube_dl/extractor/instagram.py

@ -7,6 +7,7 @@ from ..utils import (
get_element_by_attribute, get_element_by_attribute,
int_or_none, int_or_none,
limit_length, limit_length,
lowercase_escape,
) )
@ -59,6 +60,8 @@ class InstagramIE(InfoExtractor):
webpage, 'uploader id', fatal=False) webpage, 'uploader id', fatal=False)
desc = self._search_regex( desc = self._search_regex(
r'"caption":"(.+?)"', webpage, 'description', default=None) r'"caption":"(.+?)"', webpage, 'description', default=None)
if desc is not None:
desc = lowercase_escape(desc)
return { return {
'id': video_id, 'id': video_id,

Loading…
Cancel
Save