[REQUEST] Mediaset Video Plugin (Italian for Italy)?

  Thread Rating:
  • 3 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
lcapriotti Offline
a.k.a Luigi, Team-XBMC XBMCbuntu Dev
Posts: 791
Joined: Jan 2008
Reputation: 12
Location: Italy
Lightbulb  [REQUEST] Mediaset Video Plugin (Italian for Italy)? Post: #1
Anyone able to find the way to write a plugin for the italian mediaset video site?

I tried some basic tests but I was not able to have a working schema nor to receive any valid video streams Sad

Any help appreciated!

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
Temhil Offline
Skilled Python Coder
Posts: 395
Joined: Apr 2008
Reputation: 1
Location: Canada
Post: #2
Hi,

I looked very quickly to the website you have mentionned, and I think I found information which could be useful for writing your script.
Uing http header (add on firefox) I found those XML:
- Liste of video :
http://www.video.mediaset.it/vedianche/i...ttenimento
You can see entries like:
Code:
<video-summary id="scherziaparte/2007/07/20/108">
<image>bin/10.$plit/C_5_video_25284_stopframe.jpg</image>
<title>Senti chi parla</title>
<program>Scherzi a Parte</program>
<description>Scherzi a Parte</description>
<date>20/07/2007</date>
<visto>1489</visto>
<network-logo/>
</video-summary>

And one xml for a s[ecific video which includes video links:
http://www.video.mediaset.it/video/uomin...2F02%2F651

So if I use the entry above: scherziaparte/2007/07/20/108 and mix it with the video URL, I get the xml URL:
http://www.video.mediaset.it/video/scher...8312463129

Code:
<video id="scherziaparte/2007/07/20/108" code="25284">
<thumbnail>bin/10.$plit/C_5_video_25284_stopframe.jpg</thumbnail>

<urls>
<url type="wmv">scherziaparte/2007/07/Scherzi_GiadaDeblank2.wmv</url>
<url type="flv"/>
</urls>
<title>Senti chi parla</title>
<date>20/07/2007</date>

<description>
Un macchinario avveneristico per leggere il pensiero
</description>

<category ads="true" area="intrattenimento" classname="intrattenimento" id="scherziaparte/2007/scherzi">
<airtime/>
<program-logo>/bin/54.$plit/C_5_aggregazione_38_grafica_logo.gif</program-logo>
<program-link/>
<network-logo>/img/logo_network_canale5.png</network-logo>
</category>
<visto>1517</visto>
<rating stars="5" voti="6"/>
</video>

Here it is, the video URL is in it!Big Grin
I think it is a good starting point, I hope it help.

[Image: passionxbmc_signature.png]
_____________________________

Repositories Installer: select and install unofficial repositories / TAC.TV: watch videos on TAC.TV
Installer Passion-XBMC: Download and Install Add-ons (pre-Dharma only)

[Image: project_thin_badge.gif]
find quote
lcapriotti Offline
a.k.a Luigi, Team-XBMC XBMCbuntu Dev
Posts: 791
Joined: Jan 2008
Reputation: 12
Location: Italy
Post: #3
maybe I got it wrong, but I can't stream the video with the URL built as instructed.

Did you try to open the video streams (wmv or flv)?

for example:

Code:
http://www.video.mediaset.it/video/scherziaparte/2007/07/Scherzi_GiadaDeblank2.wmv

is not is video stream!

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
Temhil Offline
Skilled Python Coder
Posts: 395
Joined: Apr 2008
Reputation: 1
Location: Canada
Post: #4
Yes you're right, I tried and it doesn't work.
You have to dig and look what are the request sent using http header for instance.
The issue could be also the use of cookie which return differene thing depending on what is defined in the cookie.
Sorry I cannot spent too much time on it right know, I will try to see if I can figure it out.

[Image: passionxbmc_signature.png]
_____________________________

Repositories Installer: select and install unofficial repositories / TAC.TV: watch videos on TAC.TV
Installer Passion-XBMC: Download and Install Add-ons (pre-Dharma only)

[Image: project_thin_badge.gif]
find quote
Temhil Offline
Skilled Python Coder
Posts: 395
Joined: Apr 2008
Reputation: 1
Location: Canada
Post: #5
Just olling the answer from the server on:
http://www.video.mediaset.it/video/scher...blank2.wmv

Code:
http://www.video.mediaset.it/video/scherziaparte/2007/07/Scherzi_GiadaDeblank2.wmv

GET /video/scherziaparte/2007/07/Scherzi_GiadaDeblank2.wmv HTTP/1.1
Host: www.video.mediaset.it
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive

HTTP/1.x 404 Not Found
Date: Wed, 03 Dec 2008 18:33:40 GMT
Server: Apache
Accept-Ranges: bytes
Content-Length: 115
Keep-Alive: timeout=5, max=1000
Connection: Keep-Alive
Content-Type: text/html
So it seems the URL is wrong, it could be the base path since in the XML we only have:
scherziaparte/2007/07/Scherzi_GiadaDeblank2.wmv

Perhaps http://www.video.mediaset.it/video/ is not valid for video path ...

[Image: passionxbmc_signature.png]
_____________________________

Repositories Installer: select and install unofficial repositories / TAC.TV: watch videos on TAC.TV
Installer Passion-XBMC: Download and Install Add-ons (pre-Dharma only)

[Image: project_thin_badge.gif]
find quote
rwparris2 Offline
Team-XBMC Python Developer
Posts: 1,341
Joined: Jan 2008
Reputation: 2
Location: US
Post: #6
if there is no FLV link use: mms://mediaset.wmod.llnwd.net/a2695/e1/[wmvurl]

ex. mms://mediaset.wmod.llnwd.net/a2695/e1/scherziaparte/2007/07/Scherzi_GiadaDeblank2.wmv

if there is a FLV link, it gets kinda weird. the base url is:
rtmp://217.169.112.25:80/vod/

but then the actual video url is different than what is listed on the XML page.
ex.
mediasetestero/2008/12/nipV_14_darlene.flv
mediaset_admediasetestero_2008_12_nipV_14_darlene.flv


have fun and good luck Smile

Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/
find quote
Temhil Offline
Skilled Python Coder
Posts: 395
Joined: Apr 2008
Reputation: 1
Location: Canada
Post: #7
@rwparris2
Well done Smile, I wasn't able to find those damn URLs.
May I asked how you find it? It would help me to improved my investigation technique. Nothing came throw the header, how did you get those? Confused

@l.capriotti
I think you have the minimum for starting now, good luck! Big Grin

[Image: passionxbmc_signature.png]
_____________________________

Repositories Installer: select and install unofficial repositories / TAC.TV: watch videos on TAC.TV
Installer Passion-XBMC: Download and Install Add-ons (pre-Dharma only)

[Image: project_thin_badge.gif]
find quote
rwparris2 Offline
Team-XBMC Python Developer
Posts: 1,341
Joined: Jan 2008
Reputation: 2
Location: US
Post: #8
firebug for firefox & orbit downloader

Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/
find quote
lcapriotti Offline
a.k.a Luigi, Team-XBMC XBMCbuntu Dev
Posts: 791
Joined: Jan 2008
Reputation: 12
Location: Italy
Post: #9
tks you all, much appreciated!

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
rwparris2 Offline
Team-XBMC Python Developer
Posts: 1,341
Joined: Jan 2008
Reputation: 2
Location: US
Post: #10
No problem.

And to be honest, I probably wouldn't have ever looked at this if it weren't for the challenge in the title

If you need anymore help, let us know.

Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/
find quote
Post Reply