Skip to content

Commit

Permalink
Changed Settings page layout, added notifo, added growl, added blackh…
Browse files Browse the repository at this point in the history
…ole for nzb's, fixed issues with nzbmatrix
  • Loading branch information
Michael Dlesk committed Jan 12, 2012
1 parent d947db9 commit bfba415
Show file tree
Hide file tree
Showing 17 changed files with 20,121 additions and 98 deletions.
18,773 changes: 18,773 additions & 0 deletions 101-in-1 Party Megamix - Wii.nzb

Large diffs are not rendered by default.

Binary file modified Gamez.db
Binary file not shown.
17 changes: 16 additions & 1 deletion Gamez.ini
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,29 @@ port = 8081
category = ""

[Scheduler]
download_interval = 60
download_interval = 5
game_list_update_interval = 86400

[SystemGenerated]
is_to_ignore_update = 0
ignored_version =
api_key = "ikzFRzA1Y8I1UajNJAOQ803TbTYk1vLB64A9SxrAxAw"
sabnzbd_enabled = 0
nzbmatrix_enabled = 0
newznab_enabled = 0
prowl_enabled = 0
growl_enabled = 0
notifo_enabled = 0
blackhole_nzb_enabled = 0

[Notifications]
prowl_api = ""
growl_host = ""
growl_port = 23053
growl_password = ""
notifo_username = ""
notifo_apikey = ""

[Blackhole]
nzb_blackhole_path = ""

14 changes: 10 additions & 4 deletions Gamez.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ def RunWebServer(self,isToDaemonize):
LogEvent("Preparing to run in daemon mode")
daemon = Daemonizer(cherrypy.engine)
daemon.subscribe()

LogEvent("Generating Post Process Script")
GenerateSabPostProcessScript()
isSabEnabled = config.get('SystemGenerated','sabnzbd_enabled').replace('"','')
if(isSabEnabled == "1"):
LogEvent("Generating Post Process Script")
GenerateSabPostProcessScript()
RunGameTask()

LogEvent("Getting download interval from config file and invoking scheduler")
Expand Down Expand Up @@ -140,8 +141,13 @@ def RunGameTask():
newznabApi = config.get('Newznab','api_key').replace('"','')
newznabHost = config.get('Newznab','host').replace('"','')
newznabPort = config.get('Newznab','port').replace('"','')
isSabEnabled = config.get('SystemGenerated','sabnzbd_enabled').replace('"','')
isNzbMatrixEnabled = config.get('SystemGenerated','nzbmatrix_enabled').replace('"','')
isNewznabEnabled = config.get('SystemGenerated','newznab_enabled').replace('"','')
isNzbBlackholeEnabled = config.get('SystemGenerated','blackhole_nzb_enabled').replace('"','')
nzbBlackholePath = config.get('Blackhole','nzb_blackhole_path').replace('"','')
LogEvent("Searching for games")
lib.GameTasks.GameTasks().FindGames(nzbMatrixUser,nzbMatrixApi,sabnzbdApi,sabnzbdHost,sabnzbdPort,newznabWiiCat,newznabApi,newznabHost,newznabPort,newznabXbox360Cat,sabnzbdCategory)
lib.GameTasks.GameTasks().FindGames(nzbMatrixUser,nzbMatrixApi,sabnzbdApi,sabnzbdHost,sabnzbdPort,newznabWiiCat,newznabApi,newznabHost,newznabPort,newznabXbox360Cat,sabnzbdCategory,isSabEnabled,isNzbMatrixEnabled,isNewznabEnabled,isNzbBlackholeEnabled,nzbBlackholePath)
except:
errorMessage = "Major error occured when running scheduled tasks"
for message in sys.exc_info():
Expand Down
Loading

0 comments on commit bfba415

Please sign in to comment.