logo

youtube-dl

[mirror] Download/Watch videos from video hostersgit clone https://hacktivis.me/git/mirror/youtube-dl.git
commit: 57b9a4b4c6cf2580b5007db78bd333a9a237fd47
parent 3a7ef27cf306a0a8f79ebd78ae60329c53080d14
Author: Sergey M․ <dstftw@gmail.com>
Date:   Mon, 21 Jun 2021 00:36:28 +0700

[nrk] Switch psapi URL to https (closes #29344)

Catalog calls no longer work via http

Diffstat:

Myoutube_dl/extractor/nrk.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/nrk.py b/youtube_dl/extractor/nrk.py @@ -58,7 +58,7 @@ class NRKBaseIE(InfoExtractor): def _call_api(self, path, video_id, item=None, note=None, fatal=True, query=None): return self._download_json( - urljoin('http://psapi.nrk.no/', path), + urljoin('https://psapi.nrk.no/', path), video_id, note or 'Downloading %s JSON' % item, fatal=fatal, query=query, headers={'Accept-Encoding': 'gzip, deflate, br'})