1
0
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:
Mikael Larsson 2024-01-08 19:47:42 +01:00
parent b8949ff077
commit 25f734fa43

View File

@ -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