Bug 208831 - Amarok only searches Ampache by Artist name
Summary: Amarok only searches Ampache by Artist name
Status: RESOLVED NOT A BUG
Alias: None
Product: amarok
Classification: Applications
Component: Services/Ampache (show other bugs)
Version: 2.6-git
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: 2.7
Assignee: Amarok Developers
URL:
Keywords:
: 252112 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-29 00:15 UTC by Andy
Modified: 2013-01-09 20:18 UTC (History)
7 users (show)

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 Andy 2009-09-29 00:15:06 UTC
Version:           2.2 SVN Curren to 9/28/09 (using KDE 4.3.1)
OS:                Linux
Installed from:    Fedora RPMs

I'm running Amarok, up to today's git (2.2) pull with Ampache 3.5.1 latest stable release.

My collection is currently only via Ampache with no local collection. When I open the Amarok Ampache view I see all the files/songs I expect to see. The problem is Amarok seems to only be searching the Ampache database by artist name only. This action is supported by the following amarok debug output:

    amarok: BEGIN: virtual void AmpacheServiceQueryMaker::run()
    amarok:   BEGIN: void AmpacheServiceQueryMaker::fetchAlbums()
    amarok:      request url:  "http://192.168.2.41/ampache/ampache-3.5/server/xml.server.php?action=artist_albums&auth=a6690339339191546b0e9cca55a0f2fb&limit=0" 

I can find any song if I search by the artist name. Even when I see the song by searching my artist name, then use the song/track name it does not find the song.

The Amarok "Edit Filter" seems to have no effect on the searches performed.

Did some digging through the Ampache log file and I have found the search query:

[code]2009-09-28 18:01:41 [test] (Query) -> SELECT DISTINCT(`artist`.`id`) FROM `artist` WHERE 1=1 AND  `artist`.`name` LIKE '%metallica%' ORDER BY `artist`.`name` ASC [/code]

It appears that Amarok is only searching by artist name.  

Happy to test/debug with further instruction.
Comment 1 Jan Wiele 2009-11-18 16:46:47 UTC
*** This bug has been confirmed by popular vote. ***
Comment 2 Sunil Khiatani 2010-03-02 08:42:04 UTC
amapache has a comprehensive search feature, any chance that amarok can support them too.
Comment 3 Seth Heeren 2010-04-09 23:43:54 UTC
+1 i have the same usability issue.
Comment 4 Alex 2010-08-02 18:43:26 UTC
  +1  Since I don't use a local collection and only use Ampache this is at the top of the list.
  I love using the Ampache service through Amarok since it makes it very easy to have my home computers and work computer use the same collection.
  I don't have the time right now to dig into this myself (and it would take time since I've never worked on Amarok before), but if there's anything that can be done to jump start this that just needs a bit of legwork, let me know and I'll do what I can.
  Also I read here (http://ampache.org/blog/2010/05/21/ampache-mobile-now-with-video-support/) "There is also an Amarok Google Summer of Code student who is working on improving the interaction between Amarok and Ampache so there should be some exciting new things in that area as well."  Does anyone know more about this?  I'd be interested to see what this student has put together.

---Alex
Comment 5 Myriam Schweingruber 2010-09-23 16:11:51 UTC
*** Bug 252112 has been marked as a duplicate of this bug. ***
Comment 6 Florian 2011-06-10 14:00:37 UTC
I'm on Kubuntu 11.04 using Amarok 2.4.0. Unfortunately this issue still exists. Is there any chance for change?
Comment 7 Myriam Schweingruber 2012-10-22 02:04:44 UTC
Bump version.
Comment 8 Ralf Engels 2013-01-09 20:18:02 UTC
Searching for Album should also work.
Everything else is not supported by the Ampache protocol.

Sorry, there is nothing we can do.