Update quanmin.py

api changed, and no need of import time
This commit is contained in:
Justsoos 2018-02-13 03:46:43 +08:00 committed by GitHub
parent 0ed54eea3f
commit 0b8731cbc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: