mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 05:34:15 +01:00
tv4play: make all-last great again
This commit is contained in:
parent
b8949ff077
commit
25f734fa43
@ -138,7 +138,7 @@ class Tv4play(Service, OpenGraphThumbMixin):
|
||||
episodes.append(f"https://www.tv4play.se/video/{item}")
|
||||
|
||||
if config.get("all_last") > 0:
|
||||
return episodes[-config.get("all_last") :]
|
||||
return episodes[: config.get("all_last")]
|
||||
if not episodes:
|
||||
logging.warning("Can't find any videos")
|
||||
return episodes
|
||||
|
Loading…
Reference in New Issue
Block a user