diff options
author | Unknown <phates89@gmail.com> | 2017-08-20 22:33:54 +0200 |
---|---|---|
committer | phate89 <phates89@gmail.com> | 2018-02-18 12:37:27 +0100 |
commit | c946a1c849b116147ddae7758bf7aeeb7a56e8b4 (patch) | |
tree | b381684cb11890f10265e8960a36786f1553b003 /addons/metadata.demo.tv | |
parent | 1877d5a1a66ba875f0270df7aaef0ad740422081 (diff) |
Add support for nfo url to python scrapers
Diffstat (limited to 'addons/metadata.demo.tv')
-rw-r--r-- | addons/metadata.demo.tv/demo.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/metadata.demo.tv/demo.py b/addons/metadata.demo.tv/demo.py index fa3dadca21..cb55be6dd3 100644 --- a/addons/metadata.demo.tv/demo.py +++ b/addons/metadata.demo.tv/demo.py @@ -196,6 +196,12 @@ elif action == 'getepisodedetails': liz.setProperty('video.actor2.thumb', '/home/akva/Pictures/coffee.jpg') liz.setProperty('video.date_added', '2016-01-01') xbmcplugin.setResolvedUrl(handle=int(sys.argv[1]), succeeded=True, listitem=liz) +elif action == 'nfourl': + nfo=urllib.unquote_plus(params["nfo"]) + print 'Find url from nfo file' + liz=xbmcgui.ListItem('Demo show 1', offscreen=True) + xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url="/path/to/show", listitem=liz, isFolder=True) + |