mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-13 00:32:58 -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.
|
||||
#
|
||||
|
@ -909,7 +909,7 @@ class DataFactory(object):
|
|||
for item in result:
|
||||
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
|
||||
|
||||
if item['custom_thumb'] and item['custom_thumb'] != item['library_thumb']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue