mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 07:22:37 -07:00
Default blank session value when writing session history
This commit is contained in:
parent
0b8d5954f9
commit
b2157df026
1 changed files with 4 additions and 1 deletions
|
@ -13,6 +13,7 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with Tautulli. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from collections import defaultdict
|
||||
import json
|
||||
import threading
|
||||
import time
|
||||
|
@ -153,9 +154,11 @@ class ActivityProcessor(object):
|
|||
logging_enabled = False
|
||||
|
||||
# Reload json from raw stream info
|
||||
if 'raw_stream_info' in session:
|
||||
if session.get('raw_stream_info'):
|
||||
session.update(json.loads(session['raw_stream_info']))
|
||||
|
||||
session = defaultdict(str, session)
|
||||
|
||||
if is_import:
|
||||
if str(session['stopped']).isdigit():
|
||||
stopped = int(session['stopped'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue