summaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/YoutubeDL.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2014-03-23 16:06:03 +0100
committerPhilipp Hagemeister <[email protected]>2014-03-23 16:06:07 +0100
commitea38e55fff639545394e32208a7dabc7e6258166 (patch)
treebed0ba9d1538d95a111ace924c9b9074e2c87e41 /youtube_dl/YoutubeDL.py
parent257cfebfe6833a41b8ec2c3882b8666c15e454a1 (diff)
downloadyoutube-dl-ea38e55fff639545394e32208a7dabc7e6258166.tar.gz
youtube-dl-ea38e55fff639545394e32208a7dabc7e6258166.zip
[instagram] Add support for user profiles (Fixes #2606)
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-rw-r--r--youtube_dl/YoutubeDL.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index c5d08b0bb..d18d6dd00 100644
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -512,13 +512,7 @@ class YoutubeDL(object):
'_type': 'compat_list',
'entries': ie_result,
}
- self.add_extra_info(ie_result,
- {
- 'extractor': ie.IE_NAME,
- 'webpage_url': url,
- 'webpage_url_basename': url_basename(url),
- 'extractor_key': ie.ie_key(),
- })
+ self.add_default_extra_info(ie_result, ie, url)
if process:
return self.process_ie_result(ie_result, download, extra_info)
else:
@@ -537,6 +531,14 @@ class YoutubeDL(object):
else:
self.report_error('no suitable InfoExtractor for URL %s' % url)
+ def add_default_extra_info(self, ie_result, ie, url):
+ self.add_extra_info(ie_result, {
+ 'extractor': ie.IE_NAME,
+ 'webpage_url': url,
+ 'webpage_url_basename': url_basename(url),
+ 'extractor_key': ie.ie_key(),
+ })
+
def process_ie_result(self, ie_result, download=True, extra_info={}):
"""
Take the result of the ie(may be modified) and resolve all unresolved