Removed provider (mistake) and add provider parameter to process_info

This commit is contained in:
danut007ro 2012-09-27 00:07:20 +03:00
parent 2866e68838
commit 3cd98c7894
2 changed files with 2 additions and 26 deletions

View File

@ -341,7 +341,7 @@ def _match_entry(self, info_dict):
return u'"' + title + '" title matched reject pattern "' + rejecttitle + '"'
return None
def process_info(self, info_dict):
def process_info(self, info_dict, provider):
"""Process a single dictionary returned by an InfoExtractor."""
info_dict['stitle'] = sanitize_filename(info_dict['title'])
@ -476,7 +476,7 @@ def download(self, url_list):
for video in videos or []:
try:
self.increment_downloads()
self.process_info(video)
self.process_info(video, ie.IE_NAME)
except UnavailableVideoError:
self.trouble(u'\nERROR: unable to download video')

View File

@ -445,7 +445,6 @@ def _real_extract(self, url):
video_extension = self._video_extensions.get(format_param, 'flv')
results.append({
'provider': IE_NAME,
'id': video_id.decode('utf-8'),
'url': video_real_url.decode('utf-8'),
'uploader': video_uploader.decode('utf-8'),
@ -579,7 +578,6 @@ def _real_extract(self, url):
video_uploader = mobj.group(1)
return [{
'provider': IE_NAME,
'id': video_id.decode('utf-8'),
'url': video_url.decode('utf-8'),
'uploader': video_uploader.decode('utf-8'),
@ -659,7 +657,6 @@ def _real_extract(self, url):
video_uploader = mobj.group(1)
return [{
'provider': IE_NAME,
'id': video_id.decode('utf-8'),
'url': video_url.decode('utf-8'),
'uploader': video_uploader.decode('utf-8'),
@ -755,7 +752,6 @@ def _real_extract(self, url):
video_thumbnail = ''
return [{
'provider': IE_NAME,
'id': video_id.decode('utf-8'),
'url': video_url.decode('utf-8'),
'uploader': u'NA',
@ -823,7 +819,6 @@ def _real_extract(self, url):
video_uploader = mobj.group(2).decode('utf-8')
return [{
'provider': IE_NAME,
'id': video_id.decode('utf-8'),
'url': video_url.decode('utf-8'),
'uploader': video_uploader,
@ -966,7 +961,6 @@ def _real_extract(self, url, new_video=True):
video_url = unescapeHTML(video_url)
return [{
'provider': IE_NAME,
'id': video_id.decode('utf-8'),
'url': video_url,
'uploader': video_uploader,
@ -1071,7 +1065,6 @@ def _real_extract(self, url, new_video=True):
%(video_id, sig, timestamp, quality, video_codec.upper())
return [{
'provider': IE_NAME,
'id': video_id,
'url': video_url,
'uploader': video_uploader,
@ -1220,7 +1213,6 @@ def _real_extract(self, url):
video_uploader = mobj.group(1).decode('utf-8')
return [{
'provider': IE_NAME,
'id': video_id.decode('utf-8'),
'url': video_url.decode('utf-8'),
'uploader': video_uploader,
@ -1777,7 +1769,6 @@ def _real_extract(self, url):
file_title = mobj.group(1).decode('utf-8')
return [{
'provider': IE_NAME,
'id': file_id.decode('utf-8'),
'url': file_url.decode('utf-8'),
'uploader': u'NA',
@ -1982,7 +1973,6 @@ def _real_extract(self, url):
video_extension = self._video_extensions.get(format_param, 'mp4')
results.append({
'provider': IE_NAME,
'id': video_id.decode('utf-8'),
'url': video_real_url.decode('utf-8'),
'uploader': video_uploader.decode('utf-8'),
@ -2034,7 +2024,6 @@ def _real_extract(self, url):
ext = ext.replace('.', '')
self.report_direct_download(title)
info = {
'provider': IE_NAME,
'id': title,
'url': url,
'title': title,
@ -2066,7 +2055,6 @@ def _real_extract(self, url):
ext = umobj.group(1)
info = {
'provider': IE_NAME,
'id': data['item_id'],
'url': video_url,
'uploader': data['display_name'],
@ -2136,7 +2124,6 @@ def _real_extract(self,url):
video_title = mobj.group(1)
return [{
'provider': IE_NAME,
'id': video_id,
'url': video_url,
'uploader': u'NA',
@ -2263,7 +2250,6 @@ def _real_extract(self, url):
effTitle = showId + u'-' + epTitle
info = {
'provider': IE_NAME,
'id': shortMediaId,
'url': video_url,
'uploader': showId,
@ -2340,7 +2326,6 @@ def _real_extract(self, url):
videoUrl = playlist[1]['url']
info = {
'provider': IE_NAME,
'id': videoId,
'url': videoUrl,
'uploader': showName,
@ -2392,7 +2377,6 @@ def _real_extract(self, url):
internal_video_id = m.group('internalvideoid')
info = {
'provider': IE_NAME,
'id': video_id,
'internal_id': internal_video_id,
}
@ -2478,7 +2462,6 @@ def _real_extract(self, url):
video_thumbnail = mobj.group(0).decode('utf-8')
info = {
'provider': IE_NAME,
'id': video_id,
'url': video_url,
'uploader': None,
@ -2576,7 +2559,6 @@ def _real_extract(self, url):
request = urllib2.Request('http://media.soundcloud.com/crossdomain.xml', std_headers)
return [{
'provider': IE_NAME,
'id': video_id.decode('utf-8'),
'url': mediaURL,
'uploader': uploader.decode('utf-8'),
@ -2646,7 +2628,6 @@ def _real_extract(self, url):
video_id, extension = video_filename.split('.')
info = {
'provider': IE_NAME,
'id': video_id,
'url': video_url,
'uploader': None,
@ -2762,7 +2743,6 @@ def _real_extract(self, url):
format_param = req_format
return [{
'provider': IE_NAME,
'id': file_id.decode('utf-8'),
'url': file_url.decode('utf-8'),
'uploader': uploader.decode('utf-8'),
@ -2799,7 +2779,6 @@ def _real_extract(self, url):
course = mobj.group('course')
video = mobj.group('video')
info = {
'provider': IE_NAME,
'id': course + '_' + video,
}
@ -2824,7 +2803,6 @@ def _real_extract(self, url):
elif mobj.group('course'): # A course page
course = mobj.group('course')
info = {
'provider': IE_NAME,
'id': course,
'type': 'playlist',
}
@ -2861,7 +2839,6 @@ def _real_extract(self, url):
else: # Root page
info = {
'provider': IE_NAME,
'id': 'Stanford OpenClassroom',
'type': 'playlist',
}
@ -2969,7 +2946,6 @@ def _real_extract(self, url):
return
info = {
'provider': IE_NAME,
'id': video_id,
'url': video_url,
'uploader': performer,