[DEV] FirstRow Sports
#1
I've started on my first addon and I chose to do one for the following site

http://www.firstrowsports.eu

They seem to keep a rather good collection of live streaming links to sports and PPV events, but is also one of those sites that uses streams from a variety of sources

So far I have including coding for the following sources:
- SeeOn
- ZoneIn
- Ustream (not yet working)

Before I put out an initial release there are a number of other streams that I would like to get working and which I'm confident can be done with some time, including:

- WiiCast
- Meevos
- Yatv.ru
- veetle (low quality)

I have a number of things that I would like to get done in this script including moving the code which determines/parses the stream to an external class to hopefully make adding support for new streams easier

Also I'm hoping that the stream detection/parsing code can eventually be moved into the Video Falcon project

So I'm still learning and now looking for some help, it's been a tough road learning how to parse out what I need to get the streams working, and learning Python at the same time

Anyone wanting to help here is the link to my repo:
https://github.com/Eldorados/firstrowsports

Feel free to help out with code critique, possibly better ways to parse out the information, and especially getting new streams working
Reply
#2
Maybe you can use these parts of a config file for VideoDevil:

Code:
########################################################
# YaTV - Videos
########################################################
item_infos=data="http://yatv.ru/files/swf/container.swf\?cid=[^&]+&autoplay=[^&]+&layout=[^&]+&leftWidth=[^&]+&upHeight=[^&]+&apps=[^&]+&id=([^"]+)"
item_order=url
item_skill=rss
item_info_name=title
item_info_from=url
item_info_build=YaTV - %s
item_url_build=http://yatv.ru/ru//tv,dyn,channelRecords?record_id=%s
########################################################
item_infos='(http://s[0-9]\.d[0-9]\.yatv\.ru/[^']+)\.[0-9]+\.jpg'
item_order=url
item_info_name=title
item_info_from=url
item_info_build=YaTV - %s
item_info_name=type
item_info_build=direct.video
item_url_build=%s.mp4

Meevos and WiiCast are hardcoded at the moment:

Code:
########################################################
# Meevos - Videos
########################################################
item_infos=chid="([^"]+)";[^<]*</script><script (type="text/javascript" )?src="http://embed.meevos.tv/js/embed.js"( type="text/javascript")?>
item_order=url|tmp1|tmp2
item_info_name=title
item_info_from=url
item_info_build=Meevos - %s
item_info_name=type
item_info_build=direct.video
item_url_build=rtmp://68.68.28.187/live/%s swfurl=http://player.meevos.tv/player.swf pageurl=http://embed.meevos.tv/embed.php?id=mtvasia4&w=650&h=450
########################################################
item_infos=src="http://embed.meevos.tv/embed.php\?id=([^&]+)[^"]*"
item_order=url
item_info_name=title
item_info_from=url
item_info_build=Meevos - %s
item_info_name=type
item_info_build=direct.video
item_url_build=rtmp://68.68.28.187/live/%s swfurl=http://player.meevos.tv/player.swf pageurl=http://embed.meevos.tv/embed.php?id=mtvasia4


########################################################
# wiicast - Videos
########################################################
item_infos=src="http://www.wii-cast.tv/embed[^\.]*\.php\?channel=([^&]+)[^"]*"
item_order=url
item_info_name=title
item_info_from=url
item_info_build=WiiCast - %s
item_info_name=type
item_info_build=direct.video
item_url_build=rtmpe://212.7.212.17:1935/pub/%s swfurl=http://www.wii-cast.tv/player/player12.swf pageUrl=http://www.wii-cast.tv/embedjw.php?fileid=leestream43&vw=750&vh=400
Reply
#3
ZoneIn IP has changed: 68.68.31.46 => 68.68.31.94
Reply
#4
Actually I was planning on using your config file for reference on getting those streams going Smile

Thanks, I noticed my Zonein streams were no longer working but had not looked into why yet.. rtmp redirect support would be really nice!
Reply
#5
Ok, I'm glad these files are useful Smile
Does Ustream already work in your addon? Can I send a plugin://plugin.video.FirstRowSports/?play=CHANNEL someday?
Reply
#6
Not sure about doing that just yet.. I'm still learning Smile

Ustream currently does not work, but I believe I'm almost there, just not sure what the last piece of their puzzle is.. perhaps someone will more knowledge in how these streams work can help out
Reply
#7
Updated source to correct Zonein IP address and had a small bug preventing Seeon streams from working

Also added early support for Jimey.tv and CastAMP streams, not playing yet
Reply
#8
Hey,

I put all configs together with a modified VideoDevil into an addon package. It's called SportsDevil and parses FirstRowSports too. Can I upload the source into your repo, so we can work together on it?
Reply
#9
I think you might have some trouble making some sites work completely with that Video Devil model.. some of the streams are rather straight forward such as the Seeon and Zonein, but others will require some specific coding such as Meevos or Ustream

Our efforts might be best used to contribute to a project like VideoFalcon - http://forum.xbmc.org/showthread.php?tid=99384
Reply
#10
Eldorado Wrote:I think you might have some trouble making some sites work completely with that Video Devil model.. some of the streams are rather straight forward such as the Seeon and Zonein, but others will require some specific coding such as Meevos or Ustream

Our efforts might be best used to contribute to a project like VideoFalcon - http://forum.xbmc.org/showthread.php?tid=99384

Yes, that's true. We could modify the code of videodevil to get these difficult streams anyway without us fixing them all the time manually. I just like the idea of a modular video addon everyone can quite easily contribute to. When creating a video addon every developer has to start from the scratch, so why not skip this part and just concentrate on site specific regular expressions. Of course my whole works will be integrated into VideoFalcon, it's a great project Smile
Reply
#11
Agreed!

I would love to just pass a string to an external plugin and have it return a nice rtmp url for me to play Smile

I haven't had much time to check SportsDevil yet, are all the supported streams working with First Row Sports?

There are some odd streams where the RTMP address is right in the first page's url, others where values were being passed into a javascript.. and then of course the odd streams that require their own plugins to play

I have new icons for the sports categories as well

Let me know where I can help
Reply
#12
Hi Eldorado!

Sorry to keep you waiting, but I had to finish my Bachelor Thesis (SportsDevil was a successful try to distract myself for a few days Laugh).
AFAIK, all supported streams are working for FirstRowSports.
Do you have any suggestions for improving my code or ideas? Python is not my favourite programming language, so my skills are limited. It's barely enough to make a few changes here and there.
I'm very interested in sports icons and artwork in general .

Greets
Reply

Logout Mark Read Team Forum Stats Members Help
[DEV] FirstRow Sports0