mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
Fix missed option to config change in barnkanalen service.
This commit is contained in:
parent
7c6bf55301
commit
8297d6614f
@ -68,7 +68,7 @@ class Barnkanalen(Svtplay):
|
||||
for i in videos:
|
||||
yield i
|
||||
|
||||
def find_all_episodes(self, options):
|
||||
def find_all_episodes(self, config):
|
||||
videos = []
|
||||
match = re.search("__barnplay'] = ({.*});", self.get_urldata())
|
||||
if not match:
|
||||
@ -86,8 +86,8 @@ class Barnkanalen(Svtplay):
|
||||
|
||||
episodes = [urljoin("http://www.svt.se", x) for x in videos]
|
||||
|
||||
if options.all_last > 0:
|
||||
return episodes[-options.all_last:]
|
||||
if config.get("all_last") > 0:
|
||||
return episodes[-config.get("all_last"):]
|
||||
return episodes
|
||||
|
||||
def videos_to_list(self, lvideos, videos):
|
||||
|
Loading…
Reference in New Issue
Block a user