mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-07 12:19:29 +01:00
mend
This commit is contained in:
25
config.ini
25
config.ini
@@ -1,25 +0,0 @@
|
||||
[General]
|
||||
http_host = 0.0.0.0
|
||||
http_port = 8181
|
||||
http_username = ohmightyrv
|
||||
http_password = nelson1
|
||||
launch_browser = 0
|
||||
include_lossless = 0
|
||||
flac_to_mp3 = 0
|
||||
move_to_itunes = 0
|
||||
path_to_itunes = ""
|
||||
rename_mp3s = 0
|
||||
cleanup = 0
|
||||
add_album_art = 0
|
||||
music_download_dir = ""
|
||||
usenet_retention = 500
|
||||
[SABnzbd]
|
||||
sab_host = 0.0.0.0:8080
|
||||
sab_username = ohmightyrv
|
||||
sab_password = nelson1
|
||||
sab_apikey = 1be61ba6032dfd98892969aa799d3541
|
||||
sab_category = music
|
||||
[NZBMatrix]
|
||||
nzbmatrix = 1
|
||||
nzbmatrix_username = ohmightyrv
|
||||
nzbmatrix_apikey = 01a9d83368952932bb3b43386e593fe1
|
||||
@@ -1,32 +0,0 @@
|
||||
from cherrypy.process.plugins import SimplePlugin
|
||||
import time
|
||||
import threading
|
||||
import Queue
|
||||
|
||||
class threadtool(SimplePlugin):
|
||||
|
||||
thread = None
|
||||
|
||||
def __init__(self, bus):
|
||||
SimplePlugin.__init__(self, bus)
|
||||
|
||||
def start(self):
|
||||
self.running = True
|
||||
if not self.thread:
|
||||
self.thread = threading.Thread(target=self.run)
|
||||
self.thread.start()
|
||||
|
||||
def stop(self):
|
||||
self.running = False
|
||||
|
||||
if self.thread:
|
||||
self.thread.join()
|
||||
self.thread = None
|
||||
self.running = False
|
||||
|
||||
def run(self):
|
||||
while self.running:
|
||||
from webServer import database
|
||||
import updater
|
||||
updater.dbUpdate(database)
|
||||
time.sleep(3600*24)
|
||||
@@ -1,6 +0,0 @@
|
||||
import time
|
||||
|
||||
def threadtest():
|
||||
while True:
|
||||
print '''The time is now'''
|
||||
time.sleep(10)
|
||||
Reference in New Issue
Block a user