View Full Version : Request: Major Finnish NetTV, Yle / Arena.
realjobe
2008-06-16, 11:57
Hi there.
In Finland there is One major TV network YLE.fi that has NetTV section called "Arena". There vast number of programs to watch and the quality is very good. The selection is HUGE, therefore a plugin for this could be Very needed to Finns.
This is quite simple to do also.
1. Load page "http://areena.yle.fi/selaa" and parse for categorylist to show.
- Serach for "<td class="product">" and extract the pid from the HRef like "<a href="/hae?pid=170088">10 kirjaa jotka muuttivat maailmaa</a>
2. Load the page "http://areena.yle.fi/hae?pid=170088&filter=1,1" and parse the program list for this category
- Serach for "<li class="item video>" and extract the Videoname, the thumbnail and PID like
* video from "<a href="/toista?xxxxxxx">
* Thumb after that from "<img src=".....">"
* Name of the video from image's alt tag.
Video link is "http://www.yle.fi/java/areena/dispatcher/xxxxxxx.asx?bitrate=1"
This is MAJOR need for Finns because the content renews itself allthe time for quality programs!
:)
You seem pretty up on the subject, give it a go.
I`m working through my backlog at the moment.
You seem pretty up on the subject, give it a go.
I`m working through my backlog at the moment.:nod:
realjobe
2008-06-16, 14:48
You seem pretty up on the subject, give it a go.
I`m working through my backlog at the moment.:nod:
I'm sorry, but I really don't know how to code python. I will test, help anyone who can produce the skeleton / working consept for this, but the core-code is not possible for me to develop.
:(
No problem , i`ll add it to my list.
Could you be so kind as to request it in my request thread at the top of the page.
It`s easier for me to see where i`m up to in chronological order - Thanks
realjobe
2008-06-16, 14:59
- Serach for "<li class="item video>" and extract the Videoname, the thumbnail and PID like
* video from "<a href="/toista?xxxxxxx">
This is useless, because the PID has been already extract with phase 1. (pid=170088 on the example.) So only the Thumbnail and Logical name (alt text on image) is needed on this one.
realjobe
2008-06-16, 15:02
2. Load the page "http://areena.yle.fi/hae?pid=170088&filter=1,1" and parse the program list for this category :)
&filter=1,1 is optional and can be left out. This filters Video/Audio types of media. 1,1 means only Video. There are also only Audio feeds. :)
realjobe
2008-06-16, 15:06
Video link is "http://www.yle.fi/java/areena/dispatcher/xxxxxxx.asx?bitrate=1"
http://www.yle.fi/java/areena/dispatcher/xxxxxx.asx?bitrate=1000000
is the correct one. :)
Agent should also be IE / FireFox I think.
realjobe
2008-06-16, 15:22
There can also be several pages when certain category selected. This must be seekd also.
Example Site is http://areena.yle.fi/hae?pid=165983 (TV-news), 12 pages.
- When category is parsed and the page where the actual streams PIDs are to extarct, there are "<div class="page-numbers">" in the HTML. There is the data how many pages there are maximum.
The last "a href" before "</div>" tag there is the number how many pages there are like "<a href="/hae?pid=165983&s=12">12</a>"
So, when loading categorys streams
- Extract the number of possible pages before.
- load as and extract data as many times as how many pages there are with
http://areena.yle.fi/hae?pid=xxxxxxx&s=3 param.
:)
I will wireshark it anyway dont worry.
I like to look at the fun and games myself
realjobe
2008-06-16, 15:26
1. Load page "http://areena.yle.fi/selaa" and parse for categorylist to show.
- Serach for "<td class="product">" and extract the pid from the HRef like "<a href="/hae?pid=170088">10 kirjaa jotka muuttivat maailmaa</a>
:)
It is wise to include ?v=t param to all HTML requests, like
"http://areena.yle.fi/selaa?v=t. This is lite version of the HTML and therefore loading overhead / memconsuption is smaller, and faster to parse.
Is this project still active? Any progress? Would love to see Arena plugin on xbmc..
Plugin available here (http://www.xbmc.org/forum/showthread.php?t=39903), a days work... XBMC video plugins are sweet to do, fast results!
realjobe
2008-12-18, 12:02
Plugin available here (http://www.xbmc.org/forum/showthread.php?t=39903), a days work... XBMC video plugins are sweet to do, fast results!
I can't thank You enough! Thank You!!! :)))