mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 21:03:21 -07:00
Update the watch monitor to enable us to do proper watch logging.
Upgrade sessions table Correnty encode text lines from PMS log reader.
This commit is contained in:
parent
8a93b359c6
commit
ec3253afdb
3 changed files with 85 additions and 60 deletions
|
@ -38,6 +38,7 @@ def get_log_tail(window=20, parsed=True):
|
|||
clean_lines = []
|
||||
for i in log_lines:
|
||||
try:
|
||||
i = helpers.latinToAscii(i)
|
||||
log_time = i.split(' [')[0]
|
||||
log_level = i.split('] ', 1)[1].split(' - ',1)[0]
|
||||
log_msg = i.split('] ', 1)[1].split(' - ',1)[1]
|
||||
|
@ -52,6 +53,12 @@ def get_log_tail(window=20, parsed=True):
|
|||
logger.error('PlexPy was unable to parse some lines of the Plex Media Server log.')
|
||||
|
||||
return clean_lines
|
||||
else:
|
||||
raw_lines = []
|
||||
for i in log_lines:
|
||||
raw_lines.append(helpers.latinToAscii(i))
|
||||
|
||||
return raw_lines
|
||||
|
||||
return log_lines
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue