mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-08-15 07:04:14 +09:00
Use compat for HTTPError
This commit is contained in:
parent
13b0b2d37f
commit
a0832f102f
@ -14,6 +14,10 @@ from ..utils import (
|
||||
urljoin,
|
||||
)
|
||||
|
||||
from ..compat import (
|
||||
compat_HTTPError
|
||||
)
|
||||
|
||||
|
||||
class VidLiiIE(InfoExtractor):
|
||||
_VALID_URL = r'https?://(?:www\.)?vidlii\.com/(?:watch|embed)\?.*?\bv=(?P<id>[0-9A-Za-z_-]{11})'
|
||||
@ -85,7 +89,7 @@ class VidLiiIE(InfoExtractor):
|
||||
try:
|
||||
self._request_webpage(sources[1][1], video_id, 'Checking HD URL')
|
||||
add_format(sources[1][1])
|
||||
except Exception:
|
||||
except compat_HTTPError:
|
||||
pass
|
||||
|
||||
add_format(sources[0][1])
|
||||
|
Loading…
x
Reference in New Issue
Block a user