mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-13 08:42:59 -07:00
Fix if library watch time stats are blocked for guest access
This commit is contained in:
parent
2949fd4079
commit
e25c18bb20
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# This file is part of Tautulli.
|
# This file is part of Tautulli.
|
||||||
#
|
#
|
||||||
|
@ -909,7 +909,7 @@ class DataFactory(object):
|
||||||
for item in result:
|
for item in result:
|
||||||
library_item = library_data.get_watch_time_stats(section_id=item['section_id'], grouping=None , query_days=time_range)
|
library_item = library_data.get_watch_time_stats(section_id=item['section_id'], grouping=None , query_days=time_range)
|
||||||
|
|
||||||
if library_item[0]['total_plays'] == 0 and library_item[0]['total_time'] == 0:
|
if not library_item or library_item[0]['total_plays'] == 0 and library_item[0]['total_time'] == 0:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if item['custom_thumb'] and item['custom_thumb'] != item['library_thumb']:
|
if item['custom_thumb'] and item['custom_thumb'] != item['library_thumb']:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue