Solved Question about xbmcswiff2 - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: Solved Question about xbmcswiff2 (/showthread.php?tid=172476) |
Question about xbmcswiff2 - iClosedz - 2013-08-31 I coding about play video, but I have question about if the url for play is incorrect (it seem 'null' string) how can I make the OK dialog to tell user that this movie have incorrect link I have dilog code but I don't know where to put it Code: msg = '[B][COLOR red]{txt}[/COLOR][/B]'.format( and this is my play video code Code: @plugin.route('/play/<url>/') thank you for help! sry for my bad english. RE: Question about xbmcswiff2 - sphere - 2013-08-31 Seems like you "borrowed" some code from me ;-) Just compare the url to the string "null", notify the user, then return None. E.g.: Code: @plugin.route('/play/<url>/') But a better approach would be just hiding these entries. You can do that one view earlier (the view where you added listitems with the plugin url for "play_video" with url == 'null') RE: Question about xbmcswiff2 - iClosedz - 2013-08-31 Thank you very much Dersphere. I'm newer in python dev and programming. So I use some of your function on github sory for that. you are my idol for dev xbmc plug-in video. RE: Question about xbmcswiff2 - sphere - 2013-09-01 (2013-08-31, 19:30)iClosedz Wrote: I'm newer in python dev and programming. So I use some of your function on github sory for that. You don't need to apologize, its open source (GPL). The only thing which isn't very nice, is copying the code without a small note that you took some code from others work But, especially if you are newer to python you should really try to write (or at least understand) every line yourself... There are still some parts from my hd-trailers add-on which don't make sense in your add-on. |