Kodi Community Forum
[RELEASE] xStream (Video) Plugin - Various German Film, Trailer, Music & Sport Sites - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: [RELEASE] xStream (Video) Plugin - Various German Film, Trailer, Music & Sport Sites (/showthread.php?tid=91675)

Pages: 1 2 3


[RELEASE] xStream (Video) Plugin - Various German Film, Trailer, Music & Sport Sites - _murphy_ - 2011-01-22

Hy,

xStream is a xbmc plugin to watch streams from various film, trailer, music and sport sites for german sites, but it is very simple to write your own site-plugin or hoster-plugin Smile

xStream is running under dharma and xbmc v9.1(for the xbox)

Functions
- play streams / files from over 30 hosters (freeacount)
- play with premiumaccounts
- send link to jdownloader
- download files over xbmc
- add to playlist

Download
Repo - Dharma
xbmc.repo.xstream.zip

Installer befor Dharma
xbmc-repo-before-dharma-xstream.zip

Next Steps:
- final localisation
- more sites / hosters
and many more Smile

Currently sites:
PHP Code:
Anime.Proxer.Me
Anime
-Stream24.com
Bild
.de
Br
-Online.de
Bundesliga
.de
Burning
-Series.org
G
-Stream.in
ILoad
.to
Kino
.de
Kino
.to
KinoKiste
.com
Movie2k
.com
MovieMaze
.de
MTV
.de
MyP2P
.eu
NBA
.de
RadioTime
.com
ShoutCast
.com
Simpsons
.to
Southpark
.de 

Changelog
see here

Bugs / Feature
create a post here, or create a issue on http://code.google.com/p/xbmc-xstream-plugin/

greetz
_murphy_


- _murphy_ - 2011-01-22

How i write my own plugin
1. create a file under plugin.video.xstream\sites (eg. test.py)
2. write this code:
PHP Code:
SITE_IDENTIFIER 'test'
SITE_NAME 'MyTest'

def load():
    
oGui cGui()
    
oGui.setEndOfDirectory() 
3. done!
when your start xbmc, do you see under xStream the follow entry: "test.py"

a example with more code: (play megavideo file and search by google)

PHP Code:
from resources.lib.handler.outputParameterHandler import cOutputParameterHandler
from resources
.lib.handler.inputParameterHandler import cInputParameterHandler
from resources
.lib.parser import cParser
from resources
.lib.handler.requestHandler import cRequestHandler
from resources
.lib.gui.guiElement import cGuiElement
from resources
.lib.gui.gui import cGui
from resources
.lib.gui.hoster import cHosterGui
from resources
.lib.handler.hosterHandler import cHosterHandler
from resources
.lib.util import cUtil

# filename
SITE_IDENTIFIER 'test'
# displayname
SITE_NAME 'MyTest'

# start method of plugin
def load():
    
oGui cGui()

    
# create GuiElement
    
oGuiElement cGuiElement()
    
oGuiElement.setSiteName(SITE_IDENTIFIER)
    
oGuiElement.setFunction('showSearchGui')
    
oGuiElement.setTitle('Google Suche')
    
oGui.addFolder(oGuiElement)

    
# create GuiElement with Paramaters for next Function
    
oGuiElement cGuiElement()
    
oGuiElement.setSiteName(SITE_IDENTIFIER)
    
oGuiElement.setFunction('playMegaVideo')
    
oGuiElement.setTitle('spiele ein MegaVideo Video ab')
    
oOutputParameterHandler cOutputParameterHandler()
    
oOutputParameterHandler.addParameter('sMegaVideoUrl''http://megavideo.com/?v=GVDI49ZF')
    
oGui.addFolder(oGuiElementoOutputParameterHandler)

    
oGui.setEndOfDirectory()

def showSearchGui():
    
oGui cGui()

    
# show KeyBoard
    
sSearchText oGui.showKeyBoard()
    if (
sSearchText != False):
        
__search(sSearchText)
        return

    
oGui.setEndOfDirectory()

def __search(sSearchText):
    
oGui cGui()

    
# create Request
    
oRequestHandler cRequestHandler('http://www.google.de/search')
    
oRequestHandler.addParameters('hl''de')
    
oRequestHandler.addParameters('source''hp')
    
oRequestHandler.addParameters('q'sSearchText)
    
sHtmlContent oRequestHandler.request()

    
# create Pattern
    
sPattern '<h3 class="r"><a href="([^"]+)".*?>(.*?)</a></h3>'
    
oParser cParser()
    
aResult oParser.parse(sHtmlContentsPattern)
    if (
aResult[0] == True):
        for 
aEntry in aResult[1]:
            
oGuiElement cGuiElement()
            
oGuiElement.setSiteName(SITE_IDENTIFIER)
            
oGuiElement.setFunction('dummyFolder')
            
oGuiElement.setTitle(cUtil().removeHtmlTags(str(aEntry[1])))
            
oGui.addFolder(oGuiElement)

    
oGui.setEndOfDirectory()

def playMegaVideo():
    
oGui cGui()

    
# get Input Paramater
    
oInputParameterHandler cInputParameterHandler()
    if (
oInputParameterHandler.exist('sMegaVideoUrl')):
        
sMegaVideoUrl oInputParameterHandler.getValue('sMegaVideoUrl')

        
# load Hoster and show HosterMenu
        
oHoster cHosterHandler().getHoster('megavideo')
        
cHosterGui().showHoster(oGuioHostersMegaVideoUrl)

    
oGui.setEndOfDirectory()

def dummyFolder():
    
oGui cGui()
    
oGui.setEndOfDirectory() 

greetz
_murphy_


- castortray - 2011-01-22

WOW !!

It's awesome. This is what I was looking for Smile

Can you add also Live Sports in MyP2P.eu ?

Image

or maybe you can add also this page:

http://www.footyfree.com/live-streaming/

Many thanks for this addon.

cheers Laugh


- _murphy_ - 2011-01-22

hy, the problem by myp2p.eu and footyfree is,
the streams are only links to another sites, and not hosters.
this a very problematic

greetz
_murphy_


- _murphy_ - 2011-01-23

so, the new version is online:

PHP Code:
================================================================================
Version 1.2.0 23.01.2011
================================================================================
    - 
add function "add to playlist"
    
fix iload.to token 

greetz
_murphy_


- castortray - 2011-01-24

"add to playlist" gr8

maybe you can add also stream from Sopcast ? pls pls pls Rolleyes


- perro6969 - 2011-01-26

hello murphy! nice to see you here on the official forum! :-)
I'm sure your script will have here a great success.
When I have the time I'll try to write a plugin with your manual.
Thanks a lot for this great script!


- schnitzelbrain - 2011-02-11

great plugin so far.

but have aroblem with some hoster, see the attached log for ref
Code:
15:35:05 T:2328 M:1576501248  NOTICE: -----------------------------------------------------------------------
15:35:05 T:2328 M:1576353792  NOTICE: Starting XBMC, Platform: Windows 7, 32-bit build 7600. Built on Dec 17 2010 (SVN:35647, compiler 1500)
15:35:05 T:2328 M:1576353792  NOTICE: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+
15:35:05 T:2328 M:1576353792  NOTICE: Desktop Resolution: 1920x1080 32Bit at 60Hz
15:35:05 T:2328 M:1576353792  NOTICE: Running with restricted rights
15:35:05 T:2328 M:1576353792  NOTICE: special://xbmc/ is mapped to: C:\Program Files\XBMC
15:35:05 T:2328 M:1576353792  NOTICE: special://xbmcbin/ is mapped to: C:\Program Files\XBMC
15:35:05 T:2328 M:1576353792  NOTICE: special://masterprofile/ is mapped to: C:\Users\HTPC\AppData\Roaming\XBMC\userdata
15:35:05 T:2328 M:1576353792  NOTICE: special://home/ is mapped to: C:\Users\HTPC\AppData\Roaming\XBMC
15:35:05 T:2328 M:1576353792  NOTICE: special://temp/ is mapped to: C:\Users\HTPC\AppData\Roaming\XBMC\cache
15:35:05 T:2328 M:1576353792  NOTICE: The executable running is: C:\Program Files\XBMC\XBMC.exe
15:35:05 T:2328 M:1576353792  NOTICE: Log File is located: C:\Users\HTPC\AppData\Roaming\XBMC\xbmc.log
15:35:05 T:2328 M:1576353792  NOTICE: -----------------------------------------------------------------------
15:35:05 T:2328 M:1576337408  NOTICE: Setup SDL
15:35:05 T:2328 M:1575923712  NOTICE: Found screen: PnP-Monitor (Standard) on ATI Radeon HD 5450, adapter 0.
15:35:05 T:2328 M:1575915520  NOTICE: Primary mode: 1920x1080 @ 60.00 - Full Screen

15:35:06 T:2328 M:1577717760  NOTICE: Additional mode: 1920x1080 @ 60.00 - Full Screen
15:35:06 T:2328 M:1577717760  NOTICE: Additional mode: 1920x1080 @ 59.94 - Full Screen
15:35:06 T:2328 M:1577717760  NOTICE: Additional mode: 1920x1080 @ 25.00i - Full Screen
15:35:06 T:2328 M:1577717760  NOTICE: Additional mode: 1920x1080 @ 30.00i - Full Screen
15:35:06 T:2328 M:1577717760  NOTICE: Additional mode: 1920x1080 @ 29.97i - Full Screen
15:35:06 T:2328 M:1578283008  NOTICE: load settings...
15:35:06 T:2328 M:1578246144  NOTICE: special://profile/ is mapped to: special://masterprofile/
15:35:06 T:2328 M:1578242048  NOTICE: loading special://masterprofile/guisettings.xml
15:35:06 T:2328 M:1576919040  NOTICE: Getting hardware information now...
15:35:06 T:2328 M:1576919040  NOTICE: Checking resolution 12
15:35:06 T:2328 M:1576906752  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
15:35:06 T:2328 M:1576898560  NOTICE: Loaded playercorefactory configuration
15:35:06 T:2328 M:1576898560  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
15:35:06 T:2328 M:1576898560  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
15:35:06 T:2328 M:1576890368  NOTICE: Loaded advancedsettings.xml from special://profile/advancedsettings.xml
15:35:06 T:2328 M:1576886272  NOTICE: Contents of special://profile/advancedsettings.xml are...
                                            <advancedsettings>
                                              <remoterepeat>100</remoterepeat>
                                            </advancedsettings>
15:35:06 T:2328 M:1576878080  NOTICE: Getting hardware information now...
15:35:06 T:2328 M:1576878080  NOTICE: Checking resolution 12
15:35:06 T:2328 M:1576878080  NOTICE: Default DVD Player: dvdplayer
15:35:06 T:2328 M:1576878080  NOTICE: Default Video Player: dvdplayer
15:35:06 T:2328 M:1576878080  NOTICE: Default Audio Player: paplayer
15:35:06 T:2328 M:1577324544  NOTICE: Loading media sources from special://masterprofile/sources.xml
15:35:07 T:2328 M:1539788800  NOTICE: initializing playlistplayer
15:35:07 T:2328 M:1539784704  NOTICE: DONE initializing playlistplayer
15:35:07 T:2328 M:1528995840  NOTICE: initialize done
15:35:07 T:2328 M:1528995840  NOTICE: Running the application...
15:35:07 T:2328 M:1528983552  NOTICE: Webserver: Starting...
15:35:07 T:2328 M:1528430592  NOTICE: WebServer: Started the webserver
15:35:07 T:2328 M:1528422400  NOTICE: ES: Starting event server
15:35:07 T:2996 M:1527857152  NOTICE: ES: Starting UDP Event server on 0.0.0.0:9777
15:35:07 T:2996 M:1527836672  NOTICE: UDP: Listening on port 9777
15:35:17 T:3036 M:1503817728  NOTICE: -->Python Interpreter Initialized<--
15:35:17 T:3036 M:1500745728  NOTICE:     [PLUGIN] xStream: load site kino_to and call function load
15:35:17 T:3036 M:1499885568  NOTICE:     [PLUGIN] xStream: load kinoto :)
15:35:23 T:2924 M:1499328512  NOTICE: -->Python Interpreter Initialized<--
15:35:23 T:2924 M:1497686016  NOTICE:     [PLUGIN] xStream: load site kino_to and call function displayCharacterSite
15:35:23 T:2924 M:1497653248  NOTICE:     [PLUGIN] xStream: load displayCharacterSite
15:35:25 T:2352 M:1499136000  NOTICE: -->Python Interpreter Initialized<--
15:35:25 T:2352 M:1498050560  NOTICE:     [PLUGIN] xStream: load site kino_to and call function ajaxCall
15:35:25 T:2352 M:1498017792  NOTICE:     [PLUGIN] xStream: MediaType: movie , Page: 1 , iMediaTypePageId: False , sCharacter: A
15:35:25 T:2352 M:1498017792  NOTICE:     [PLUGIN] xStream: http://kino.to/aGET/List/?bSortable_4=false&bSortable_5=false&bSortable_6=true&bSortable_0=true&additional=%7B%22fType%22%3A%22movie%22%2C%22fLetter%22%3A%22A%22%7D&bSortable_2=true&bSortable_3=false&sSortDir_0=asc&sEcho=1&iDisplayStart=0&iSortingCols=1&sColumns=&iColumns=7&iDisplayLength=25&iSortCol_0=2&bSortable_1=true
15:35:27 T:3632 M:1498869760  NOTICE: -->Python Interpreter Initialized<--
15:35:27 T:3632 M:1498693632  NOTICE:     [PLUGIN] xStream: load site kino_to and call function parseMovieEntrySite
15:35:27 T:3632 M:1498476544   ERROR: XFILE::CPluginDirectory::SetProperty called with an invalid handle.
15:35:27 T:3632 M:1498476544   ERROR: XFILE::CPluginDirectory::AddSortMethod - called with an invalid handle.
15:35:27 T:3632 M:1498476544   ERROR:  XFILE::CPluginDirectory::EndOfDirectory - called with an invalid handle.
15:35:32 T:3800 M:1498193920  NOTICE: -->Python Interpreter Initialized<--
15:35:32 T:3800 M:1497501696  NOTICE:     [PLUGIN] xStream: load site kino_to and call function parseHosterSnippet
15:35:32 T:3800 M:1497468928  NOTICE:     [PLUGIN] xStream: http://kino.to/aGET/Mirror/A_Beautiful_Mind&Hoster=10&Mirror=2
15:35:32 T:2040 M:1496768512  NOTICE: -->Python Interpreter Initialized<--
15:35:32 T:2040 M:1496485888  NOTICE:     [PLUGIN] xStream: load site kino_to and call function parseMovieEntrySite
15:35:33 T:2040 M:1497407488   ERROR: XFILE::CPluginDirectory::SetProperty called with an invalid handle.
15:35:33 T:2040 M:1497407488   ERROR: XFILE::CPluginDirectory::AddSortMethod - called with an invalid handle.
15:35:33 T:2040 M:1497407488   ERROR:  XFILE::CPluginDirectory::EndOfDirectory - called with an invalid handle.
15:35:35 T:2084 M:1498288128  NOTICE: -->Python Interpreter Initialized<--
15:35:35 T:2084 M:1497202688  NOTICE:     [PLUGIN] xStream: load site kino_to and call function parseHosterSnippet
15:35:35 T:2084 M:1497169920  NOTICE:     [PLUGIN] xStream: http://kino.to/aGET/Mirror/A_Beautiful_Mind&Hoster=10&Mirror=1
15:35:37 T:2292 M:1498251264  NOTICE: -->Python Interpreter Initialized<--
15:35:38 T:2292 M:1497165824  NOTICE:     [PLUGIN] xStream: load site cHosterGui and call function showHosterMenu
15:35:40 T:3292 M:1498415104  NOTICE: -->Python Interpreter Initialized<--
15:35:40 T:3292 M:1497329664  NOTICE:     [PLUGIN] xStream: load site cHosterGui and call function play
15:35:40 T:3292 M:1497329664  NOTICE:     [PLUGIN] xStream: call play: http://www.mystream.to/file-11051066-c2944d4c-A_Beautiful_Mind.eng.2001.esel.cd1.avi
15:35:40 T:3292 M:1497309184  NOTICE:     [PLUGIN] xStream: hosterhandler: http://www.mystream.to/file-11051066-c2944d4c-A_Beautiful_Mind.eng.2001.esel.cd1.avi?c=free
15:36:02 T:2328 M:1509191680  NOTICE: Storing total System Uptime
15:36:02 T:2328 M:1509191680  NOTICE: Saving settings
15:36:02 T:2328 M:1509007360  NOTICE: stop all
15:36:02 T:2328 M:1509007360  NOTICE: ES: Stopping event server
15:36:02 T:2328 M:1509007360  NOTICE: Webserver: Stopping...
15:36:02 T:2328 M:1509040128  NOTICE: WebServer: Stopped the webserver
15:36:02 T:2328 M:1509040128  NOTICE: Webserver: Stopped...
15:36:03 T:2996 M:1509195776  NOTICE: ES: UDP Event server stopped
15:36:03 T:2328 M:1509281792  NOTICE: stop sap announcement listener
15:36:03 T:2328 M:1509281792  NOTICE: clean cached files!
15:36:03 T:2328 M:1509277696  NOTICE: unload skin
15:36:03 T:2328 M:1514156032  NOTICE: stop python
15:36:04 T:2328 M:1560358912  NOTICE: stopped
15:36:04 T:2328 M:1560358912  NOTICE: destroy
15:36:04 T:2328 M:1560350720  NOTICE: unload sections

hope it helps.
the problem is that the hoster opens but the next list is empty. where normaly play, download and so on is displayed. I am using ur latest release in dharma 10.
same on movie2k hoster, connects but instead of play, only .. to go back

thanks already


- rogerzees - 2011-02-13

Hello Murphy.

What a great plugin you manage to do and my favorite now.

you should let people know that you can watch live-tv with this and kino.to has eng streams also example:

[RELEASE] xStream (Video) Plugin - (Live-tv) at Ustream.tv wwitv.com and MyP2P.eu radio from shoutcast.com .-also Various German Film, Trailer, Music & Sport Sites

some things to add someday maybe,
http://www.livestream.com/ http://www.justin.tv/ http://www.shadownet.ro/channels.php#
http://webactu-webtv.com/?lng=en
viel Danke.


- nikc0069 - 2011-02-23

Nothing streams for me on atv2.

Are these mms streams? As I know this won't be possible until the atv branch gets merged into main and FFMpeg takes over mms support.


- schnitzelbrain - 2011-02-26

Hi, any chance that you add HD-Box.org ?


- a-tom - 2011-02-27

First i have to say that your plugin is awesome! really nice. Thank you for that.

i am using it on an atv2 and want to ask if it is normal that about half of the streams don't work, or if it is a general problem of the plugin?
i figured out that none of the streams of burning-series.org work. is there a chance to get this working on the apple tv? that would be really fantastic.
i also think after a few testings that streams from sharehoster.com have the best video and audio quality, but i would like to hear other opinions too. so what do you think which of stream supplier has the best video and audio quality? or if it is possible to "configure the quality settings"?

Next question is if it is possible to get a bundesliga life stream working and when yes how? a streaming site could be "http://livetv.ru/de/" or "http://stream4u.tv/live-streams-stream-410.html"

which is the best service to watch seriesin german?

which is the best service to watch anime in german?

greez
tom


- mauzzz - 2011-03-16

I installed xstream because I would like to watch ustream.tv. In the xstream settings only ustream.tv and logging are enabled. But I can't get it to work. The Live and Categories folders are empty and the Search doesn't produce results. (I did try mtv.de - after enableling it - and that worked so the addon seems to be installed correctly).

xbmc.log
http://pastebin.com/hsxn4XV6

xstream 1.3.0 on xbmc 10.0 - Openelec RC3 (linux)


- angryjack - 2011-04-12

a-tom Wrote:...i figured out that none of the streams of burning-series.org work. is there a chance to get this working on the apple tv? that would be really fantastic...

fully agree with you !

@_murphy_: Is there a chance to get this plugin to work again ?

Greetings
angryjack


- frozenbubbl - 2011-04-15

This is a general issues with most of the streaming sites.
Also Some of the hosters don't work at all. So far i found megavideo and sharehoster to work well.

In general right now it's mostly luck to find a working one, but great approach. I might find time to help you to improve.