projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4231235
)
Update fc2.py
author
h-collector
<githcoll@gmail.com>
Sat, 5 Jul 2014 23:48:07 +0000
(
01:48
+0200)
committer
h-collector
<githcoll@gmail.com>
Mon, 20 Oct 2014 16:53:53 +0000
(18:53 +0200)
youtube_dl/extractor/fc2.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/fc2.py
b/youtube_dl/extractor/fc2.py
index ecfb233f990e0a7274a8b3bde50a90495a3bc9d5..0933485e01820022809d01186a2447f13f92930e 100644
(file)
--- a/
youtube_dl/extractor/fc2.py
+++ b/
youtube_dl/extractor/fc2.py
@@
-87,10
+87,10
@@
class FC2IE(InfoExtractor):
if 'err_code' in info:
#raise ExtractorError('Error code: %s' % info['err_code'][0])
# most of the time we can still download wideo even if err_code is 403 or 602
if 'err_code' in info:
#raise ExtractorError('Error code: %s' % info['err_code'][0])
# most of the time we can still download wideo even if err_code is 403 or 602
- print 'Error code was: %s... but still trying' % info['err_code'][0]
-
+ self._downloader.report_warning('Error code was: %s... but still trying' % info['err_code'][0])
+
if 'filepath' not in info:
if 'filepath' not in info:
- raise ExtractorError('
No file path for download. Maybe not
logged?')
+ raise ExtractorError('
Cannot download file. Are you
logged?')
video_url = info['filepath'][0] + '?mid=' + info['mid'][0]
title_info = info.get('title')
video_url = info['filepath'][0] + '?mid=' + info['mid'][0]
title_info = info.get('title')