From 06d7da454f3d7e7767763e0775bac76beed630b1 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Mon, 21 Apr 2014 18:24:43 +0200 Subject: [PATCH] picsearch: convert into new video fetcher --- lib/svtplay_dl/service/picsearch.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/lib/svtplay_dl/service/picsearch.py b/lib/svtplay_dl/service/picsearch.py index 7727b8d..55744d6 100644 --- a/lib/svtplay_dl/service/picsearch.py +++ b/lib/svtplay_dl/service/picsearch.py @@ -7,7 +7,7 @@ import sys from svtplay_dl.service import Service, OpenGraphThumbMixin from svtplay_dl.utils import get_http_data, select_quality -from svtplay_dl.fetcher.rtmp import download_rtmp +from svtplay_dl.fetcher.rtmp import RTMP from svtplay_dl.log import log class Picsearch(Service, OpenGraphThumbMixin): @@ -28,11 +28,6 @@ class Picsearch(Service, OpenGraphThumbMixin): files = jsondata["media"]["playerconfig"]["playlist"][1]["bitrates"] server = jsondata["media"]["playerconfig"]["plugins"]["bwcheck"]["netConnectionUrl"] - streams = {} for i in files: - streams[int(i["height"])] = i["url"] - - path = select_quality(options, streams) - - options.other = "-y '%s'" % path - download_rtmp(options, server) \ No newline at end of file + options.other = "-y '%s'" % i["url"] + yield RTMP(options, server, i["height"])