mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-08-15 15:14:14 +09:00
Python 2
This commit is contained in:
parent
a0832f102f
commit
3c87b05bb0
@ -14,9 +14,10 @@ from ..utils import (
|
|||||||
urljoin,
|
urljoin,
|
||||||
)
|
)
|
||||||
|
|
||||||
from ..compat import (
|
try:
|
||||||
compat_HTTPError
|
from urllib.error import HTTPError
|
||||||
)
|
except ImportError: # Python 2 support
|
||||||
|
from urllib2 import HTTPError
|
||||||
|
|
||||||
|
|
||||||
class VidLiiIE(InfoExtractor):
|
class VidLiiIE(InfoExtractor):
|
||||||
@ -89,7 +90,7 @@ class VidLiiIE(InfoExtractor):
|
|||||||
try:
|
try:
|
||||||
self._request_webpage(sources[1][1], video_id, 'Checking HD URL')
|
self._request_webpage(sources[1][1], video_id, 'Checking HD URL')
|
||||||
add_format(sources[1][1])
|
add_format(sources[1][1])
|
||||||
except compat_HTTPError:
|
except HTTPError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
add_format(sources[0][1])
|
add_format(sources[0][1])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user