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

remove some old naming methods that we dont need now

This commit is contained in:
Johan Andersson 2018-05-08 22:51:27 +02:00
parent 4271bbe615
commit 77115279e1
3 changed files with 2 additions and 10 deletions

View File

@ -52,9 +52,7 @@ class Barnkanalen(Svtplay):
if "live" in janson["video"]:
self.config.set("live", janson["video"]["live"])
if self.options.output_auto:
self.options.service = "svtplay"
self.options.output = self.outputfilename(janson["video"])
self.outputfilename(janson["video"])
if "programVersionId" in janson["video"]:
vid = janson["video"]["programVersionId"]

View File

@ -11,12 +11,7 @@ from svtplay_dl.fetcher.dash import dashparse
class Raw(Service):
def get(self):
filename = os.path.basename(self.url[:self.url.rfind("/")])
if self.options.output and os.path.isdir(self.options.output):
self.options.output = os.path.join(os.path.dirname(self.options.output), filename)
extention = True
elif self.options.output is None:
self.options.output = filename
extention = True
self.output["title"] = filename
streams = []
if re.search(".f4m", self.url):

View File

@ -73,7 +73,6 @@ class Tv4play(Service, OpenGraphThumbMixin):
return
if self.options.get("output_auto"):
self.options.service = "tv4play"
basename = self._autoname(vid)
if not basename:
yield ServiceError("Cant find vid id for autonaming.")