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

Username/Password for streams did not work?

Tags: None
(comma "," separated)
BlackEye
Karma
0
Is there a way to play streams which need a username/password?
I usually listen all over the day streams from Digital-Imported (di.fm) with my account there. To listen a stream, I háave to submit a username and password for a stream. But if I try to listen to this stream, amarok ask my for username and password but nothing happens...
xmms for example works fine with such streams
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS
BlackEye wrote:
Is there a way to play streams which need a username/password?
I usually listen all over the day streams from Digital-Imported (di.fm) with my account there. To listen a stream, I háave to submit a username and password for a stream. But if I try to listen to this stream, amarok ask my for username and password but nothing happens...
xmms for example works fine with such streams


Take a look at this bug report, I think it's talking about the same thing, and consider voting / adding a comment:

http://bugs.kde.org/show_bug.cgi?id=77313

I would like to implement support for password protected streams, but I'm not sure how this works, and I can't test it either (don't have access to such a stream). So, any detailed technical info is appreciated.

Post edited by: markey, at: 2004/06/19 15:39

Post edited by: markey, at: 2004/06/19 15:39


--
Mark Kretschmann - Amarok Developer
BlackEye
Karma
0
THX for the answer
To help you, I captured the autorization process of xmms with ethereal and post the relevant part here:

GET / HTTP/1.1.
Host: 81.92.166.22.
User-Agent: xmms/1.2.10.
Authorization: Basic

I hope, this will help you. If not, feel free to contact me!

martin at martin-fernau dot de for mail contact
wef
Karma
0
Hi.

I think your problem is that you have the option "Display Shoutcast metadata" enabled.
I'm using DI.fm all day without problems when I disable that option.

The thing is that password protected streams DOES work with amarok, only that metadata doesn't.

However, I wrote a patch so that amarok supports metadata over password protected streams as well:

[code:1]
diff amarok-1.0.1/amarok/
src/titleproxy/titleproxy.cpp amarok-1.0.1-patched/amarok/src/titleproxy/titleproxy.cpp
22a23
> #include
145a147,148
> QCString username = m_url.user().utf8();
> QCString password = m_url.pass().utf8();
154c157,160
< "Accept-Language: de, en\r\n\r\n";
---
> "Accept-Language: de, en\r\n"
> "Authorization: Basic " +
> KCodecs::base64Encode(username + ":" + password) +
> "\r\n\r\n";
[/code:1]

Could we get this into CVS, please?
wef
Karma
0
well, the formatting of the code #¤¤!$

Anyway, I'll send the patch by email or something instead.
wef
Karma
0
Posted a feature request and a patch at
http://bugs.kde.org/show_bug.cgi?id=84207
BlackEye
Karma
0
great! After disabling the option, di.fm works! thanks for the tip.


Bookmarks



Who is online

Registered users: Bing [Bot], gfielding, Google [Bot], markhm, Sogou [Bot], Yahoo [Bot]