2014-03-20, 16:49
How does the script work for TV Show smart playlists :
- make a JSON query for getting all TV Shows in smart playlist
- for each TV Show, get all episodes
- if recommended parameter = True then look for the first unwatched episode (so S01E01 for TV show with any watched episode) and add it to a result list
- when all the TV shows are scanned, sort the result list by dateadded is method parameter = Last or random
- fill properties for widget
- make a JSON query for getting all TV Shows in smart playlist
- for each TV Show, get all episodes
- if recommended parameter = True then look for the first unwatched episode (so S01E01 for TV show with any watched episode) and add it to a result list
- when all the TV shows are scanned, sort the result list by dateadded is method parameter = Last or random
- fill properties for widget