2014-11-30, 01:26
i was wondering if this bit could be added to addshow.py
the use case would be to add the show from a list in Kodi ,automatically populated with trending TVshows from various sources..
that way by running
RunScript(special://home/addons/plugin.program.sickbeard/resources/lib/addshow.py,$INFO[Container(311).ListItem.Label])
the lookup for the show start without having to type the name of the show..
here's the bit:
the use case would be to add the show from a list in Kodi ,automatically populated with trending TVshows from various sources..
that way by running
RunScript(special://home/addons/plugin.program.sickbeard/resources/lib/addshow.py,$INFO[Container(311).ListItem.Label])
the lookup for the show start without having to type the name of the show..
here's the bit:
Code:
import sys
count = len(sys.argv) - 1
# Initialize Sickbeard Class
Sickbeard = sickbeard.SB()
def showSearchDialog():
# Get search text from user
if count > 0:
text = sys.argv[1]
return text
else:
keyboard = xbmc.Keyboard('', 'Find a show on the TVDB', False)
keyboard.doModal()
if (keyboard.isConfirmed()):
text = keyboard.getText()
return text