Implemented info modal on History page.
Updated Datatables. Updated to match current PlexWatchWeb styling. Some code clean-up.
This commit is contained in:
@@ -24,6 +24,8 @@ import time
|
||||
import sys
|
||||
import re
|
||||
import os
|
||||
import json
|
||||
import xmltodict
|
||||
|
||||
|
||||
def multikeysort(items, columns):
|
||||
@@ -324,4 +326,14 @@ def cast_to_float(s):
|
||||
try:
|
||||
return float(s)
|
||||
except ValueError:
|
||||
return -1
|
||||
return -1
|
||||
|
||||
|
||||
def convert_xml_to_json(xml):
|
||||
o = xmltodict.parse(xml)
|
||||
return json.dumps(o)
|
||||
|
||||
|
||||
def convert_xml_to_dict(xml):
|
||||
o = xmltodict.parse(xml)
|
||||
return o
|
Reference in New Issue
Block a user