2013-08-22, 15:25
Hey popeye, i was wondering if you could help me out! I'm trying to add your newsnab addon to the context menu of 1channel. I've already added a few addons already but having troubles adding yours and wondering if you can help.
This is what i have but not sure how to add the search function to the container.
This is what i have for the other addons
This is what i have but not sure how to add the search function to the container.
Code:
if os.path.exists(xbmc.translatePath("special://home/addons/") + 'plugin.video.newznab'):
contextmenuitems.append(('Search newznab', 'XBMC.Container.Update(%s?mode=index=&newznab=search&url=url&name=%s)' % (
'plugin://plugin.video.newznab/', title)))
This is what i have for the other addons
Code:
def add_contextsearchmenu(title, video_type):
contextmenuitems = []
if os.path.exists(xbmc.translatePath("special://home/addons/") + 'plugin.video.icefilms'):
contextmenuitems.append(('Search Icefilms',
'XBMC.Container.Update(%s?mode=555&url=%s&search=%s&nextPage=%s)' % (
'plugin://plugin.video.icefilms/', 'http://www.icefilms.info/', title, '1')))
if os.path.exists(xbmc.translatePath("special://home/addons/") + 'plugin.video.projectfreetv'):
contextmenuitems.append(('Search projectfreetv', 'XBMC.Container.Update(%s?mode=search&url=url&name=%s)' % (
'plugin://plugin.video.projectfreetv/', title)))
if os.path.exists(xbmc.translatePath("special://home/addons/") + 'plugin.video.tubeplus'):
contextmenuitems.append(('Search tubeplus', 'XBMC.Container.Update(%s?mode=130&url=url&name=%s)' % (
'plugin://plugin.video.tubeplus/', title)))
if os.path.exists(xbmc.translatePath("special://home/addons/") + 'plugin.video.tvlinks'):
contextmenuitems.append(('Search tvlinks', 'XBMC.Container.Update(%s?mode=Search&query=%s)' % (
'plugin://plugin.video.tvlinks/', title)))
if os.path.exists(xbmc.translatePath("special://home/addons/") + 'plugin.video.alluc'):
contextmenuitems.append(('Search alluc', 'XBMC.Container.Update(%s?mode=22&url=url&name=%s)' % (
'plugin://plugin.video.alluc/', title)))
if os.path.exists(xbmc.translatePath("special://home/addons/") + 'plugin.video.solarmovie'):
contextmenuitems.append(('Search solarmovie', 'XBMC.Container.Update(%s?mode=Search&url=url&query=%s)' % (
'plugin://plugin.video.solarmovie/', title)))
if os.path.exists(xbmc.translatePath("special://home/addons/") + 'plugin.video.movie25'):
contextmenuitems.append(('Search Mashup', 'XBMC.Container.Update(%s?mode=4&url=%s)' % (
'plugin://plugin.video.movie25/', title)))
if os.path.exists(xbmc.translatePath("special://home/addons/") + 'plugin.video.whatthefurk'):
contextmenuitems.append(('Search What the Furk', 'XBMC.Container.Update(%s?mode=imdb result menu&url=url&name=%s)' % (
'plugin://plugin.video.whatthefurk/', title)))
if os.path.exists(xbmc.translatePath("special://home/addons/") + 'plugin.video.newznab'):
contextmenuitems.append(('Search newznab', 'XBMC.Container.Update(%s?mode=index=&newznab=search&url=url&name=%s)' % (
'plugin://plugin.video.newznab/', title)))
if os.path.exists(xbmc.translatePath("special://home/addons/") + 'plugin.video.tv-release'):
contextmenuitems.append(('Search tv-release', 'XBMC.Container.Update(%s?mode=20&url=url&name=%s)' % (
'plugin://plugin.video.tv-release/', title)))
if os.path.exists(xbmc.translatePath("special://home/addons/") + 'plugin.video.movie25'):
contextmenuitems.append(('Search Rlsmix', 'XBMC.Container.Update(%s?mode=137&url=%s)' % (
'plugin://plugin.video.movie25/', title)))
return contextmenuitems