Skip to content

Commit

Permalink
Clean up superfluous whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
phihag committed Mar 15, 2012
1 parent ceba827 commit fff24d5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
12 changes: 6 additions & 6 deletions youtube-dl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ __authors__ = (
'Kevin Ngo',
'Ori Avtalion',
'shizeeg',
'Filippo Valsorda',
)

__license__ = 'Public Domain'
Expand Down Expand Up @@ -3093,14 +3094,14 @@ class BlipTVIE(InfoExtractor):
data = json_data['Post']
else:
data = json_data

upload_date = datetime.datetime.strptime(data['datestamp'], '%m-%d-%y %H:%M%p').strftime('%Y%m%d')
video_url = data['media']['url']
umobj = re.match(self._URL_EXT, video_url)
if umobj is None:
raise ValueError('Can not determine filename extension')
ext = umobj.group(1)

info = {
'id': data['item_id'],
'url': video_url,
Expand Down Expand Up @@ -3201,7 +3202,7 @@ class ComedyCentralIE(InfoExtractor):

def report_extraction(self, episode_id):
self._downloader.to_screen(u'[comedycentral] %s: Extracting information' % episode_id)

def report_config_download(self, episode_id):
self._downloader.to_screen(u'[comedycentral] %s: Downloading configuration' % episode_id)

Expand Down Expand Up @@ -3763,7 +3764,6 @@ class MixcloudIE(InfoExtractor):
url_list = jsonData[fmt][bitrate]
except TypeError: # we have no bitrate info.
url_list = jsonData[fmt]

return url_list

def check_urls(self, url_list):
Expand Down Expand Up @@ -3883,7 +3883,7 @@ class StanfordOpenClassroomIE(InfoExtractor):
info = {
'id': _simplify_title(course + '_' + video),
}

self.report_extraction(info['id'])
baseUrl = 'http://openclassroom.stanford.edu/MainFolder/courses/' + course + '/videos/'
xmlUrl = baseUrl + video + '.xml'
Expand Down Expand Up @@ -4688,7 +4688,7 @@ def _real_main():
parser.error(u'you must provide at least one URL')
else:
sys.exit()

try:
retcode = fd.download(all_urls)
except MaxDownloadsReached:
Expand Down
11 changes: 5 additions & 6 deletions youtube_dl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3094,14 +3094,14 @@ def _real_extract(self, url):
data = json_data['Post']
else:
data = json_data

upload_date = datetime.datetime.strptime(data['datestamp'], '%m-%d-%y %H:%M%p').strftime('%Y%m%d')
video_url = data['media']['url']
umobj = re.match(self._URL_EXT, video_url)
if umobj is None:
raise ValueError('Can not determine filename extension')
ext = umobj.group(1)

info = {
'id': data['item_id'],
'url': video_url,
Expand Down Expand Up @@ -3202,7 +3202,7 @@ class ComedyCentralIE(InfoExtractor):

def report_extraction(self, episode_id):
self._downloader.to_screen(u'[comedycentral] %s: Extracting information' % episode_id)

def report_config_download(self, episode_id):
self._downloader.to_screen(u'[comedycentral] %s: Downloading configuration' % episode_id)

Expand Down Expand Up @@ -3764,7 +3764,6 @@ def get_urls(self, jsonData, fmt, bitrate='best'):
url_list = jsonData[fmt][bitrate]
except TypeError: # we have no bitrate info.
url_list = jsonData[fmt]

return url_list

def check_urls(self, url_list):
Expand Down Expand Up @@ -3884,7 +3883,7 @@ def _real_extract(self, url):
info = {
'id': _simplify_title(course + '_' + video),
}

self.report_extraction(info['id'])
baseUrl = 'http://openclassroom.stanford.edu/MainFolder/courses/' + course + '/videos/'
xmlUrl = baseUrl + video + '.xml'
Expand Down Expand Up @@ -4689,7 +4688,7 @@ def _real_main():
parser.error(u'you must provide at least one URL')
else:
sys.exit()

try:
retcode = fd.download(all_urls)
except MaxDownloadsReached:
Expand Down

0 comments on commit fff24d5

Please sign in to comment.