Bug 132667 - /media in Konversation with amaroK not working with files having no artist set
Summary: /media in Konversation with amaroK not working with files having no artist set
Status: RESOLVED FIXED
Alias: None
Product: konversation
Classification: Applications
Component: general (show other bugs)
Version: 0.12beta
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konversation Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-20 00:32 UTC by Eric Ludwig
Modified: 2006-08-20 19:16 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Ludwig 2006-08-20 00:32:26 UTC
Version:           1.3.9 (using KDE 3.5.4, Kubuntu Package 4:3.5.4-0ubuntu2~dapper1 )
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.15-26-386

mp3 files like: 05 title artist.mp3 are not supported in konversation with the command /media ,  files like artist-title.mp3 are supported
Comment 1 Niek Beernink 2006-08-20 13:31:50 UTC
Does the file you are playing have id3 tags?

I took an mp3, stripped its id3 tags then renamed it artist-title.mp3 and it gives me; "[DCOP] Error: Nothing is playing in Amarok" (same goes for a file named "05 title artist.mp3 with no tags") when I type /media.

This seems more like a bug in Amarok because it's DCOP call to that program and it doesn't know that a file without tags is playing, because as soon any I add some id3 tags to the file in Amarok, it will work.

Playing the file in Kaffeine without tags and then typing /media will output:  "$nick is listening to "artist-title.mp3"  [Kaffeine]"
Comment 2 Eike Hein 2006-08-20 14:45:57 UTC
It's true though that the script silently fails if the file has tags except for an artist tag.
Comment 3 Eike Hein 2006-08-20 15:23:01 UTC
Ooops, I was wrong and Niek was right: Our script is smarter than I remembered; it shouldn't have a problem with files lacking artist info as it scales down correctly. It's up to the media player in question to provide the relevant information, Konversation does no media file handling by itself. WONTFIX.
Comment 4 Maximilian Kossick 2006-08-20 18:22:46 UTC
Amarok does provide the relevant information even for tracks with no tags.
dcop amarok player nowPlaying returns the title which is displayed in the playlist for tracks without tags (the track's filename without the extension).
dcop amarok player title simply returns the current track's title, which can be empty.
Comment 5 Eike Hein 2006-08-20 18:42:20 UTC
I've extended the script to use nowPlaying now if the title property is empty. Try it and report back.
Comment 6 Eike Hein 2006-08-20 19:16:14 UTC
Fix confirmed by reporter.