mirror of https://github.com/blackjack4494/yt-dlc
[xfileshare] Modernize and pass referrer
This commit is contained in:
parent
624bd0104c
commit
16bc958287
|
@ -130,12 +130,12 @@ class XFileShareIE(InfoExtractor):
|
||||||
if countdown:
|
if countdown:
|
||||||
self._sleep(countdown, video_id)
|
self._sleep(countdown, video_id)
|
||||||
|
|
||||||
post = urlencode_postdata(fields)
|
webpage = self._download_webpage(
|
||||||
|
url, video_id, 'Downloading video page',
|
||||||
req = sanitized_Request(url, post)
|
data=urlencode_postdata(fields), headers={
|
||||||
req.add_header('Content-type', 'application/x-www-form-urlencoded')
|
'Referer': url,
|
||||||
|
'Content-type': 'application/x-www-form-urlencoded',
|
||||||
webpage = self._download_webpage(req, video_id, 'Downloading video page')
|
})
|
||||||
|
|
||||||
title = (self._search_regex(
|
title = (self._search_regex(
|
||||||
(r'style="z-index: [0-9]+;">([^<]+)</span>',
|
(r'style="z-index: [0-9]+;">([^<]+)</span>',
|
||||||
|
|
Loading…
Reference in New Issue