mirror of
https://github.com/KevinMidboe/Node-Com-Handler.git
synced 2025-10-29 17:50:27 +00:00
Fixed system call on line 13
This commit is contained in:
@@ -3,14 +3,14 @@
|
|||||||
# @Author: KevinMidboe
|
# @Author: KevinMidboe
|
||||||
# @Date: 2017-01-28 23:21:22
|
# @Date: 2017-01-28 23:21:22
|
||||||
# @Last Modified by: KevinMidboe
|
# @Last Modified by: KevinMidboe
|
||||||
# @Last Modified time: 2017-01-28 23:23:01
|
# @Last Modified time: 2017-01-28 23:28:49
|
||||||
|
|
||||||
from os import system
|
from os import system
|
||||||
import xml.etree.ElementTree as ET
|
import xml.etree.ElementTree as ET
|
||||||
|
|
||||||
def plex_watching():
|
def plex_watching():
|
||||||
# Every call saves the info of session.xml to a file named plexPlaying
|
# Every call saves the info of session.xml to a file named plexPlaying
|
||||||
system('curl --silent 10.0.0.41:32400/status/sessions > ~/plexPy/plexPlaying.xml')
|
system('curl --silent 10.0.0.41:32400/status/sessions > /plexPy/plexPlaying.xml')
|
||||||
|
|
||||||
# XML parsing, creates a tree and saves the root node as root
|
# XML parsing, creates a tree and saves the root node as root
|
||||||
tree = ET.parse('plexPy/plexPlaying.xml')
|
tree = ET.parse('plexPy/plexPlaying.xml')
|
||||||
|
|||||||
Reference in New Issue
Block a user