mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
naming, values, config und library link update
This commit is contained in:
parent
9fa72c64b8
commit
a772fc0bcf
4 changed files with 46 additions and 8 deletions
|
@ -114,7 +114,7 @@ _CONFIG_DEFINITIONS = {
|
|||
'HOME_SECTIONS': (list, 'General', ['current_activity', 'watch_stats', 'library_stats', 'recently_added']),
|
||||
'HOME_LIBRARY_CARDS': (list, 'General', ['first_run']),
|
||||
'HOME_STATS_CARDS': (list, 'General', ['top_movies', 'popular_movies', 'top_tv', 'popular_tv', 'top_music',
|
||||
'popular_music', 'last_watched', 'top_users', 'top_platforms', 'most_concurrent', 'top_libraries']),
|
||||
'popular_music', 'last_watched', 'top_libraries', 'top_users', 'top_platforms', 'most_concurrent']),
|
||||
'HOME_REFRESH_INTERVAL': (int, 'General', 10),
|
||||
'HTTPS_CREATE_CERT': (int, 'General', 1),
|
||||
'HTTPS_CERT': (str, 'General', ''),
|
||||
|
@ -546,3 +546,14 @@ class Config(object):
|
|||
self.PLEXPY_AUTO_UPDATE = 0
|
||||
|
||||
self.CONFIG_VERSION = 17
|
||||
|
||||
if self.CONFIG_VERSION == 17:
|
||||
home_stats_cards = self.HOME_STATS_CARDS
|
||||
if 'top_users' in home_stats_cards:
|
||||
top_users_index = home_stats_cards.index('top_users')
|
||||
home_stats_cards.insert(top_users_index, 'top_libraries')
|
||||
else:
|
||||
home_stats_cards.add('top_libaries')
|
||||
self.HOME_STATS_CARDS = home_stats_cards
|
||||
|
||||
self.CONFIG_VERSION = 18
|
Loading…
Add table
Add a link
Reference in a new issue