google-code-export / rhythmbox-shoutcast

Automatically exported from code.google.com/p/rhythmbox-shoutcast
1 stars 1 forks source link

SHOUTcast 2.0 API #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. play station
2. nothing happens
3. no music

What is the expected output? What do you see instead?
music, nothing

What version of the product are you using? On what operating system?
1.6.1 ubuntu 10.04

Please provide any additional information below.
it was working earlier this week.

Original issue reported on code.google.com by rtjhobb...@gmail.com on 19 Dec 2010 at 9:36

GoogleCodeExporter commented 9 years ago
Try to right click on your station, then copy url (Copy URL menu item). Then 
run Totem player, and put your url there.

Can you hear sound after this actions?

Original comment by kuznetsov.alexey on 19 Dec 2010 at 11:07

GoogleCodeExporter commented 9 years ago
I noticed now, no stations have loaded

Original comment by rtjhobb...@gmail.com on 19 Dec 2010 at 7:58

GoogleCodeExporter commented 9 years ago
i disabled then reenabled the plugin, i now have no genres showing

Original comment by rtjhobb...@gmail.com on 19 Dec 2010 at 11:22

GoogleCodeExporter commented 9 years ago
run this command from the console and show output here (or as an attachment):

# rhythmbox --rhythmdb-file=./database.xml -D shoutcast

Original comment by kuznetsov.alexey on 20 Dec 2010 at 3:51

GoogleCodeExporter commented 9 years ago
I attached the output. Thanks for the help.

Original comment by rtjhobb...@gmail.com on 20 Dec 2010 at 4:16

Attachments:

GoogleCodeExporter commented 9 years ago
is it all?
i expect some python exception, not a rhythmbox asserts (it can be ok).

Original comment by kuznetsov.alexey on 20 Dec 2010 at 4:50

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
OK, tried again. I ran the program while the script was running and clicked 
shoutcast

Original comment by rtjhobb...@gmail.com on 20 Dec 2010 at 5:01

Attachments:

GoogleCodeExporter commented 9 years ago
can you show me this genres.xml file from shoutcast server?

/home/dave/.cache/rhythmbox/shoutcast/genres.xml

Original comment by kuznetsov.alexey on 20 Dec 2010 at 5:04

GoogleCodeExporter commented 9 years ago
I do not have that file there.

Original comment by rtjhobb...@gmail.com on 20 Dec 2010 at 5:26

GoogleCodeExporter commented 9 years ago
Can you see content of this URL:

http://yp.shoutcast.com/sbin/newxml.phtml

Original comment by kuznetsov.alexey on 20 Dec 2010 at 5:44

GoogleCodeExporter commented 9 years ago
I see xml output, lots of genres. no style information found.

Original comment by rtjhobb...@gmail.com on 20 Dec 2010 at 6:02

GoogleCodeExporter commented 9 years ago
seems like shoutcast starts to feed new xml format... digging out..

Original comment by kuznetsov.alexey on 20 Dec 2010 at 6:27

GoogleCodeExporter commented 9 years ago
Shoutcast servers block most clients from downloading from its servers:

# wget http://yp.shoutcast.com/sbin/newxml.phtml

python:

import gio
f=gio.File('http://yp.shoutcast.com/sbin/newxml.phtml')
f.read().read()

Original comment by kuznetsov.alexey on 20 Dec 2010 at 6:58

GoogleCodeExporter commented 9 years ago
well, the first command says something resolved, but not sure what to do with 
the rest of that. Shoutcast still empty atm

Original comment by rtjhobb...@gmail.com on 20 Dec 2010 at 7:06

GoogleCodeExporter commented 9 years ago

Original comment by kuznetsov.alexey on 20 Dec 2010 at 7:22

GoogleCodeExporter commented 9 years ago
check content what you got by "wget" command - its empty.

it is shoutcast server problem / new restriction.

lets wait and see where they want to go...

Original comment by kuznetsov.alexey on 20 Dec 2010 at 7:24

GoogleCodeExporter commented 9 years ago
even the fake agent code don't works:

import urllib

o=urllib.FancyURLopener({})
o.version="Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.13) 
Gecko/20101203 Firefox/3.6.13 GTB7.1"
f=o.open("http://www.shoutcast.com/sbin/newxml.phtml")
print f.read()

Original comment by kuznetsov.alexey on 20 Dec 2010 at 7:25

GoogleCodeExporter commented 9 years ago
http://www.shoutcastblog.com/2010/09/30/shoutcast-api-update/

Original comment by kuznetsov.alexey on 20 Dec 2010 at 9:43

GoogleCodeExporter commented 9 years ago

Original comment by kuznetsov.alexey on 20 Dec 2010 at 9:48

GoogleCodeExporter commented 9 years ago
I did some updates to the code and got it working again!

One minor downside... you need a developer apikey from AOL.  To me, this is a 
minor inconvenience, but once setup seems to be working quite well.

I have attached instructions for getting the API key and plugging it into the 
gconf editor, as well as a diff of the sourcecode.

Original comment by cdp1337@gmail.com on 22 Dec 2010 at 4:12

Attachments:

GoogleCodeExporter commented 9 years ago
thanks for contributions.

fixed in source.

Original comment by kuznetsov.alexey on 22 Dec 2010 at 7:35