mirror of
https://github.com/soimort/you-get.git
synced 2025-01-24 05:55:02 +03:00
Update quanmin.py
api changed, and no need of import time
This commit is contained in:
parent
0ed54eea3f
commit
0b8731cbc7
@ -4,7 +4,6 @@ __all__ = ['quanmin_download']
|
||||
|
||||
from ..common import *
|
||||
import json
|
||||
import time
|
||||
|
||||
def quanmin_download(url, output_dir = '.', merge = True, info_only = False, **kwargs):
|
||||
roomid = url.split('/')[3].split('?')[0]
|
||||
@ -17,7 +16,8 @@ def quanmin_download(url, output_dir = '.', merge = True, info_only = False, **k
|
||||
|
||||
if not data["play_status"]:
|
||||
raise ValueError("The live stream is not online!")
|
||||
real_url = "http://flv.quanmin.tv/live/{}.flv".format(roomid)
|
||||
|
||||
real_url = data["live"]["ws"]["flv"]["5"]["src"]
|
||||
|
||||
print_info(site_info, title, 'flv', float('inf'))
|
||||
if not info_only:
|
||||
|
Loading…
Reference in New Issue
Block a user