From 0b8731cbc743361706aab269f5c1e1a7991447d9 Mon Sep 17 00:00:00 2001 From: Justsoos Date: Tue, 13 Feb 2018 03:46:43 +0800 Subject: [PATCH] Update quanmin.py api changed, and no need of import time --- src/you_get/extractors/quanmin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/you_get/extractors/quanmin.py b/src/you_get/extractors/quanmin.py index bf1af659..7428d1cb 100644 --- a/src/you_get/extractors/quanmin.py +++ b/src/you_get/extractors/quanmin.py @@ -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: