This commit is contained in:
Alhaziel01
2021-07-05 19:51:47 +02:00
parent 2662277a71
commit 3103864308
6 changed files with 81 additions and 12 deletions
+8
View File
@@ -679,6 +679,14 @@ def save_episodes(item, episodelist, extra_info, host, local_files, silent=False
return inserted, overwritten, failed
def add_to_videolibrary(item, channel):
itemlist = getattr(channel, item.from_action)(item)
if itemlist and itemlist[0].contentType == 'episode':
return add_tvshow(item, channel)
else:
return add_movie(item)
def add_movie(item):
"""
Keep a movie at the movie library. The movie can be a link within a channel or a previously downloaded video.