From f7c20b236c967e6241b48a430c14a6e97681cefd Mon Sep 17 00:00:00 2001 From: David Zhuang Date: Tue, 17 May 2016 15:28:33 -0400 Subject: [PATCH] [MGTV]Fix some video cannot be downloaded in full length --- src/you_get/extractors/mgtv.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/you_get/extractors/mgtv.py b/src/you_get/extractors/mgtv.py index a3b7a06e..aeb42490 100644 --- a/src/you_get/extractors/mgtv.py +++ b/src/you_get/extractors/mgtv.py @@ -7,6 +7,7 @@ from ..extractor import VideoExtractor from json import loads from urllib.parse import urlsplit from os.path import dirname +import re class MGTV(VideoExtractor): name = "芒果 (MGTV)" @@ -67,6 +68,7 @@ class MGTV(VideoExtractor): if s['video_profile'] in stream_available.keys(): quality_id = self.id_dic[s['video_profile']] url = stream_available[s['video_profile']] + url = re.sub( r'(\&arange\=\d+)', '', url) #Un-Hum segment_list_this = self.get_mgtv_real_url(url) container_this_stream = ''