[nrk] fix call to moved method
authorRemita Amine <remitamine@gmail.com>
Fri, 4 Dec 2020 17:08:08 +0000 (18:08 +0100)
committerRemita Amine <remitamine@gmail.com>
Fri, 4 Dec 2020 17:08:08 +0000 (18:08 +0100)
youtube_dl/extractor/nrk.py

index 0f69579c5a9d51d3a632c77fc6a88690ea0ff012..8595f55b12ee8d5ae05cb7a5a8d05c7922a25113 100644 (file)
@@ -320,7 +320,7 @@ class NRKTVIE(NRKBaseIE):
                 asset_url = asset.get('url')
                 if not asset_url or asset_url in urls:
                     continue
-                formats = extract_nrk_formats(asset_url, video_id)
+                formats = self._extract_nrk_formats(asset_url, video_id)
                 if not formats:
                     continue
                 self._sort_formats(formats)
@@ -345,7 +345,7 @@ class NRKTVIE(NRKBaseIE):
         if not entries:
             media_url = data.get('mediaUrl')
             if media_url and media_url not in urls:
-                formats = extract_nrk_formats(media_url, video_id)
+                formats = self._extract_nrk_formats(media_url, video_id)
                 if formats:
                     self._sort_formats(formats)
                     duration = parse_duration(data.get('duration'))