mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-15 07:42:42 +00:00
[mixcloud] Use a HEAD request when checking if the url is valid
This commit is contained in:
parent
704df56da7
commit
dbc1366b50
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ from .common import InfoExtractor
|
|||
from ..utils import (
|
||||
compat_urllib_parse,
|
||||
ExtractorError,
|
||||
HEADRequest,
|
||||
int_or_none,
|
||||
parse_iso8601,
|
||||
)
|
||||
|
@ -38,7 +39,7 @@ class MixcloudIE(InfoExtractor):
|
|||
try:
|
||||
# We only want to know if the request succeed
|
||||
# don't download the whole file
|
||||
self._request_webpage(url, None, False)
|
||||
self._request_webpage(HEADRequest(url), None, False)
|
||||
return url
|
||||
except ExtractorError:
|
||||
url = None
|
||||
|
|
Loading…
Reference in a new issue