mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-08-15 07:04:14 +09:00
hm?
This commit is contained in:
parent
3c87b05bb0
commit
c1844208a2
@ -6,6 +6,7 @@ import re
|
||||
from .common import InfoExtractor
|
||||
|
||||
from ..utils import (
|
||||
ExtractorError,
|
||||
float_or_none,
|
||||
get_element_by_id,
|
||||
int_or_none,
|
||||
@ -14,11 +15,6 @@ from ..utils import (
|
||||
urljoin,
|
||||
)
|
||||
|
||||
try:
|
||||
from urllib.error import HTTPError
|
||||
except ImportError: # Python 2 support
|
||||
from urllib2 import HTTPError
|
||||
|
||||
|
||||
class VidLiiIE(InfoExtractor):
|
||||
_VALID_URL = r'https?://(?:www\.)?vidlii\.com/(?:watch|embed)\?.*?\bv=(?P<id>[0-9A-Za-z_-]{11})'
|
||||
@ -90,7 +86,7 @@ class VidLiiIE(InfoExtractor):
|
||||
try:
|
||||
self._request_webpage(sources[1][1], video_id, 'Checking HD URL')
|
||||
add_format(sources[1][1])
|
||||
except HTTPError:
|
||||
except ExtractorError:
|
||||
pass
|
||||
|
||||
add_format(sources[0][1])
|
||||
|
Loading…
x
Reference in New Issue
Block a user