mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-28 06:04:17 +01:00
bambuser: convert into new video fetcher
This commit is contained in:
parent
5b5b039e9b
commit
30e23c171d
@ -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")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user