Skip to content

Commit

Permalink
Added XBOX 360 to settings page
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Dlesk committed Jan 2, 2012
1 parent 5b0d42a commit 4542b7f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
Binary file modified Gamez.db
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/Constants.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
def VersionNumber():
return "0.0.1.0"
return "1.1.1.0"
Binary file modified lib/Constants.pyc
Binary file not shown.
7 changes: 6 additions & 1 deletion lib/WebRoot.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,9 @@ def settings(self):
<label>Newznab Wii Category ID</label>
<input type="text" name="newznabWiiCat" id="newznabWiiCat" value='""" + config.get('Newznab','wii_category_id').replace('"','') + """' />
<label>Newznab Xbox 360 Category ID</label>
<input type="text" name="newznabXbox360Cat" id="newznabXbox360Cat" value='""" + config.get('Newznab','xbox360_category_id').replace('"','') + """' />
<button type="submit">Save Settings</button>
<div class="spacer"></div>
Expand Down Expand Up @@ -506,7 +509,7 @@ def upgradetolatestversion(self,verification):
raise cherrypy.InternalRedirect("/?status_message=" + status)

@cherrypy.expose
def savesettings(self,cherrypyHost='', nzbMatrixUsername='', downloadInterval=3600, sabPort='', nzbMatrixApi='', sabApi='', cherrypyPort='', sabHost='',gamezApiKey='',newznabHost='',newznabPort='',newznabApi='',newznabWiiCat=''):
def savesettings(self,cherrypyHost='', nzbMatrixUsername='', downloadInterval=3600, sabPort='', nzbMatrixApi='', sabApi='', cherrypyPort='', sabHost='',gamezApiKey='',newznabHost='',newznabPort='',newznabApi='',newznabWiiCat='',newznabXbox360Cat=''):
cherrypyHost = '"' + cherrypyHost + '"'
nzbMatrixUsername = '"' + nzbMatrixUsername + '"'
nzbMatrixApi = '"' + nzbMatrixApi + '"'
Expand All @@ -516,6 +519,7 @@ def savesettings(self,cherrypyHost='', nzbMatrixUsername='', downloadInterval=36
newznabHost = '"' + newznabHost + '"'
newznabApi = '"' + newznabApi + '"'
newznabWiiCat = '"' + newznabWiiCat + '"'
newznabXbox360Cat = '"' + newznabXbox360Cat + '"'
config = ConfigParser.RawConfigParser()
configFilePath = os.path.join(WebRoot.appPath,'Gamez.ini')
config.read(configFilePath)
Expand All @@ -531,6 +535,7 @@ def savesettings(self,cherrypyHost='', nzbMatrixUsername='', downloadInterval=36
config.set('Newznab','host',newznabHost)
config.set('Newznab','port',newznabPort)
config.set('Newznab','wii_category_id',newznabWiiCat)
config.set('Newznab','xbox360_category_id',newznabXbox360Cat)
config.set('Newznab','api_key',newznabApi)
with open(configFilePath,'wb') as configFile:
config.write(configFile)
Expand Down
Binary file modified lib/WebRoot.pyc
Binary file not shown.

0 comments on commit 4542b7f

Please sign in to comment.