Skip to content

Commit

Permalink
Made lists filterable and added force search option
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Mar 16, 2012
1 parent e62fb73 commit 7777368
Show file tree
Hide file tree
Showing 157 changed files with 309 additions and 18,791 deletions.
18,773 changes: 0 additions & 18,773 deletions 101-in-1 Party Megamix - Wii.nzb

This file was deleted.

Binary file modified Gamez.db
Binary file not shown.
3 changes: 2 additions & 1 deletion Gamez.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,9 @@ def RunGameTask():
isTorrentBlackholeEnabled = config.get('SystemGenerated','blackhole_torrent_enabled').replace('"','')
isTorrentKATEnabled = config.get('SystemGenerated','torrent_kat_enabled').replace('"','')
torrentBlackholePath = config.get('Blackhole','torrent_blackhole_path').replace('"','')
manualSearchGame = ''
LogEvent("Searching for games")
lib.GameTasks.GameTasks().FindGames(nzbMatrixUser,nzbMatrixApi,sabnzbdApi,sabnzbdHost,sabnzbdPort,newznabWiiCat,newznabApi,newznabHost,newznabPort,newznabXbox360Cat,sabnzbdCategory,isSabEnabled,isNzbMatrixEnabled,isNewznabEnabled,isNzbBlackholeEnabled,nzbBlackholePath,isTorrentBlackholeEnabled,isTorrentKATEnabled,torrentBlackholePath)
lib.GameTasks.GameTasks().FindGames(manualSearchGame,nzbMatrixUser,nzbMatrixApi,sabnzbdApi,sabnzbdHost,sabnzbdPort,newznabWiiCat,newznabApi,newznabHost,newznabPort,newznabXbox360Cat,sabnzbdCategory,isSabEnabled,isNzbMatrixEnabled,isNewznabEnabled,isNzbBlackholeEnabled,nzbBlackholePath,isTorrentBlackholeEnabled,isTorrentKATEnabled,torrentBlackholePath)
except:
errorMessage = "Major error occured when running scheduled tasks"
for message in sys.exc_info():
Expand Down
183 changes: 180 additions & 3 deletions Gamez.pyproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{00000000-0000-0000-0000-000000000000}</ProjectGuid>
<ProjectGuid>{8cc016a0-bf76-4414-8742-661a8ad2e8ca}</ProjectGuid>
<ProjectHome>.</ProjectHome>
<StartupFile>
</StartupFile>
<StartupFile>Gamez.py</StartupFile>
<SearchPath>
</SearchPath>
<WorkingDirectory>.</WorkingDirectory>
Expand All @@ -22,5 +21,183 @@
<DebugSymbols>true</DebugSymbols>
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
</PropertyGroup>
<ItemGroup>
<Content Include="API.md" />
<Content Include="Gamez.db" />
<Content Include="Gamez.ini" />
<Content Include="README.md" />
</ItemGroup>
<ItemGroup>
<Compile Include="cherrypy\lib\auth.py" />
<Compile Include="cherrypy\lib\auth_basic.py" />
<Compile Include="cherrypy\lib\auth_digest.py" />
<Compile Include="cherrypy\lib\caching.py" />
<Compile Include="cherrypy\lib\covercp.py" />
<Compile Include="cherrypy\lib\cpstats.py" />
<Compile Include="cherrypy\lib\cptools.py" />
<Compile Include="cherrypy\lib\encoding.py" />
<Compile Include="cherrypy\lib\gctools.py" />
<Compile Include="cherrypy\lib\http.py" />
<Compile Include="cherrypy\lib\httpauth.py" />
<Compile Include="cherrypy\lib\httputil.py" />
<Compile Include="cherrypy\lib\jsontools.py" />
<Compile Include="cherrypy\lib\profiler.py" />
<Compile Include="cherrypy\lib\reprconf.py" />
<Compile Include="cherrypy\lib\sessions.py" />
<Compile Include="cherrypy\lib\static.py" />
<Compile Include="cherrypy\lib\xmlrpcutil.py" />
<Compile Include="cherrypy\lib\__init__.py" />
<Compile Include="cherrypy\process\plugins.py" />
<Compile Include="cherrypy\process\servers.py" />
<Compile Include="cherrypy\process\win32.py" />
<Compile Include="cherrypy\process\wspbus.py" />
<Compile Include="cherrypy\process\__init__.py" />
<Compile Include="cherrypy\scaffold\__init__.py" />
<Compile Include="cherrypy\test\benchmark.py" />
<Compile Include="cherrypy\test\checkerdemo.py" />
<Compile Include="cherrypy\test\helper.py" />
<Compile Include="cherrypy\test\logtest.py" />
<Compile Include="cherrypy\test\modfastcgi.py" />
<Compile Include="cherrypy\test\modfcgid.py" />
<Compile Include="cherrypy\test\modpy.py" />
<Compile Include="cherrypy\test\modwsgi.py" />
<Compile Include="cherrypy\test\sessiondemo.py" />
<Compile Include="cherrypy\test\test_auth_basic.py" />
<Compile Include="cherrypy\test\test_auth_digest.py" />
<Compile Include="cherrypy\test\test_bus.py" />
<Compile Include="cherrypy\test\test_caching.py" />
<Compile Include="cherrypy\test\test_config.py" />
<Compile Include="cherrypy\test\test_config_server.py" />
<Compile Include="cherrypy\test\test_conn.py" />
<Compile Include="cherrypy\test\test_core.py" />
<Compile Include="cherrypy\test\test_dynamicobjectmapping.py" />
<Compile Include="cherrypy\test\test_encoding.py" />
<Compile Include="cherrypy\test\test_etags.py" />
<Compile Include="cherrypy\test\test_http.py" />
<Compile Include="cherrypy\test\test_httpauth.py" />
<Compile Include="cherrypy\test\test_httplib.py" />
<Compile Include="cherrypy\test\test_json.py" />
<Compile Include="cherrypy\test\test_logging.py" />
<Compile Include="cherrypy\test\test_mime.py" />
<Compile Include="cherrypy\test\test_misc_tools.py" />
<Compile Include="cherrypy\test\test_objectmapping.py" />
<Compile Include="cherrypy\test\test_proxy.py" />
<Compile Include="cherrypy\test\test_refleaks.py" />
<Compile Include="cherrypy\test\test_request_obj.py" />
<Compile Include="cherrypy\test\test_routes.py" />
<Compile Include="cherrypy\test\test_session.py" />
<Compile Include="cherrypy\test\test_sessionauthenticate.py" />
<Compile Include="cherrypy\test\test_states.py" />
<Compile Include="cherrypy\test\test_static.py" />
<Compile Include="cherrypy\test\test_tools.py" />
<Compile Include="cherrypy\test\test_tutorials.py" />
<Compile Include="cherrypy\test\test_virtualhost.py" />
<Compile Include="cherrypy\test\test_wsgiapps.py" />
<Compile Include="cherrypy\test\test_wsgi_ns.py" />
<Compile Include="cherrypy\test\test_wsgi_vhost.py" />
<Compile Include="cherrypy\test\test_xmlrpc.py" />
<Compile Include="cherrypy\test\webtest.py" />
<Compile Include="cherrypy\test\_test_decorators.py" />
<Compile Include="cherrypy\test\_test_states_demo.py" />
<Compile Include="cherrypy\test\__init__.py" />
<Compile Include="cherrypy\tutorial\bonus-sqlobject.py" />
<Compile Include="cherrypy\tutorial\tut01_helloworld.py" />
<Compile Include="cherrypy\tutorial\tut02_expose_methods.py" />
<Compile Include="cherrypy\tutorial\tut03_get_and_post.py" />
<Compile Include="cherrypy\tutorial\tut04_complex_site.py" />
<Compile Include="cherrypy\tutorial\tut05_derived_objects.py" />
<Compile Include="cherrypy\tutorial\tut06_default_method.py" />
<Compile Include="cherrypy\tutorial\tut07_sessions.py" />
<Compile Include="cherrypy\tutorial\tut08_generators_and_yield.py" />
<Compile Include="cherrypy\tutorial\tut09_files.py" />
<Compile Include="cherrypy\tutorial\tut10_http_errors.py" />
<Compile Include="cherrypy\tutorial\__init__.py" />
<Compile Include="cherrypy\wsgiserver\ssl_builtin.py" />
<Compile Include="cherrypy\wsgiserver\ssl_pyopenssl.py" />
<Compile Include="cherrypy\wsgiserver\wsgiserver2.py" />
<Compile Include="cherrypy\wsgiserver\wsgiserver3.py" />
<Compile Include="cherrypy\wsgiserver\__init__.py" />
<Compile Include="cherrypy\_cpchecker.py" />
<Compile Include="cherrypy\_cpcompat.py" />
<Compile Include="cherrypy\_cpconfig.py" />
<Compile Include="cherrypy\_cpdispatch.py" />
<Compile Include="cherrypy\_cperror.py" />
<Compile Include="cherrypy\_cplogging.py" />
<Compile Include="cherrypy\_cpmodpy.py" />
<Compile Include="cherrypy\_cpnative_server.py" />
<Compile Include="cherrypy\_cpreqbody.py" />
<Compile Include="cherrypy\_cprequest.py" />
<Compile Include="cherrypy\_cpserver.py" />
<Compile Include="cherrypy\_cpthreadinglocal.py" />
<Compile Include="cherrypy\_cptools.py" />
<Compile Include="cherrypy\_cptree.py" />
<Compile Include="cherrypy\_cpwsgi.py" />
<Compile Include="cherrypy\_cpwsgi_server.py" />
<Compile Include="cherrypy\__init__.py" />
<Compile Include="cron\base.py" />
<Compile Include="cron\eta.py" />
<Compile Include="cron\kinepolisrss.py" />
<Compile Include="cron\movierss.py" />
<Compile Include="cron\renamer.py" />
<Compile Include="cron\subtitle.py" />
<Compile Include="cron\trailer.py" />
<Compile Include="cron\trakt.py" />
<Compile Include="cron\yarr.py" />
<Compile Include="cron\__init__.py" />
<Compile Include="Gamez.py" />
<Compile Include="gntp\notifier.py" />
<Compile Include="gntp\__init__.py" />
<Compile Include="lib\ConfigFunctions.py" />
<Compile Include="lib\Constants.py" />
<Compile Include="lib\DBFunctions.py" />
<Compile Include="lib\feedparser.py" />
<Compile Include="lib\FolderFunctions.py" />
<Compile Include="lib\GameTasks.py" />
<Compile Include="lib\Logger.py" />
<Compile Include="lib\Notifications.py" />
<Compile Include="lib\Notifo.py" />
<Compile Include="lib\UpgradeFunctions.py" />
<Compile Include="lib\WebRoot.py" />
<Compile Include="lib\__init__.py" />
<Compile Include="postprocess\gamezPostProcess.py" />
<Compile Include="prowlpy\prowlpy.py" />
<Compile Include="prowlpy\__init__.py" />
</ItemGroup>
<ItemGroup>
<Folder Include=".git\" />
<Folder Include=".git\hooks\" />
<Folder Include=".git\info\" />
<Folder Include=".git\logs\" />
<Folder Include=".git\logs\refs\" />
<Folder Include=".git\logs\refs\heads\" />
<Folder Include=".git\objects\" />
<Folder Include=".git\objects\info\" />
<Folder Include=".git\objects\pack\" />
<Folder Include=".git\refs\" />
<Folder Include=".git\refs\heads\" />
<Folder Include=".git\refs\remotes\" />
<Folder Include=".git\refs\remotes\origin\" />
<Folder Include=".git\refs\tags\" />
<Folder Include="cherrypy\" />
<Folder Include="cherrypy\lib\" />
<Folder Include="cherrypy\process\" />
<Folder Include="cherrypy\scaffold\" />
<Folder Include="cherrypy\scaffold\static\" />
<Folder Include="cherrypy\test\" />
<Folder Include="cherrypy\test\static\" />
<Folder Include="cherrypy\tutorial\" />
<Folder Include="cherrypy\wsgiserver\" />
<Folder Include="cron\" />
<Folder Include="css\" />
<Folder Include="css\datatables_images\" />
<Folder Include="css\navigation_images\" />
<Folder Include="css\redmond\" />
<Folder Include="css\redmond\images\" />
<Folder Include="gntp\" />
<Folder Include="js\" />
<Folder Include="lib\" />
<Folder Include="postprocess\" />
<Folder Include="prowlpy\" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.Common.targets" />
</Project>
18 changes: 18 additions & 0 deletions Gamez.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "Gamez", "Gamez.pyproj", "{8CC016A0-BF76-4414-8742-661A8AD2E8CA}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{8CC016A0-BF76-4414-8742-661A8AD2E8CA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8CC016A0-BF76-4414-8742-661A8AD2E8CA}.Release|Any CPU.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Binary file modified Gamez.suo
Binary file not shown.
Binary file removed _ReSharper.Gamez/BuildScriptCache/.crc
Binary file not shown.
Binary file removed _ReSharper.Gamez/BuildScriptCache/.version
Binary file not shown.
1 change: 0 additions & 1 deletion _ReSharper.Gamez/JavaScriptCache/.crc

This file was deleted.

Binary file removed _ReSharper.Gamez/JavaScriptCache/.version
Binary file not shown.
Binary file removed _ReSharper.Gamez/JavaScriptCache/8/2767ed7e.dat
Binary file not shown.
Binary file removed _ReSharper.Gamez/MVC/.crc
Binary file not shown.
Binary file removed _ReSharper.Gamez/MVC/.version
Binary file not shown.
1 change: 0 additions & 1 deletion _ReSharper.Gamez/NamedArguments/.crc

This file was deleted.

Binary file removed _ReSharper.Gamez/NamedArguments/.version
Binary file not shown.
Binary file removed _ReSharper.Gamez/NamedArguments/5/5706720e.dat
Binary file not shown.
Binary file removed _ReSharper.Gamez/Resources/.crc
Binary file not shown.
Binary file removed _ReSharper.Gamez/Resources/.version
Binary file not shown.
Binary file removed _ReSharper.Gamez/SymbolCache.bin
Binary file not shown.
Binary file removed _ReSharper.Gamez/TagPrefixes/.crc
Binary file not shown.
Binary file removed _ReSharper.Gamez/TagPrefixes/.version
Binary file not shown.
1 change: 0 additions & 1 deletion _ReSharper.Gamez/TodoCache/.crc

This file was deleted.

Binary file removed _ReSharper.Gamez/TodoCache/.version
Binary file not shown.
Binary file removed _ReSharper.Gamez/TodoCache/8/2767ed7e.dat
Binary file not shown.
Binary file removed _ReSharper.Gamez/WebSymbols/.crc
Binary file not shown.
Binary file removed _ReSharper.Gamez/WebSymbols/.version
Binary file not shown.
1 change: 0 additions & 1 deletion _ReSharper.Gamez/WordIndex/.crc

This file was deleted.

Binary file removed _ReSharper.Gamez/WordIndex/.version
Binary file not shown.
Binary file removed _ReSharper.Gamez/WordIndex/5/5706720e.dat
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed _ReSharper.Gamez/XmlIndex/System.xml/C3B3EEEE.bin
Binary file not shown.
Binary file removed _ReSharper.Gamez/XmlIndex/System.xml/D647FF29.bin
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed _ReSharper.Gamez/XmlIndex/mscorlib.xml/743ADB6C.bin
Binary file not shown.
Binary file removed _ReSharper.Gamez/XmlIndex/mscorlib.xml/D6E16D29.bin
Binary file not shown.
Binary file modified cherrypy/__init__.pyc
Binary file not shown.
Binary file modified cherrypy/_cpchecker.pyc
Binary file not shown.
Binary file modified cherrypy/_cpcompat.pyc
Binary file not shown.
Binary file modified cherrypy/_cpconfig.pyc
Binary file not shown.
Binary file modified cherrypy/_cpdispatch.pyc
Binary file not shown.
Binary file modified cherrypy/_cperror.pyc
Binary file not shown.
Binary file modified cherrypy/_cplogging.pyc
Binary file not shown.
Binary file modified cherrypy/_cpreqbody.pyc
Binary file not shown.
Binary file modified cherrypy/_cprequest.pyc
Binary file not shown.
Binary file modified cherrypy/_cpserver.pyc
Binary file not shown.
Binary file modified cherrypy/_cptools.pyc
Binary file not shown.
Binary file modified cherrypy/_cptree.pyc
Binary file not shown.
Binary file modified cherrypy/_cpwsgi.pyc
Binary file not shown.
Binary file modified cherrypy/_cpwsgi_server.pyc
Binary file not shown.
Binary file modified cherrypy/lib/__init__.pyc
Binary file not shown.
Binary file modified cherrypy/lib/auth.pyc
Binary file not shown.
Binary file modified cherrypy/lib/auth_basic.pyc
Binary file not shown.
Binary file modified cherrypy/lib/auth_digest.pyc
Binary file not shown.
Binary file modified cherrypy/lib/caching.pyc
Binary file not shown.
Binary file modified cherrypy/lib/cptools.pyc
Binary file not shown.
Binary file modified cherrypy/lib/encoding.pyc
Binary file not shown.
Binary file modified cherrypy/lib/httpauth.pyc
Binary file not shown.
Binary file modified cherrypy/lib/httputil.pyc
Binary file not shown.
Binary file modified cherrypy/lib/jsontools.pyc
Binary file not shown.
Binary file modified cherrypy/lib/reprconf.pyc
Binary file not shown.
Binary file modified cherrypy/lib/sessions.pyc
Binary file not shown.
Binary file modified cherrypy/lib/static.pyc
Binary file not shown.
Binary file modified cherrypy/lib/xmlrpcutil.pyc
Binary file not shown.
Binary file modified cherrypy/process/__init__.pyc
Binary file not shown.
Binary file modified cherrypy/process/plugins.pyc
Binary file not shown.
Binary file modified cherrypy/process/servers.pyc
Binary file not shown.
Binary file modified cherrypy/process/win32.pyc
Binary file not shown.
Binary file modified cherrypy/process/wspbus.pyc
Binary file not shown.
Binary file modified cherrypy/wsgiserver/__init__.pyc
Binary file not shown.
Binary file modified cherrypy/wsgiserver/wsgiserver2.pyc
Binary file not shown.
Binary file modified gntp/__init__.pyc
Binary file not shown.
Binary file modified lib/ConfigFunctions.pyc
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 "1.1.15.0"
return "1.1.16.0"
Binary file modified lib/Constants.pyc
Binary file not shown.
9 changes: 6 additions & 3 deletions lib/DBFunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def GetRequestedGames(filter=''):
status = str(record[3])
system = str(record[4])
cover = str(record[5])
rowdata = "<tr align='center'><td><a href='removegame?dbid=" + db_id + "'>Delete</a></td><td><center><img width='85' height='120' src='" + cover + "' /></center></td><td>" + game_name + "</td><td>" + game_type + "</td><td>" + system + "</td><td>" + status + "</td><td><select id=updateSatusSelectObject class=ui-widget onchange=UpdateGameStatus(this.options[this.selectedIndex].value,'" + db_id + "')>"
rowdata = "<tr align='center'><td><a href='removegame?dbid=" + db_id + "'>Delete</a>&nbsp;|&nbsp;<a href='forcesearch?dbid=" + db_id + "'>Force Search</a></td><td><center><img width='85' height='120' src='" + cover + "' /></center></td><td>" + game_name + "</td><td>" + game_type + "</td><td>" + system + "</td><td>" + status + "</td><td><select id=updateSatusSelectObject class=ui-widget onchange=UpdateGameStatus(this.options[this.selectedIndex].value,'" + db_id + "')>"
if(status == "Snatched"):
rowdata = rowdata + "<option>Downloaded</option><option selected=true>Snatched</option><option>Wanted</option>"
elif(status == "Downloaded"):
Expand All @@ -137,9 +137,12 @@ def RemoveGameFromDb(db_id):
cursor.close()
return

def GetRequestedGamesAsArray():
def GetRequestedGamesAsArray(manualSearchGame):
db_path = os.path.join(os.path.abspath(""),"Gamez.db")
sql = "SELECT game_name,ID,system FROM requested_games WHERE status='Wanted' order by game_name asc"
if(manualSearchGame <> ''):
sql = "SELECT game_name,ID,system FROM requested_games WHERE id='" + manualSearchGame + "' order by game_name asc"
else:
sql = "SELECT game_name,ID,system FROM requested_games WHERE status='Wanted' order by game_name asc"
connection = sqlite3.connect(db_path)
cursor = connection.cursor()
cursor.execute(sql)
Expand Down
Binary file modified lib/DBFunctions.pyc
Binary file not shown.
Binary file modified lib/FolderFunctions.pyc
Binary file not shown.
4 changes: 2 additions & 2 deletions lib/GameTasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@

class GameTasks():

def FindGames(self, nzbmatrixusername, nzbmatrixapi,sabnzbdApi,sabnzbdHost,sabnzbdPort,newznabWiiCat,newznabApi,newznabHost,newznabPort,newznabXbox360Cat,sabnzbdCategory,isSabEnabled,isNzbMatrixEnabled,isNewznabEnabled,isNzbBlackholeEnabled,nzbBlackholePath,isTorrentBlackholeEnabled,isTorrentKATEnabled,torrentBlackholePath):
def FindGames(self, manualSearchGame,nzbmatrixusername, nzbmatrixapi,sabnzbdApi,sabnzbdHost,sabnzbdPort,newznabWiiCat,newznabApi,newznabHost,newznabPort,newznabXbox360Cat,sabnzbdCategory,isSabEnabled,isNzbMatrixEnabled,isNewznabEnabled,isNzbBlackholeEnabled,nzbBlackholePath,isTorrentBlackholeEnabled,isTorrentKATEnabled,torrentBlackholePath):
if(isSabEnabled == "1"):
GameTasks().CheckIfPostProcessExistsInSab(sabnzbdApi,sabnzbdHost,sabnzbdPort)
nzbmatrixusername = nzbmatrixusername.replace('"','')
nzbmatrixapi = nzbmatrixapi.replace('"','')
newznabApi = newznabApi.replace('"','')
newznabWiiCat = newznabWiiCat.replace('"','')
games = GetRequestedGamesAsArray()
games = GetRequestedGamesAsArray(manualSearchGame)
for game in games:
try:
game_name = str(game[0])
Expand Down
Binary file modified lib/GameTasks.pyc
Binary file not shown.
Binary file modified lib/Logger.pyc
Binary file not shown.
Binary file modified lib/Notifications.pyc
Binary file not shown.
Binary file modified lib/Notifo.pyc
Binary file not shown.
Binary file modified lib/UpgradeFunctions.pyc
Binary file not shown.
41 changes: 37 additions & 4 deletions lib/WebRoot.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
import hashlib
import random
from lib.FolderFunctions import *
from Constants import *
from GameTasks import *

class WebRoot:
appPath = ''
Expand Down Expand Up @@ -127,7 +129,7 @@ def index(self,status_message='',version='',filter=''):
<thead>
<tr>
<th>Actions</th>
<th>Cover</th>
<th>Cover</th>
<th>Game Name</th>
<th>Game Type</th>
<th>System</th>
Expand All @@ -141,7 +143,7 @@ def index(self,status_message='',version='',filter=''):
</tbody>
</table>
<script>$(document).ready(function() {
oTable = $('#searchresults').dataTable({"bJQueryUI": true,"bSort":false,"bLengthChange":false});});
oTable = $('#searchresults').dataTable({"bJQueryUI": true,"bSort":true,"bLengthChange":false});});
</script>
"""
html = html + """
Expand Down Expand Up @@ -263,7 +265,7 @@ def search(self,term='',system=''):
</tbody>
</table>
<script>$(document).ready(function() {
oTable = $('#searchresults').dataTable({"bJQueryUI": true,"bSort":false,"bLengthChange":false});});
oTable = $('#searchresults').dataTable({"bJQueryUI": true,"bSort":true,"bLengthChange":false});});
</script>
"""
html = html + """
Expand Down Expand Up @@ -820,6 +822,7 @@ def settings(self):
</script>
<br /><br />
<div style="margin-left:5px">Gamez Version: """ + VersionNumber() + """</div>
<div align="right" style="margin-right:20px">
<button style="border:0; margin:0; padding:0;clear:both;margin-left:250px;width:125px;height:31px;background:#666666 url(img/button.png) no-repeat;text-align:center;line-height:31px;color:#FFFFFF;font-size:11px;font-weight:bold;" type="submit">Save Settings</button>
</div>
Expand Down Expand Up @@ -1067,7 +1070,7 @@ def comingsoon(self):
</tbody>
</table>
<script>$(document).ready(function() {
oTable = $('#searchresults').dataTable({"bJQueryUI": true,"bSort":false,"bLengthChange":false,"iDisplayLength":25});});
oTable = $('#searchresults').dataTable({"bJQueryUI": true,"bSort":true,"bLengthChange":false,"iDisplayLength":25});});
</script>
"""
html = html + """
Expand Down Expand Up @@ -1316,3 +1319,33 @@ def updategamelist(self):
AddComingSoonGames()
status = "Game list has been updated successfully"
raise cherrypy.InternalRedirect("/?status_message=" + status)

@cherrypy.expose
def forcesearch(self,dbid):
if(os.name <> 'nt'):
os.chdir(WebRoot.appPath)
config = ConfigParser.RawConfigParser()
config.read(os.path.join(WebRoot.appPath,'Gamez.ini'))
nzbMatrixUser = config.get('NZBMatrix','username').replace('"','')
nzbMatrixApi = config.get('NZBMatrix','api_key').replace('"','')
sabnzbdHost = config.get('Sabnzbd','host').replace('"','')
sabnzbdPort = config.get('Sabnzbd','port').replace('"','')
sabnzbdApi = config.get('Sabnzbd','api_key').replace('"','')
sabnzbdCategory = config.get('Sabnzbd','category').replace('"','')
newznabWiiCat = config.get('Newznab','wii_category_id').replace('"','')
newznabXbox360Cat = config.get('Newznab','xbox360_category_id').replace('"','')
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('"','')
isTorrentBlackholeEnabled = config.get('SystemGenerated','blackhole_torrent_enabled').replace('"','')
isTorrentKATEnabled = config.get('SystemGenerated','torrent_kat_enabled').replace('"','')
torrentBlackholePath = config.get('Blackhole','torrent_blackhole_path').replace('"','')
manualSearchGame = dbid
LogEvent("Searching for games")
GameTasks().FindGames(manualSearchGame,nzbMatrixUser,nzbMatrixApi,sabnzbdApi,sabnzbdHost,sabnzbdPort,newznabWiiCat,newznabApi,newznabHost,newznabPort,newznabXbox360Cat,sabnzbdCategory,isSabEnabled,isNzbMatrixEnabled,isNewznabEnabled,isNzbBlackholeEnabled,nzbBlackholePath,isTorrentBlackholeEnabled,isTorrentKATEnabled,torrentBlackholePath)
raise cherrypy.InternalRedirect('/')
Binary file modified lib/WebRoot.pyc
Binary file not shown.
Binary file modified lib/__init__.pyc
Binary file not shown.
Binary file modified prowlpy/__init__.pyc
Binary file not shown.
Binary file modified prowlpy/prowlpy.pyc
Binary file not shown.
Loading

0 comments on commit 7777368

Please sign in to comment.