mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2025-01-07 13:47:54 +01:00
Added except on Regex error
This commit is contained in:
parent
d8363c816b
commit
563034f100
@ -2,7 +2,10 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from .common import InfoExtractor
|
||||
from ..utils import int_or_none
|
||||
from ..utils import (
|
||||
int_or_none,
|
||||
RegexNotFoundError,
|
||||
)
|
||||
|
||||
|
||||
class ChangbaIE(InfoExtractor):
|
||||
@ -46,7 +49,7 @@ class ChangbaIE(InfoExtractor):
|
||||
|
||||
try:
|
||||
src_url = self._search_regex(r'var a="([^"]*)', webpage, 'url')
|
||||
except:
|
||||
except RegexNotFoundError:
|
||||
src_url = 'http://lzscuw.changba.com/' + str(id) + '.' + ext
|
||||
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user