mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-22 15:57:23 +00:00
[vimple] Do not fail if duration is missing
This commit is contained in:
parent
3a0879c8c8
commit
45ead916d1
1 changed files with 3 additions and 1 deletions
|
@ -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'),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue