From 30e23c171dc022d51e3a163cf828bd1eca810781 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Mon, 21 Apr 2014 18:26:26 +0200 Subject: [PATCH] bambuser: convert into new video fetcher --- lib/svtplay_dl/service/bambuser.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/svtplay_dl/service/bambuser.py b/lib/svtplay_dl/service/bambuser.py index 927e9e6..9844f76 100644 --- a/lib/svtplay_dl/service/bambuser.py +++ b/lib/svtplay_dl/service/bambuser.py @@ -8,8 +8,8 @@ import json from svtplay_dl.service import Service, OpenGraphThumbMixin from svtplay_dl.utils import get_http_data from svtplay_dl.log import log -from svtplay_dl.fetcher.rtmp import download_rtmp -from svtplay_dl.fetcher.http import download_http +from svtplay_dl.fetcher.rtmp import RTMP +from svtplay_dl.fetcher.http import HTTP class Bambuser(Service, OpenGraphThumbMixin): supported_domains = ["bambuser.com"] @@ -28,7 +28,7 @@ class Bambuser(Service, OpenGraphThumbMixin): options.other = "-y %s" % playpath if info["type"] == "live": options.live = True - download_rtmp(options, video) + yield RTMP(options, video, "0") else: - download_http(options, video) + yield HTTP(options, video, "0")