projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4096e8
)
[instagram] Unescape description (#8817)
author
Yen Chi Hsuan
<yan12125@gmail.com>
Thu, 24 Mar 2016 08:30:01 +0000
(16:30 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Thu, 24 Mar 2016 08:30:01 +0000
(16:30 +0800)
youtube_dl/extractor/instagram.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/instagram.py
b/youtube_dl/extractor/instagram.py
index e8b27b3794ef0623a9b64f5a876e887cc841c8c8..4e62098b05fa1ec753f240adc5a27b7da57e2e95 100644
(file)
--- 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,