update filters_lst to reflect change in plexapi

This commit is contained in:
blacktwin 2020-11-03 01:07:29 -05:00
parent 65285d4b3a
commit 0ecd6c097f

View File

@ -178,7 +178,7 @@ account = plex.myPlexAccount()
user_lst = [x.title for x in plex.myPlexAccount().users() if x.servers and x.friend]
sections = plex.library.sections()
sections_dict = {x.key: x.title for x in sections}
filters_lst = list(set([y for x in sections if x.type != 'photo' for y in x.ALLOWED_FILTERS]))
filters_lst = list(set([y.key for x in sections if x.type != 'photo' for y in x.filterFields()]))
playlist_lst = [x.title for x in plex.playlists()]
today = datetime.datetime.now().date()
weeknum = datetime.date(today.year, today.month, today.day).isocalendar()[1]