Beiträge von spydermike

    der geht schon mal nicht,kann ja sein ich habe irgend was falsch gemacht.
    wenn mal jemand drübergucken würde währe ich und vor allem meine Gattin sehr angetan.
    sie meint wer das hinbekommt den schließt sie in ihr Gebet ein.
    -------------------------------------------------------------------------------------------------------------
    <?xml version="1.0" encoding="UTF-8"
    ?>

    - <addon id="plugin.video.dmc"
    version="1.0.0" name="DMC" provider-name="IND">

    - <requires>

    <import addon="xbmc.python"
    version="2.1.0" />

    </requires>

    - <extension point="xbmc.python.pluginsource" library="default.py">

    <provides>video</provides>

    </extension>

    - <extension point="xbmc.addon.metadata">

    <summary>DMC</summary>

    <description>DMC</description>

    <platform>all</platform>

    </extension>

    </addon>
    ----------------------------------------------------------------------------------------------------------------
    #!/usr/bin/env python
    # -*- coding: utf-8 -*-

    import sys, os, xbmcgui, xbmcaddon, xbmc, xbmcplugin

    addon = xbmcaddon.Addon(id='plugin.video.dmc')
    home = addon.getAddonInfo('path').decode('utf-8')
    image = xbmc.translatePath(os.path.join(home, 'icon.png'))

    name = 'DMC'
    url = 'http://live-us.dmc.tv/live/th_platinum.stream/playlist.m3u8'

    item = xbmcgui.ListItem(name, iconImage=image)

    xbmcplugin.addDirectoryItem(int(sys.argv[1]), url, item)
    xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, item)
    -----------------------------------------------------------------------------------------------------------------------