mirror of
https://github.com/soimort/you-get.git
synced 2025-01-24 22:15:03 +03:00
[MGTV]Fix some video cannot be downloaded in full length
This commit is contained in:
parent
6938894337
commit
f7c20b236c
@ -7,6 +7,7 @@ from ..extractor import VideoExtractor
|
|||||||
from json import loads
|
from json import loads
|
||||||
from urllib.parse import urlsplit
|
from urllib.parse import urlsplit
|
||||||
from os.path import dirname
|
from os.path import dirname
|
||||||
|
import re
|
||||||
|
|
||||||
class MGTV(VideoExtractor):
|
class MGTV(VideoExtractor):
|
||||||
name = "芒果 (MGTV)"
|
name = "芒果 (MGTV)"
|
||||||
@ -67,6 +68,7 @@ class MGTV(VideoExtractor):
|
|||||||
if s['video_profile'] in stream_available.keys():
|
if s['video_profile'] in stream_available.keys():
|
||||||
quality_id = self.id_dic[s['video_profile']]
|
quality_id = self.id_dic[s['video_profile']]
|
||||||
url = stream_available[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)
|
segment_list_this = self.get_mgtv_real_url(url)
|
||||||
|
|
||||||
container_this_stream = ''
|
container_this_stream = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user