From 01924f678a3ee18dce53ddb5178600afd89fb44a Mon Sep 17 00:00:00 2001 From: schnusch Date: Fri, 30 Apr 2021 18:00:29 +0200 Subject: [PATCH] [ninjastream] request API to obtain playlist URL --- youtube_dl/extractor/ninjastream.py | 50 +++++++++++------------------ 1 file changed, 19 insertions(+), 31 deletions(-) diff --git a/youtube_dl/extractor/ninjastream.py b/youtube_dl/extractor/ninjastream.py index d91e0c853..df7ad30de 100644 --- a/youtube_dl/extractor/ninjastream.py +++ b/youtube_dl/extractor/ninjastream.py @@ -1,10 +1,10 @@ # coding: utf-8 from __future__ import unicode_literals -import os +import json +import posixpath from .common import InfoExtractor -from ..utils import ExtractorError class NinjaStreamIE(InfoExtractor): @@ -29,43 +29,31 @@ class NinjaStreamIE(InfoExtractor): # Get the hosted webpage webpage = self._download_webpage(url, video_id) - # The links to the m3u8 file will be buried and html encoded in - # the tag - jwplayer_link = self._html_search_regex( - r'