PDA

View Full Version : WinAmp TV / SHOUTcast internet TV


idaeus
2005-06-23, 11:38
on winamp you get the tv feature i think its called internet ~~tv or somat canwe get a script made to access this?

EnderW
2005-06-23, 21:50
i tried this once, but the xml winamp fetches is encrypted...i don't think many people here are good at cracking encryptions.

idaeus
2005-06-24, 11:38
grr at them.. grrr

butt
2005-08-20, 12:40
maybe an addon or script or something for winamp tv? that might be nice.

another idea may be something like profiles? i think you did this but maybe not.

butt
2005-08-23, 05:31
well what about having winamp tv open on your computer but being able to access and use it from the xbox? through ftp proxy or wtvr.

Zigg
2005-08-23, 09:36
not encrypted zlib compressed... try adding &no_compress=1 to the request

http://www.shoutcast.com/sbin....press=1 (http://www.shoutcast.com/sbin/xmllister.phtml?limit=500&service=winamp2&no_compress=1)

http://www.shoutcast.com/sbin....press=1 (http://www.shoutcast.com/sbin/tvlister.phtml?limit=500&service=winamp2&no_compress=1)

remember... don't refresh too often or they ban your ip for a little while.

not my discovery.... google search found the tip.

zigg

Zigg
2005-08-23, 09:39
http://www.shoutcast.com/sbin/xmllister.phtml?limit=500&service=winamp2&no_compress=1

http://www.shoutcast.com/sbin/tvlister.phtml?limit=500&service=winamp2&no_compress=1

easier to read this way.

CrashCat
2005-08-27, 09:44
i tried briefly to hack something into ooba's menu.xml to parse this page but sadly it didn't like the url because of the "_" underscore character in it. for giggles i think i may try php-including the page from a page on my web host to get around it but obviously that's not a feasible solution for the rest of us. though i know nothing about python so there may be a simple workaround or i may be doing something stupid.

(edit: ok, a php include was a stupid idea for my limited knowledge too. i guess i may just copy one of the actual listings files itself over to see if anything even plays that way)

(edit2: of course it didn't like the file that way, guess i didn't understand what is going on. too late tonight to attempt anymore, someone who is better at their regexp than me will hopefully beat me to it.)

CrashCat
2005-08-28, 06:43
i tried making a .strm file off of one of the urls in that xml and even that didn't seem to work. i guess there's probably something i'm missing, maybe need some routine to read the .pls file but i could have sworn there were other scripts that read those already.

clintec
2005-10-03, 05:11
i am certain it's possible as they are simply (.nsv) files, but i think it would be extremely cool if we could tap into the shoutcast tv listings and be able to select them just like we can the shoutcast top 500.

for example: the new version of winamp utilizes the following url to access the directory listing.

http://www.shoutcast.com/sbin....winamp2 (http://www.shoutcast.com/sbin/tvlister.phtml?limit=600&service=winamp2)

my guess would be that we can surely utilize that listing to assist us in creating a viewable listing from it. please note that this list appears to be either encrypted or a binary list of sorts, but that's the url that winamp uses.

any thoughts, because i think it would be an extremely powerful enhancement!

clintec.

MnC_
2005-10-03, 12:53
hi,

i totally agree .. that would be nifty =)

ericdraven77
2005-10-07, 11:10
well just incase anyone here may have not known, but im sure u all do by now...but if u have a fav winamp tv listing u can simply save that channel on winamp as a m3u, then ftp that m3u to your xbox..but i do agree it would be sweet to have an automatic refresh full listing for winamp.....hope u guys are catching the freedom tv channels, they have awesome important info you wont see on the main stream news :kickass:

CrashCat
2005-10-20, 04:05
i am certain it's possible as they are simply (.nsv) files, but i think it would be extremely cool if we could tap into the shoutcast tv listings and be able to select them just like we can the shoutcast top 500.

for example: the new version of winamp utilizes the following url to access the directory listing.

http://www.shoutcast.com/sbin....winamp2 (http://www.shoutcast.com/sbin/tvlister.phtml?limit=600&service=winamp2)

my guess would be that we can surely utilize that listing to assist us in creating a viewable listing from it. please note that this list appears to be either encrypted or a binary list of sorts, but that's the url that winamp uses.

any thoughts, because i think it would be an extremely powerful enhancement!

clintec.
we're going around in circles a bit with this, to get the plaintext xml file you can take the url you posted and add "&no_compress=1" to the end. my problem was getting anything to work with that; when i tried to steal an existing script and put in that url to parse things out it took issue with the special "_" character. someone who's actually knowledgeable about this stuff might have more luck.

Koshatul
2006-01-02, 13:05
we're going around in circles a bit with this, to get the plaintext xml file you can take the url you posted and add "&no_compress=1" to the end. my problem was getting anything to work with that; when i tried to steal an existing script and put in that url to parse things out it took issue with the special "_" character. someone who's actually knowledgeable about this stuff might have more luck.
sorry, but i thought this might help, i haven't tried it on the xbox, but if it doesn't like the _ (it is probably bleed over from _ originally not being valid for domain names) try using the uri encoding for it

http://www.shoutcast.com/sbin/tvlister.phtml?limit=500&service=winamp2&no%5fcompress=1

give it a go and tell me how it turns out.

crazyace
2006-01-24, 18:30
hi all, new here. i've enjoyed xbmc for over a year now, and think winamp tv is a great idea.
i used to code, so i've broke down just what needs to be done, for this to work. i think, someone who knows python should be able to make this.
step 1, ya knew it.


http://www.shoutcast.com/sbin....press=1 (http://www.shoutcast.com/sbin/tvlister.phtml?limit=500&service=winamp2&no_compress=1)


which gives back a page that reads like this.


<?xml version="1.0" encoding='utf-8' standalone="yes"?>
<winampxml>
<playlist num_entries="500" label="shoutcast top 500">
<entry playstring="http://www.shoutcast.com/sbin/tunein-tvstation.pls?id=3824&filename=playlist.pls">
<name>giga digital -- giga.de</name>
<stationid>n/a</stationid>
<genre>live tv</genre>
<nowplaying></nowplaying>
<listeners>743</listeners>
<bitrate>500</bitrate>
<rating>pg13</rating>
</entry>
... more entries ...
</playlist>
</winampxml>



step 2. make thouse entries into a list, in a ui. so a user can pick one.

step 3. take this line from the selected entry which accesses a database at shoutcast,


http://www.shoutcast.com/sbin/tunein-tvstation.pls?id=3824


which gives back a file called tunein-tvstation.pls with the contents,


[playlist]
numberofentries=0
version=2


which i think is an error, possible from a full server. let me try again with another one...


http://www.shoutcast.com/sbin/tunein-tvstation.pls?id=562423


gives...


[playlist]
numberofentries=1
file1=http://213.115.129.124:8000;stream.nsv
title1=(#1 - 203/300) jpopsuki tv!
length1=-1
version=2


step 4 cut-n-paste til it looks more like this


#extm3u
#extinf:-1,jpopsuki tv!
http://213.115.129.124:8000;stream.nsv


step 5 launch the entry, and watch the show.


hmmm... duh...
winamp radio script already does this mostly.
just need to replace xmllister with tvlister in the line in step 1 and add 2 fields stationid and rating in step 2.
and the file returned in 3 is now tunein-tvstation.pls instead of tunein-station.pls.

ok, so i didn't need to reinvent the wheel, just polish the rims.

neokang
2006-01-26, 00:40
:kickass: good job crazyace!!! thank u hope a script soon

macsat
2006-03-06, 12:27
did this idea totally die?

nobody wanted to follow it further?

jmarshall
2006-03-06, 21:14
2 rather minor changes to the xbmc source (shoutcastdirectory.cpp) will give xbmc native access to the tv listings on shoutcast.com.

you just have to change the url to tvlisting rather than the xmllisting, and up the decompression buffer a little (10 times the size rather than 6 times) and you'll have access to the top 500 tv streams.

this is a nice little project for a new developer who want's to try their hand at doing something for the xbmc community.

good luck!

Kaishounashi
2006-06-01, 07:18
hi all,

though this is my first time posting here, i've been a lurker for a couple of months. anyhow, i'm aware that the topic of shoutcast tv support has been brought up before and a solution has been offered to add native support to xbmc for it, but does anyone know if there's actually been a python script released for it?

i remember either finding a script or d/l'ing an unofficial recent build of xbmc with support for this feature , but i can't remember where i found it for the life of me. i know xbmc is in a feature freeze right now so it doesn't seem likely that it'll be included anytime soon. anyhow, thanks in advance for any input on this.

Kaishounashi
2006-06-01, 09:56
yes.. thank you for moving the topic to this post..

i had already read this thread (along with a couple of others), i just didn't specifically mention it in my post. *i just wasn't sure whether to post in it since i know some places aren't too keen on people reviving old threads. *guess i'll keep that in mind next time.