Linux Video add-on error. Please help.
#1
Hi,

I am developing a simple video add-on, It's working on XBMC windows but doesn't work on XBMC ubuntu.
Can anyone please help me to fix the problem?

Thanks,
HJ

Code :

Code:
import urllib,urllib2,re,os,xbmc,xbmcplugin,xbmcgui,xbmcaddon,sys
try:
    import CommonFunctions
except:
    import commonfunctionsdummy as CommonFunctions


language            = xbmcaddon.Addon().getLocalizedString
setSetting            = xbmcaddon.Addon().setSetting
getSetting            = xbmcaddon.Addon().getSetting
addonname            = xbmcaddon.Addon().getAddonInfo("name")
addonVersion        = xbmcaddon.Addon().getAddonInfo("version")
addonId                = xbmcaddon.Addon().getAddonInfo("id")
addonPath            = xbmcaddon.Addon().getAddonInfo('path')
addonIcon            = xbmc.translatePath(os.path.join(addonPath,'icon.png'))
akamaiProxyServer    = xbmc.translatePath(os.path.join(addonPath,'akamaisecurehd.py'))
fallback            = xbmc.translatePath(os.path.join(addonPath,'resources/fallback/fallback.mp4'))
channelData            = xbmc.translatePath(os.path.join(addonPath,'resources/channels.xml'))
logoPath            = xbmc.translatePath(os.path.join(addonPath,'resources/logos/'))
fanart                = xbmc.translatePath(os.path.join(addonPath,'fanart.jpg'))
common                = CommonFunctions
sysbase                = sys.argv[0]
handle                = int(sys.argv[1])
paramString            = sys.argv[2]
name                = 'MEGA'


def main():
    
    title = name    
    url = 'rtmp://46.21.146.45:80/megaweb playpath=megaweb.sdp pageUrl=http://www.kanalia.eu/ live=1 timeout=10'
    if url is None: url = fallback
    
    if not xbmc.getInfoLabel('ListItem.Plot') == '' : epg = xbmc.getInfoLabel('ListItem.Plot')
    li = xbmcgui.ListItem(title, iconImage="icon.png")
    li.setInfo('video', {"Title": title})    
    item = xbmcgui.ListItem(path=url)
    item.setInfo( type="Video", infoLabels={ "Label": name, "Title": name} )
    item.setProperty("IsPlayable", "true")
    item.setProperty( "Video", "true" )
    item.setProperty("Fanart_Image", fanart)
    
    xbmc.Player().play(url,li)
    sys.exit()
    
main()

Error log :

mod edit: no logs on the forum please. use pastebin.
Reply
#2
Remove the log spam
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply

Logout Mark Read Team Forum Stats Members Help
Video add-on error. Please help.0