From 6b1e4771977f5d1b656f610a276acada1998fb9b Mon Sep 17 00:00:00 2001 From: schnusch Date: Fri, 30 Apr 2021 17:36:47 +0200 Subject: [PATCH] [ninjastream] fix line endings --- youtube_dl/extractor/ninjastream.py | 160 ++++++++++++++-------------- 1 file changed, 80 insertions(+), 80 deletions(-) diff --git a/youtube_dl/extractor/ninjastream.py b/youtube_dl/extractor/ninjastream.py index b5929b645..70995f3ed 100644 --- a/youtube_dl/extractor/ninjastream.py +++ b/youtube_dl/extractor/ninjastream.py @@ -1,80 +1,80 @@ -# coding: utf-8 -from __future__ import unicode_literals - -import os - -from .common import InfoExtractor -from ..utils import ExtractorError - - -class NinjaStreamIE(InfoExtractor): - """ - Handles downloading video from ninjastream.to - """ - _VALID_URL = r'https?://(?:\w+\.)?ninjastream\.to/watch/[0-9a-zA-Z]+' - _TESTS = [ - { - 'url': 'https://ninjastream.to/watch/74GA02Nw6ZYBk', - 'info_dict': { - 'id': '74GA02Nw6ZYBk', - 'ext': 'mp4', - 'title': 'Damon_Andros_and_Stephen_Harte' - }, - } - ] - - def _real_extract(self, url): - """ - Parses the URL into the video's URL. - """ - # Parse the video id - video_id = self._search_regex( - r'https?://(?:\w+\.)?ninjastream\.to/watch/([0-9a-zA-Z]+)', - url, 'video_id', fatal=False, default='') - - # 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' tag + jwplayer_link = self._html_search_regex( + r'