aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/iconosquare.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-09-25 04:44:52 +0600
committerSergey M․ <dstftw@gmail.com>2015-09-25 04:44:52 +0600
commitd4364f30bd39528b4da487799380737c330e88c5 (patch)
tree3b2b725b13c5f230dd4cd5a65e26d41372e6d4f2 /youtube_dl/extractor/iconosquare.py
parent857421024daf810e92036149cc02bcf1c337da5c (diff)
[iconosquare] Revert title (Closes #6954)
Diffstat (limited to 'youtube_dl/extractor/iconosquare.py')
-rw-r--r--youtube_dl/extractor/iconosquare.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/youtube_dl/extractor/iconosquare.py b/youtube_dl/extractor/iconosquare.py
index 4fff8c0b3..bb69c7a0f 100644
--- a/youtube_dl/extractor/iconosquare.py
+++ b/youtube_dl/extractor/iconosquare.py
@@ -4,6 +4,7 @@ from .common import InfoExtractor
from ..utils import (
int_or_none,
get_element_by_id,
+ remove_end,
)
@@ -15,7 +16,7 @@ class IconosquareIE(InfoExtractor):
'info_dict': {
'id': '522207370455279102_24101272',
'ext': 'mp4',
- 'title': 'A little over a year ago, I posted my first #dailycortado, a drink introduced to...',
+ 'title': 'Instagram photo by @aguynamedpatrick (Patrick Janelle)',
'description': 'md5:644406a9ec27457ed7aa7a9ebcd4ce3d',
'timestamp': 1376471991,
'upload_date': '20130814',
@@ -43,9 +44,7 @@ class IconosquareIE(InfoExtractor):
} for format_id, f in media['videos'].items()]
self._sort_formats(formats)
- title = self._html_search_regex(
- r'<title>(.+?)</title>',
- webpage, 'title')
+ title = remove_end(self._og_search_title(webpage), ' - via Iconosquare')
timestamp = int_or_none(media.get('created_time') or media.get('caption', {}).get('created_time'))
description = media.get('caption', {}).get('text')