Duplicate result in search for all songs

Siasb
Siasb
Offline
0
Hi,

I have two songs with the same name (We wish you), in the two different albums. One album has padded a numerical number to make the second file unique in the songs directory. Doing a search for all songs, returns duplicate results for one of the albums. In the detail page, each album has a unique entry for a song. Looking at the phpMyAdmin browse of the database, the songs table also shows unique entries. So I don’t know where is this duplicate result is coming from? Further, a search for all albums returns nothing! And there are already two albums there. I have attached an image that shows the issue.
I am on a very short schedule for my customer; so I would appreciate it if I could get an answer in this regard as soon as possible. Thank you very much in advance. http://www.joomlamusicsolutions.com/images/fbfiles/images/MC_DuplicateSongs3.jpg
Attachments:
Responses (9)
  • Accepted Answer

    Monday, December 21 2009, 10:19 PM - #Permalink
    0
    Can you post a link? Album search wont return any results if searchword is empty. You can change this behaviour by small modification on a piece of code
    The reply is currently minimized Show
  • Accepted Answer

    Siasb
    Siasb
    Offline
    Monday, December 21 2009, 10:27 PM - #Permalink
    0
    Thank you Germi for the quick response. If you want, I can PM it for you, but the website is under development. If you can let me know where in the code to look for the change, and what to change, and I can move around the php code myself.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, December 21 2009, 10:35 PM - #Permalink
    0
    on file /components/com_muscol/models/search.php on line 329 approx you find this:

    if ($keywords != ""){

    just take away this sentence, or just replace it for

    if (true){

    PM me the link to joomlamusicsolutions@gmail.com
    The reply is currently minimized Show
  • Accepted Answer

    Siasb
    Siasb
    Offline
    Monday, December 21 2009, 10:48 PM - #Permalink
    0
    Thank you Germi. I'll try that, and will send the link in the Email as well.
    The reply is currently minimized Show
  • Accepted Answer

    Siasb
    Siasb
    Offline
    Monday, December 21 2009, 11:13 PM - #Permalink
    0
    Hi Germi,

    The search for albums after the change, now returns the albums. But now it returns the albums as two sets under mp3 and CD. They are both CD. If we do a search for only mp3, it returns nothing as expected. And a search for CD returns the albums. I am going to look around the search code a bit to see what I can understand from it. If you know a soluiton right off, please let me know. Thanks.

    Image attached. http://www.joomlamusicsolutions.com/images/fbfiles/images/mp3AndCD-20091222.jpg
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, December 22 2009, 04:06 PM - #Permalink
    0
    but.. your albums are duplicated, right? I mean, they are both in CD and mp3, isnt it? I don't know if I understand your problem... :)

    Germi
    The reply is currently minimized Show
  • Accepted Answer

    Siasb
    Siasb
    Offline
    Tuesday, December 22 2009, 08:04 PM - #Permalink
    0
    Hi Germi,

    The albums are designated as CD. But a search fro all albums returns them as both CD and mp3. I have attached an image. You can check that on the page that I send you at. http://www.joomlamusicsolutions.com/images/fbfiles/images/mp3AndCD-20091222-2.jpg
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, December 22 2009, 08:11 PM - #Permalink
    0
    I only get CD on that page.. no mp3!! :S
    The reply is currently minimized Show
  • Accepted Answer

    Siasb
    Siasb
    Offline
    Tuesday, December 22 2009, 09:46 PM - #Permalink
    0
    Thank you Germi for your quick response. I am still getting both mp3 and CDs. When on that page, just search for all albums (search albums button) without any search string. I tested it again under different browsers, in case, and the same result. I will resend the link in the Email again, in case links have altered, since the site is in development

    Thanks again.
    The reply is currently minimized Show
Your Reply