Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Commit

Permalink
Remove Hard-coded search and preferences
Browse files Browse the repository at this point in the history
Use against latest ShokoServer
  • Loading branch information
maxpiva authored Jan 2, 2017
1 parent fce7149 commit 71f042e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MyAnime.bundle/Contents/Code/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def MainMenu():
req = HTTP.Request(url= GetServerUrl()+"JMMServerPlex/GetFilters/"+user,timeout=10)
if req.content:
Response.Headers['Content-type']="text/xml;charset=utf-8"
return req.content.replace('</MediaContainer>','<Directory prompt="Search" thumb="'+R(ICON_SEARCH)+'" art="'+R(ICON_SEARCH)+'" key="/video/jmm/search" title="Search" search="1"/><Directory title="Preferences" thumb="'+R(ICON_PREFS)+'" art="'+R(ICON_PREFS)+'" key="/:/plugins/com.plexapp.plugins.myanime/prefs" settings="1"/></MediaContainer>')
return req.content;
else:
Log("My Anime Url: "+ GetServerUrl()+"JMMServerPlex/GetFilters/"+user+" returns empty, check if the user has categories assigned");
oc = ObjectContainer(title2='My Anime')
Expand Down

0 comments on commit 71f042e

Please sign in to comment.