projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a0879c
)
[vimple] Do not fail if duration is missing
author
Philipp Hagemeister
<phihag@phihag.de>
Fri, 11 Jul 2014 09:08:36 +0000
(11:08 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Fri, 11 Jul 2014 09:08:36 +0000
(11:08 +0200)
youtube_dl/extractor/vimple.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/vimple.py
b/youtube_dl/extractor/vimple.py
index f3a807cd38a878c230df80b6f6391742bdef261d..86344849a4fd5518375014af7dad6eb925729cc0 100644
(file)
--- a/
youtube_dl/extractor/vimple.py
+++ b/
youtube_dl/extractor/vimple.py
@@
-1,11
+1,13
@@
# coding: utf-8
from __future__ import unicode_literals
+
import re
import zlib
import base64
import xml.etree.ElementTree
from .common import InfoExtractor
+from ..utils import int_or_none
class VimpleIE(InfoExtractor):
@@
-79,6
+81,6
@@
class VimpleIE(InfoExtractor):
'title': video.find('Title').text,
'formats': formats,
'thumbnail': video.find('Poster').get('url'),
- 'duration': int(video.get('duration')),
+ 'duration': int
_or_none
(video.get('duration')),
'webpage_url': video.find('Share').get('videoPageUrl'),
}