Clementine: Search in filename

Created on 10 Dec 2013  Â·  11Comments  Â·  Source: clementine-player/Clementine

_From [email protected] on November 04, 2011 20:48:05_

Hi!

I found that clementine does not recognize the filename in search. My Library has thousands of files and there are some files no id3-tag. If there's no id3-Tag i can't find it in search. Would it be possible to search in filename?

Thanks!!

_Original issue: http://code.google.com/p/clementine-player/issues/detail?id=2374_

Priority-Medium enhancement imported

Most helpful comment

Five-year-old feature request! Let's celebrate!

I just can't understand, why it's impossible to search in filenames as well. It can't slow down searching, cause now you check at least 9 fields, so another one won't add more that 10% overhead. Even less, if you use in-memory structures instead of SQL-ing. After all, there's a solution, that won't affect timings at all: if the song lacks id3, just put a filename instead.

Please, consider some changings, we really need it!

All 11 comments

_From [email protected] on November 29, 2011 07:09:13_

Here is a patch that addresses this issue.
If no title tag is found in a track, then Clementine would store the filename as the title in the database. The way I implemented it, it won't store the file extension, so if the file is /home/user/music/TheBeatles_YellowSubmarine.mp3, then the title is stored as "TheBeatles_YellowSubmarine"

I think this addresses the bug rather nicely, and it was easier to implement then true filename searching. If a title is found, then you won't get the song as a result if the keyword is in the filename. For example, if for whatever reason the above TheBeatles_YellowSubmarine.mp3 was actually a Metallica song and it had the ID3 tags, then searching for YellowSubmarine would not find the file. So you're not going to get extra results just because your keyword is in the filename.

Attachment: title_default_filename.patch

_From [email protected] on November 29, 2011 07:12:17_

I should mention that if this patch is merged into the next version of Clementine, you would need to rescan your library so it can put the filename title into the database.

_From [email protected] on December 05, 2012 12:46:21_

Hi! Thanks about the patch, now the point is how can I install this patch? Could you please type the "steps" to do it in the terminal? Thanks again!

Ariel.

Is there something new with this issue or related one #305 (there's no way to find untagged files).
In my collection I have some valuable files without tags some of them are just wav files and I don't want transcode them for some reasons.
I want to have some way to find them in the collection (by file name and path).

I understand that adding another field to fts or even making plain sql query through database can significantly slows query speed.

I can presume three ways to solve this issue:

  1. Additional "slow" search mode for library search.
  2. Turn on search for untagged files. (In this mode search field are disabled now.)
  3. Add search plugin that can do it through file names.

Anyway I think that if you have some song in the collection you should have some way to find it.

What you think?

This is the only reason I am not using clementine. I have a lot on untagged files. It would be nice if you make clementine search for filenames like other players.

Five-year-old feature request! Let's celebrate!

I just can't understand, why it's impossible to search in filenames as well. It can't slow down searching, cause now you check at least 9 fields, so another one won't add more that 10% overhead. Even less, if you use in-memory structures instead of SQL-ing. After all, there's a solution, that won't affect timings at all: if the song lacks id3, just put a filename instead.

Please, consider some changings, we really need it!

Has it been fixed? If not, could someone recommend a music player that searches within both filenames and paths instead of only ID3 tags?

After upgrade to clementine-1.4.0-1.rc1.20200617gitedb8c3b.fc31.x86_64 it started to work. Clementine seems to parse the file name and (virtually) fills artist and title in its database which is searchable (the id3 remains empty while examining with an external tool).

Update. See https://github.com/clementine-player/Clementine/commit/ddbde91889d7b177bb514d24a990e4360ee58a21 and https://github.com/clementine-player/Clementine/commit/9b580e4a5cc2608aea4c6f986bcc433a6200b715. Thanks @dmdmdm!

I'm glad you like the change. If there are other similar issues let me know (no promises of course)

I just did a change that will use the parent folder name as the album name (if not set as ID3 tag).
It works when you have .../[album]/[song].mp3
For example .../Mellon Collie and the Infinite Sadness/Bullet with Butterfly Wings.mp3

thanks a lot

On Thu, Jul 9, 2020 at 12:43 AM dmdmdm notifications@github.com wrote:

I just did a change that will use the parent folder name as the album name
(if not set as ID3 tag).
It works when you have ...//.mp3
For example .../Mellon Collie and the Infinite Sadness/Bullet with
Butterfly Wings.mp3

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/clementine-player/Clementine/issues/2374#issuecomment-655795373,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA5R5VTNLTI6C52UVPPXBLLR2TZB5ANCNFSM4AKMLAFQ
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LoveIsGrief picture LoveIsGrief  Â·  5Comments

Pulfer picture Pulfer  Â·  3Comments

Ajt8000 picture Ajt8000  Â·  5Comments

andreas93j picture andreas93j  Â·  6Comments

darkMatterSound picture darkMatterSound  Â·  3Comments