1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

One more except..as

This commit is contained in:
Philipp Hagemeister 2012-11-28 00:13:40 +01:00
parent 348d0a7a18
commit a130bc6d02

View file

@ -2851,8 +2851,8 @@ class SoundcloudIE(InfoExtractor):
if mobj: if mobj:
try: try:
upload_date = datetime.datetime.strptime(mobj.group(1), '%B %d, %Y %H:%M').strftime('%Y%m%d') upload_date = datetime.datetime.strptime(mobj.group(1), '%B %d, %Y %H:%M').strftime('%Y%m%d')
except Exception, e: except Exception as err:
self._downloader.to_stderr(compat_str(e)) self._downloader.to_stderr(compat_str(err))
# for soundcloud, a request to a cross domain is required for cookies # for soundcloud, a request to a cross domain is required for cookies
request = compat_urllib_request.Request('http://media.soundcloud.com/crossdomain.xml', std_headers) request = compat_urllib_request.Request('http://media.soundcloud.com/crossdomain.xml', std_headers)