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'