mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2025-01-08 14:17: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 __future__ import unicode_literals
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..utils import int_or_none
|
from ..utils import (
|
||||||
|
int_or_none,
|
||||||
|
RegexNotFoundError,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class ChangbaIE(InfoExtractor):
|
class ChangbaIE(InfoExtractor):
|
||||||
@ -46,7 +49,7 @@ class ChangbaIE(InfoExtractor):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
src_url = self._search_regex(r'var a="([^"]*)', webpage, 'url')
|
src_url = self._search_regex(r'var a="([^"]*)', webpage, 'url')
|
||||||
except:
|
except RegexNotFoundError:
|
||||||
src_url = 'http://lzscuw.changba.com/' + str(id) + '.' + ext
|
src_url = 'http://lzscuw.changba.com/' + str(id) + '.' + ext
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user