mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-03 01:05:44 +08:00
Fix for issue 16262
Playlist loading initialize the 'platform' cookie on the domain '.pornhub.com' (with initial dot) This messes up with the loading of the tv_webpage that specifies another value for the 'platform' cookie but on the 'pornhub.com' domain (no initial dot) Fix is to clear the .pornhub.com domain cookies
This commit is contained in:
parent
9fb62e35f6
commit
c7b455b9b4
@ -115,6 +115,9 @@ class PornHubIE(InfoExtractor):
|
|||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
|
|
||||||
|
# playlist loading can lead to cookies here, interferring with platform settings
|
||||||
|
self._downloader.cookiejar.clear('.pornhub.com')
|
||||||
|
|
||||||
self._set_cookie('pornhub.com', 'age_verified', '1')
|
self._set_cookie('pornhub.com', 'age_verified', '1')
|
||||||
|
|
||||||
def dl_webpage(platform):
|
def dl_webpage(platform):
|
||||||
|
Loading…
Reference in New Issue
Block a user