1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

bambuser: old service. removing

This commit is contained in:
Johan Andersson 2018-11-12 18:49:29 +01:00
parent 772670b6c9
commit d72c3dd558
2 changed files with 0 additions and 37 deletions

View File

@ -1,35 +0,0 @@
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
from __future__ import absolute_import
import re
import json
import copy
from svtplay_dl.service import Service, OpenGraphThumbMixin
from svtplay_dl.error import ServiceError
from svtplay_dl.fetcher.rtmp import RTMP
from svtplay_dl.fetcher.http import HTTP
class Bambuser(Service, OpenGraphThumbMixin):
supported_domains = ["bambuser.com"]
def get(self):
match = re.search(r"v/(\d+)", self.url)
if not match:
yield ServiceError("Can't find video id in url")
return
json_url = "http://player-c.api.bambuser.com/getVideo.json?api_key=005f64509e19a868399060af746a00aa&vid={0}".format(match.group(1))
data = self.http.request("get", json_url).text
info = json.loads(data)["result"]
video = info["url"]
if video[:4] == "rtmp":
playpath = info["id"][len(info["id"]) - 36:]
other = "-y {0}".format(playpath)
if info["type"] == "live":
self.config.set("live", True)
yield RTMP(copy.copy(self.config), video, "0", other=other)
else:
yield HTTP(copy.copy(self.config), video, "0")

View File

@ -1,7 +1,6 @@
from __future__ import absolute_import
from svtplay_dl.service.aftonbladet import Aftonbladet, Aftonbladettv
from svtplay_dl.service.bambuser import Bambuser
from svtplay_dl.service.bigbrother import Bigbrother
from svtplay_dl.service.cmore import Cmore
from svtplay_dl.service.disney import Disney
@ -46,7 +45,6 @@ from svtplay_dl.service.youplay import Youplay
sites = [
Aftonbladet,
Aftonbladettv,
Bambuser,
Barnkanalen,
Bigbrother,
Cmore,