projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3243d0f
)
Fixed issue #1277 KeyError when no description.
author
Jai Grimshaw
<jai@jaigrimshaw.com>
Fri, 30 Aug 2013 15:53:01 +0000
(
01:53
+1000)
committer
Jai Grimshaw
<jai@jaigrimshaw.com>
Fri, 30 Aug 2013 15:53:01 +0000
(
01:53
+1000)
Allows a continue with a warning when an extractor cannot retrieve a description.
youtube_dl/YoutubeDL.py
patch
|
blob
|
history
diff --git
a/youtube_dl/YoutubeDL.py
b/youtube_dl/YoutubeDL.py
index b289bd9e26bbc9993e6f1295a31d20b3275f5f48..afce280407121fdf0e1680ea7c0a7e4ec2b5d0ec 100644
(file)
--- a/
youtube_dl/YoutubeDL.py
+++ b/
youtube_dl/YoutubeDL.py
@@
-492,6
+492,8
@@
class YoutubeDL(object):
self.report_writedescription(descfn)
with io.open(encodeFilename(descfn), 'w', encoding='utf-8') as descfile:
descfile.write(info_dict['description'])
+ except (KeyError, TypeError):
+ self.report_warning(u'Cannot extract description.')
except (OSError, IOError):
self.report_error(u'Cannot write description file ' + descfn)
return