From 4542b7f6df0d8714e19cd52b5b0b3100db90e5e5 Mon Sep 17 00:00:00 2001 From: Michael Dlesk Date: Mon, 2 Jan 2012 10:25:18 -0500 Subject: [PATCH] Added XBOX 360 to settings page --- Gamez.db | Bin 819200 -> 819200 bytes lib/Constants.py | 2 +- lib/Constants.pyc | Bin 249 -> 249 bytes lib/WebRoot.py | 7 ++++++- lib/WebRoot.pyc | Bin 25018 -> 25302 bytes 5 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Gamez.db b/Gamez.db index 3121fe53d3420948b15ffb495bcaf2b049be75b7..e3caa58b44208b93091128a01db8f670288576ad 100644 GIT binary patch delta 3071 zcmaJ@YitzP6`r|w*E`-_JBGP_;1}!nGPYqKvu1W<5-1oeQAi}>R<(+%5P_nm;SnII zO(?dj#5kxawq$ZG#mbL;%}rD(zhX!IQxUalnntN;r9e;{h>}oB4HyTALk#J;XT3XC zf7H@^-<)se-1D6~XFW4K92p*tjMtRBr6|f5a9n}oZzI81g6bGks z5f2=s5A&XRx8P?VBbD4cNPA}w4AKcw1eZ%D8UN@tS~YWwy2`XeY9Hi~0Uof_Cf+{p zexKj`HQhTq_ZnsLc9NO)@zEb><1^!QftJ771$SSZ+zxo*)?ThCe^9QFvC26zG15g%(Z&DTLpprn zSR!I3VrIXHarK(FPs7L(CO>oA8}=?=9Vr$3`5OONJ~l*z-`q|b^Xbu;2=lsL(peBJ z5#pz=d!x8sv|DW8zv(4r;j$^#WBrG6_03QT>`aLgRpJoJEs=7=0 zP&oyc{`aq6bQUa|Axm_uuxy6V@c6FB3Q5-jdzQ-m6oG% zQ?xo;7EQ$B{i0>LzKkrr#=W)Of+D9LvDc-a$B%Np=anQeVjIs zQ>0H_ge{mF zB>R?v?AxdGD0DxK(jsz%#ED-$sy?i)R)#^&|8_r_2-ZROdcjUOVaCADYR8UL46(|w z1A=LZvcispAjTa@<#t5IhA4FsK!BD@@-@QoT+9AK4XH#7;VYy_A#4e6zDC%B7;Dt{ z#yqhE#xpN_T&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Q}HZKME1 zg?yKk2!JEsAw>f&-zG%^A>Se;>?vKOXuxGBDFEo^o22OWI&!P0*#Gz2n}Gu*D~v%2 zA&1Gr8b~E~EjM?wu3P<~R-=4MBglcE7vWu#~zl#dj& z844ps1FkGmG!V)p1wDphc#2*Ky6MUB!+xL7^<81hEj7O+M?&dXRH%6*rvMx^m+EQ2 z)uSZ^7mP)OnnOx6fTL!Uq5)U4NYOy38d8#;GLsYyxSBzV20{f%NqEY1QUJnSO(R7E zp{9}&2XNFBPw^%~gV8HYSZYy8ivT8sda9&FVgQcfrAi*)>Pb>CA}&-DDNz7NHIkwM zR|`qeK&U53iFir_DH?F~I4J-zq3THq130RV6b-nlB}D_F9wSBf*HH^RMNfg(@P||I zbV-Yb@VXQ#OB?5p-NmB62#myy1(SWNsDH;eBBPHo6QBpMEDnbfY z0oHby6!bXhs1PX{aJ7^a4TM@k3i=CWv8OE5Q=maLzPV*q%3wV#%F3;ND`lESOKq)T zoZM&_?t+ZJ@$|7d7uvr!S@S2|?l=4V(PHnY|IDZMkU1N!dDrdfWW(-AhV7fd{$PKC z;b+|$ZA0E3ZFgr2yZ?ak`&oS5t%|}PpDRrn4EIx(7r%Tp#+ zcK7b?9MprSU!8unxIx+HCf$MHfICqe=o@JWj5k#J{t9^IsMu8FdZ=~F_O1r6(!Jol YVqab0)TDefc+;(|tNP$+;1`7+AYh7%(e0sv8C2O9tY delta 21 dcmey#_>+;1`7%n?1`{I|0svG02T=e3 diff --git a/lib/WebRoot.py b/lib/WebRoot.py index 8ebb244..64c84b5 100644 --- a/lib/WebRoot.py +++ b/lib/WebRoot.py @@ -350,6 +350,9 @@ def settings(self): + + +
@@ -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 + '"' @@ -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) @@ -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) diff --git a/lib/WebRoot.pyc b/lib/WebRoot.pyc index 21c342bd14fa095e5dbfb9ef35e5b427f99cc340..2e0edf51e8280607e1bd3e2cb7a9f58b0bf1a97f 100644 GIT binary patch delta 1238 zcma)5Nl#Nz6h7y5fVOm?We6x?kU%k}OoGTz5ClnFC@o-RC=^~HZOWiLgqYW$){RkP z;$^4&1Y=AWCafgJg~o+!)VRTo(S zRU7I)>GxlN8ZnXHmF6p&pIcY$Msmv^e`>79HH3`Go$ z3{4E_lr)R;W961~C|qK7>{Fw{3Hm4GzEGdnk*WM~og zV2v>~p6Cc(z#4Hk_`EQEt@OX6#oR@ShSg;`q=e@~3*lH~MQIV6Q=Ql$cBe|(+F0{6 zLpMVY183fMmf;-3Aj1U1B*QF&EP^4AxHw&g_r&6KQAum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