mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
remove some old naming methods that we dont need now
This commit is contained in:
parent
4271bbe615
commit
77115279e1
@ -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"]
|
||||
|
@ -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):
|
||||
|
@ -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.")
|
||||
|
Loading…
Reference in New Issue
Block a user