Watch Live Sports with VideoDevil

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
MaxMustermann Offline
Member
Posts: 94
Joined: Sep 2009
Reputation: 33
Post: #1
See this thread for V1.0 or higher (aka SportsDevil)


I made two config files for VideoDevil that parse the content of MyP2P, LiveTV.ru and Goalsarena.org.

Currently supported streams:
  • Sopcast (must be handled by external player)
  • MMS
  • VLC
  • ZoneIn
  • Meevos
  • SeeOn
  • Veemi
  • Veetle (only if channel can be played with t0mm0's veetle addon)
  • CastAMP
  • WiiCast
  • RaySon
  • TVope
  • YouTube (needs YouTube Addon)
  • Videa.hu
  • Aliez
  • RuTube.ru
  • NBA.com
  • YaTV.ru
  • Dailymotion

What you need:
1. Save these files in addons\plugin.video.VideoDevil\resources :
highlights.cfg
livesports.cfg

2. Add entry in sites.list
Code:
title=Live Sports
type=rss
genre=Live Sports
director=SportsDevil
icon=
url=livesports.cfg
########################################################
title=Highlights
type=rss
genre=Highlights
director=SportsDevil
icon=
url=highlights.cfg

(Windows only, optional) 3. For playing Sopcast links (e.g. sop://broker.sopcast.com:3912/12345) you need to define an external player for the sop-protocol. As soon as you have installed SopFilter you can use these links in all DirectShow video players such as MPC-HC. Also remember to set playertype=auto in VideoDevil's plugin settings.
External Players can be defined in userdata\playercorefactory.xml.

Example:
Code:
<playercorefactory>
<players>
   <player name="MPC-HC" type="ExternalPlayer" audio="false" video="true">
     <filename>C:\Programme\MPC HomeCinema\mpc-hc.exe</filename>
     <args>"{1}" /fullscreen /close</args>
     <hidexbmc>false</hidexbmc>
     <hideconsole>false</hideconsole>
     <warpcursor>none</warpcursor>
   </player>
</players>
<rules action="prepend">
   <rule protocols="sop" player="MPC-HC"/>
</rules>
</playercorefactory>



###################################################

Changelog:

V1.0 (SportsDevil):
  • integrated FirstRowSports.eu
  • fixed ZoneIn
  • modified VideoDevil:
    • added command @IMPORT=inserthere.txt@ => replaces this line with content of inserthere.txt
    • added command @LANGUAGE@ => is replaced by en or de
    • Search only on urls visible that match a certain regex (e.g. once=http://www.onlyhere.com/.*)
  • LiveTV.ru: created subcategories for live events
  • LiveTV.ru: high quality icons for teams in Highlights
  • new folder structure
  • some icons and translations (english and german)
  • packed everything together into SportsDevil addon package

V0.6 (only highlights.cfg):
  • added Dailymotion.com
  • improved YouTube (all links should be found now)

V0.5:
  • extension devided into 2 parts: highlights.cfg and livesports.cfg
  • Goalsarena.org integrated (Feeds and All Videos)
  • LiveTV.ru: now all highlights, goals, whole matches... available
  • LiveTV.ru: current events now highlighted
  • added NBA.com, RuTube.ru, YaTV.ru
  • fixed RaySon
  • some fixes and improvements of regular expressions
V0.4:
  • some fixes and improvements of regular expressions
  • Livetv.ru integrated (Now Playing & Highlights)

V0.3:
  • improved recognition of streams
  • some more redirects
  • removed Jimey (didn't work)
V0.2:
  • added CastAMP, WiiCast, RaySon, TVope
  • improved recognition of streams
V0.1:
  • initial release

TODO (help needed):
  • Justin.tv
  • Ustream.tv
  • 786Cast.com
  • Jimey.tv
  • Freedocast.com
(This post was last modified: 2011-04-24 14:31 by MaxMustermann.)
find quote
branlr Offline
Fan
Posts: 356
Joined: Dec 2009
Reputation: 3
Location: I live in Chicago.
Post: #2
Cool idea
find quote
anarchintosh Offline
Senior Member
Posts: 282
Joined: Jul 2010
Reputation: 4
Post: #3
hi maxmusterman, we're working on a new project called Videofalcon, which will be based on videodevil/videomonkey but new and improved, and designed for proper content.

when its released, we would love you to make this config file for it.
find quote
MaxMustermann Offline
Member
Posts: 94
Joined: Sep 2009
Reputation: 33
Post: #4
Of course I will port it to Videofalcon. Will there be a proper documentation this time? I spent 2 days with VideoDevil to understand the basics of the config files, just by looking into youtube.com.cfg and other examples. Very frustrating sometimes... I still don't know how to make custom directories and subdirectories that do not correspond to any link on the website. Is there a way to exclude empty folders? This means that the python script has to check whether there is some content in these folders or not.

I made another config file with a list of sopcast-channels (external player needed). Save as sopcast.cfg:

Code:
########################################################
# Sopcast VideoPortal
########################################################
start=http://www.livefootballtvs.com/sopcast-channel-list.html
########################################################  
# Videos
########################################################
item_infos=<td><strong><a href="[^"]+">([^<]+)</a></strong></td>[^<]*<td>([^<]+)</td>
item_order=title|url
item_info_name=type
item_info_build=direct.video
item_info_name=icon
item_info_build=category.png
item_url_build=%s

entry in sites.list:
Code:
########################################################
title=Sopcast Channels
type=rss
genre=Sopcast Channels
director=VideoDevil
icon=video.devil.image|sopcast.jpg
url=sopcast.cfg
########################################################

Maybe someone could help me with some streams, e.g. ustream.tv, justin.tv and veetle. At the moment only veetle links like http://veetle.com/index.php/channel/view#CHANNELID can be played. I call the veetle addon with plugin://plugin.video.veetle/?play=CHANNELID and it works to my surprise Smile
(This post was last modified: 2011-04-15 17:51 by MaxMustermann.)
find quote
MaxMustermann Offline
Member
Posts: 94
Joined: Sep 2009
Reputation: 33
Post: #5
Update:
myp2p.cfg

Supported streams:
  • SopCast (only with external player)
  • Veetle (only if channel can be played with t0mm0's veetle addon)
  • VLC
  • MMS
  • Meevos
  • ZoneIn
  • SeeOn
  • WiiCast
  • Veemi
  • CastAMP
  • 786Cast
  • RaySon
  • TVope
(This post was last modified: 2011-04-16 01:12 by MaxMustermann.)
find quote
t0mm0 Offline
Fan
Posts: 486
Joined: Mar 2011
Reputation: 8
Location: UK
Post: #6
MaxMustermann Wrote:At the moment only veetle links like http://veetle.com/index.php/channel/view#CHANNELID can be played. I call the veetle addon with plugin://plugin.video.veetle/?play=CHANNELID and it works to my surprise Smile

glad it is useful Wink

it only works with channels that have flash streams at the moment - still trying to figure out the 'hd' streams......
find quote
MaxMustermann Offline
Member
Posts: 94
Joined: Sep 2009
Reputation: 33
Post: #7
see first post. all links updated
find quote
anarchintosh Offline
Senior Member
Posts: 282
Joined: Jul 2010
Reputation: 4
Post: #8
yeah videofalcon will have proper documentation.
btw. might be a while before videofalcon is done
find quote
MaxMustermann Offline
Member
Posts: 94
Joined: Sep 2009
Reputation: 33
Post: #9
see first post for infos and download
find quote
henrava Offline
Senior Member
Posts: 134
Joined: Apr 2011
Reputation: 1
Location: Italy
Post: #10
I suggest to improve this plugin with a config for rojadirecta.es, very popular site with a lot of links !
find quote
MaxMustermann Offline
Member
Posts: 94
Joined: Sep 2009
Reputation: 33
Post: #11
I just had a look at rojadirecta.es. It does not have as much live links as Livetv.ru. So you should find everything you want to see at Livetv.ru.
find quote
Eldorado Offline
Fan
Posts: 519
Joined: May 2009
Reputation: 14
Post: #12
Here's some info for Ustream.tv

I've gotten far, but I still can't get it working using rtmpdump, I'm wondering if there is some sort of auth key that is required?

They use an AMF file named after the channel id, if you navigate to this path:
Code:
http://cgw.ustream.tv/Viewer/getStream/1/<channel id>.amf

It contains all the values you need, parse out these values:

Code:
playPath=re.compile('streamName\W\W\W(.+?)\x00', re.DOTALL).findall(html)
tcUrl=re.compile('cdnUrl\W\W\S(.+?)\x00', re.DOTALL).findall(html)

I don't think the SWF url is included, but can grab that from a sniffer tool and hard code it in - don't have that info on me right now
find quote
henrava Offline
Senior Member
Posts: 134
Joined: Apr 2011
Reputation: 1
Location: Italy
Post: #13
I have tried tonight with live.ru, is very good.
No problem with the stream, played, stopped, played again... all ok.
There is a possibility to add categories in live events ?
Thank for your good work.
find quote
MaxMustermann Offline
Member
Posts: 94
Joined: Sep 2009
Reputation: 33
Post: #14
@Eldorado:

Thank you for your help. As soon as I have finished my bachelor thesis (due to 2nd of May) I will continue work on the config file. Since it's not a real Addon but only a config file containing lots of regular expressions, nearly everything is hardcoded that cannot be parsed from a website. I hope that VideoFalcon will be more flexible, so I can use ustream links and some others too. (E.g. rutube: channel name = abcdefg12345 => final url = .../ab/cd/abcdefg12345. This is actually pretty easy but not doable with VideoDevil.)

@henrava:

I tried creating directories for live sports in livetv.ru but every page contains all live events, no matter which category is chosen from the menu. This means that I cannot parse only those links that belong to a particular category. Maybe I don't understand all options of VideoDevil because there is no proper documentation. As soon as I have some spare time again, I will try to contact the developer(s) of VideoDevil.
find quote
rflores2323 Online
Posting Freak
Posts: 1,920
Joined: Jan 2009
Reputation: 2
Post: #15
Why add this plugin in videodevil. My wife isnt keen on going in here and seeing porn sites to watch sports. It does work on the atv2 however which is great.

ATV1 with crystalbuntu (12.2 frodo) as main theater. Theater remote URC MX-810, droidx with xbmc remote, or transformer tf101 with YATSE. 3 x ATV2 (V12.2 frodo).

find quote
Post Reply