This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Last.fm streams not working

Tags: None
(comma "," separated)
aitikin
Registered Member
Posts
8
Karma
0

Last.fm streams not working

Sun Dec 24, 2006 7:37 am
I can't get a single last.fm stream to work.  I've decided I'd try running in terminal to figure it out.  I'm running it on Gentoo on an AMD64 system using Xine.  Here's the output of when I start trying to play a stream:

"amarok: BEGIN: void EngineController::play(const MetaBundle&, uint)
amarok:  [controller] Loading URL: lastfm://user/aitikin/neighbours
amarok:  [controller] Connecting to protocol: lastfm
amarok: BEGIN: KURL LastFm::Controller::getNewProxy(QString)
amarok:    [LastFm] Initialising Web Service
amarok: BEGIN: bool LastFm::WebService::handshake(const QString&, const QString&)
amarok:      [LastFm] result: session=fe9527f67dd9ab7190bb234be03dd76e
stream_url=http://streamer3.last.fm:80/last.mp3?Session=fe9527f67dd9ab7190bb234be03dd76e
subscriber=0
framehack=0
base_url=ws.audioscrobbler.com
base_path=/radio
amarok:      [LastFm] Proxy server using port: 47870
amarok: END__: bool LastFm::WebService::handshake(const QString&, const QString&) - Took 0.95s
amarok:    [LastFm] Changing station:lastfm://user/aitikin/neighbours
amarok: END__: KURL LastFm::Controller::getNewProxy(QString) - Took 1.2s
amarok:  [controller] New URL is http://localhost:47870/lastfm.mp3
amarok: BEGIN: virtual bool XineEngine::load(const KURL&, bool)
amarok:    [xine-engine] Before xine_open() *****
amarok:    [xine-engine] After xine_open() *****
amarok: END__: virtual bool XineEngine::load(const KURL&, bool) - Took 0.35s
amarok:  [Moodbar] Resetting moodbar: /aitikin/neighbours
amarok: BEGIN: virtual bool XineEngine::play(uint)
amarok: BEGIN: void EngineSubject::stateChangedNotify(Engine::State)
amarok:      [virtual void Amarok::StatusBar::engineStateChanged(Engine::State, Engine::State)] Line: 138
amarok: BEGIN: virtual void ContextBrowser::engineStateChanged(Engine::State, Engine::State)
amarok:        [xine-engine] XINE_EVENT_UI_PLAYBACK_FINISHED
amarok: END__: virtual void ContextBrowser::engineStateChanged(Engine::State, Engine::State) - Took 0.0041s
amarok: BEGIN: virtual void PlayerWidget::engineStateChanged(Engine::State, Engine::State)
amarok: END__: virtual void PlayerWidget::engineStateChanged(Engine::State, Engine::State) - Took 0.00015s
amarok: END__: void EngineSubject::stateChangedNotify(Engine::State) - Took 0.013s
amarok: END__: virtual bool XineEngine::play(uint) - Took 0.014s
amarok: BEGIN: void EngineSubject::newMetaDataNotify(const MetaBundle&, bool)
amarok: BEGIN: virtual void ThreadWeaver::Thread::run()
amarok: BEGIN: SqliteConnection::SqliteConnection(const SqliteConfig*)
amarok: END__: SqliteConnection::SqliteConnection(const SqliteConfig*) - Took 0.00034s
amarok: END__: void EngineSubject::newMetaDataNotify(const MetaBundle&, bool) - Took 0.099s
amarok: END__: void EngineController::play(const MetaBundle&, uint) - Took 1.7s
amarok:  [CollectionDB] track ended: lastfm://user/aitikin/neighbours
amarok: BEGIN: void CurrentTrackJob::showArtistsAlbums(const QString&, uint, uint)
amarok:    [ScriptManager] Running script: /home/aitikin/.kde/share/apps/amarok/scripts/mp3fixer/mp3fixer.rb
amarok: BEGIN: void EngineSubject::stateChangedNotify(Engine::State)
amarok:      [Moodbar] Resetting moodbar:
amarok: BEGIN: virtual void ContextBrowser::engineStateChanged(Engine::State, Engine::State)
amarok: END__: virtual void ContextBrowser::engineStateChanged(Engine::State, Engine::State) - Took 0.0057s
amarok: BEGIN: virtual void PlayerWidget::engineStateChanged(Engine::State, Engine::State)
amarok:        [Moodbar] Resetting moodbar:
amarok: END__: virtual void PlayerWidget::engineStateChanged(Engine::State, Engine::State) - Took 0.0023s
amarok:      [Moodbar] Resetting moodbar:
amarok: END__: void EngineSubject::stateChangedNotify(Engine::State) - Took 0.037s
amarok:    [LastFm] AMAROK_PROXY: host streamer3.last.fm
amarok:    [LastFm] AMAROK_PROXY: 47870
amarok:    [LastFm] AMAROK_PROXY: running with port: 80 and host: streamer3.last.fm
amarok:    [LastFm] AMAROK_PROXY: "GET /lastfm.mp3 HTTP/1.0\r\n"
amarok:    [LastFm] AMAROK_PROXY: "GET http://streamer3.last.fm/last.mp3?Sessi ... 4be03dd76e HTTP/1.1\r\nHost: streamer3.last.fm:80\r\n\r\n"
amarok:    [LastFm] AMAROK_PROXY: GET /lastfm.mp3 HTTP/1.0
amarok:    [LastFm]  but sending GET http://streamer3.last.fm/last.mp3?Sessi ... 4be03dd76e HTTP/1.1
amarok:    [LastFm] Host: streamer3.last.fm:80
amarok:    [LastFm]
amarok:    [LastFm] AMAROK_PROXY: COPY from amarok -> serv
amarok:    [LastFm] AMAROK_PROXY: cp_to_empty_outward( income => #<0x2b7ddecd5e60>, output => #<0x2b7ddecd5640>
amarok:    [LastFm] AMAROK_PROXY: Host: localhost:47870
amarok:    [LastFm] AMAROK_PROXY: data sent.
amarok:    [LastFm] AMAROK_PROXY: Found xine user agent version 1.1.3
amarok:    [LastFm] AMAROK_PROXY: User-Agent: xine/1.1.3
amarok:    [LastFm] AMAROK_PROXY: data sent.
amarok:    [LastFm] AMAROK_PROXY: Accept: */*
amarok:    [LastFm] AMAROK_PROXY: data sent.
amarok:    [LastFm] AMAROK_PROXY: Icy-MetaData: 1
amarok:    [LastFm] AMAROK_PROXY: data sent.
amarok:    [LastFm] AMAROK_PROXY:
amarok:    [LastFm] AMAROK_PROXY: data sent.
amarok:    [LastFm] AMAROK_PROXY: COPY from serv -> amarok
amarok:    [LastFm] AMAROK_PROXY: cp_to_empty_inward( income => #<0x2b7ddecd5640>, output => #<0x2b7ddecd5e60>
amarok:    [LastFm] AMAROK_PROXY: HTTP/1.0 200 OK
amarok:    [LastFm] AMAROK_PROXY: Server: last.fm Streaming Server
amarok:    [LastFm] AMAROK_PROXY: Content-type: audio/mpeg
amarok:    [LastFm] AMAROK_PROXY: Cache-control: no-cache
amarok:    [LastFm] AMAROK_PROXY: Pragma: no-cache
amarok:    [LastFm] AMAROK_PROXY: Connection: close
amarok:    [LastFm] AMAROK_PROXY:
amarok:    [LastFm] AMAROK_PROXY: Before cp_all()
amarok:    [LastFm] AMAROK_PROXY: cp_all( income => #<0x2b7ddecd5640>, output => #<0x2b7ddecd5e60>
amarok:    [LastFm] AMAROK_PROXY: undefined method `[]' for nil:NilClass
amarok:    [LastFm] AMAROK_PROXY: ["/usr/bin/amarok_proxy.rb:167:in `cp_all_inward'", "/usr/bin/amarok_proxy.rb:158:in `loop'", "/usr/bin/amarok_proxy.rb:158:in `cp_all_inward'", "/usr/bin/amarok_proxy.rb:98:in `initialize'", "/usr/bin/amarok_proxy.rb:224:in `new'", "/usr/bin/amarok_proxy.rb:224"]
amarok:    [LastFm] exiting
amarok: BEGIN: virtual LastFm::WebService::~WebService()
amarok: END__: virtual LastFm::WebService::~WebService() - Took 0.00013s
amarok: END__: void CurrentTrackJob::showArtistsAlbums(const QString&, uint, uint) - Took 0.5s
amarok:  [ThreadWeaver] Job completed: CurrentTrackJob. Jobs pending: 1
amarok: END__: virtual void ThreadWeaver::Thread::run() - Took 1.2s
amarok: BEGIN: virtual void ThreadWeaver::Thread::run()
amarok: BEGIN: SqliteConnection::SqliteConnection(const SqliteConfig*)
amarok: END__: SqliteConnection::SqliteConnection(const SqliteConfig*) - Took 0.0003s
amarok: BEGIN: void CurrentTrackJob::showArtistsAlbums(const QString&, uint, uint)
amarok: END__: void CurrentTrackJob::showArtistsAlbums(const QString&, uint, uint) - Took 0.44s
amarok:  [ThreadWeaver] Job completed: CurrentTrackJob. Jobs pending: 0
amarok: END__: virtual void ThreadWeaver::Thread::run() - Took 1.1s
amarok: [virtual OutFader::~OutFader()]
"

any ideas?
User avatar
dangle_wtf
Moderator
Posts
1252
Karma
0

Re: Last.fm streams not working

Sun Dec 24, 2006 10:05 pm
check for xine-lib updates. There was a known problem playing last.fm streams with one version (for x86, but could be for amd64 too), but I can't remember which one.


"There are two theories to arguing with women. Neither one works."
.
If men could get pregnant, we'd learn the true meaning of "screaming nancyboy wuss"
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS

Re: Last.fm streams not working

Sun Dec 24, 2006 10:09 pm
Right, and also check if there's an update for Amarok. It was recently patched to work with xinelib 1.1.3.


--
Mark Kretschmann - Amarok Developer
armands
Registered Member
Posts
4
Karma
0

Re: Last.fm streams not working

Wed Dec 27, 2006 8:25 am
Hi everyone,
I have exactly the same problem on openSUSE 10.2. and also using Xine

Maybe a bit longer description of problem - when I choose to listen to last.fm stream, it starts buffiring and usually gets up to some 10% or something like that and then suddenly jumps to 100%.  Other internet radio streams are streaming/playing fine and I can play music from last.fm using browser so I guess it is not internet connection problem or last.fm server's problem. 

Also what is interesting, I recently reinstalled linux, previosly I was using Ubuntu 6.01 and amarok was streaming last.fm.  Maybe there are some libs missing? 

I checked libxine - I have libxine 1.1.3 version. 

Ideas anyone? :confused:
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS

Re: Last.fm streams not working

Wed Dec 27, 2006 9:43 am
Erm, perhaps I did not make myself clear. Let me try again:

Lastfm streams do NOT work with Amarok 1.4.4 AND xinelib 1.1.3. You need to downgrade xinelib, or upgrade Amarok (get SVN or wait for 1.4.5).


--
Mark Kretschmann - Amarok Developer
armands
Registered Member
Posts
4
Karma
0

Re: Last.fm streams not working

Wed Dec 27, 2006 9:49 am
Ok, got it,
thanks!


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot], Yahoo [Bot]