def reload():
import urllib2
with open(os.getenv("HOME") + "/Dropbox/.plex-token") as f:
content = f.readlines()[0].strip()
url = "http://127.0.0.1:32400/:/plugins/com.plexapp.system/restart?X-Plex-Token=" + content
urllib2.urlopen(url).read()
print("Server was restarted.")
run("tail -f ~/Library/Logs/Plex\ Media\ Server/PMS\ Plugin\ Logs/com.plexapp.plugins." + plugin_name + ".log")
评论列表
文章目录