Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use file name / foder name for unknown tag retrieval. #541

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

heimoshuiyu
Copy link

When taglib cannot retrieve the title of the media or the title of the album, use the filename as the track name and the folder name as the album name.

I have a lot of music downloaded from YouTube, which doesn't have recognizable media metadata. After scanning with gonic, all of them turn into empty titles and unknown albums, making it difficult for me to distinguish the music. For example, like this:

Screenshot_20240925_150357

These pieces of music without metadata should be manually managed by the user using filenames and folders. In this way, using the filename and folder as the title and album name is reasonable. For example, like this: (the file is named aino.opus under folder miku)

Screenshot_20240925_150148

When taglib get empty or null title from file/album, use file name or
folder name as the tag_title field. It could be confuse to user, but at
leaset it is better than tracks/albums can't be search in ID3 mode API.
@sentriz
Copy link
Owner

sentriz commented Sep 25, 2024

interesting, i think i'd need to weigh up the pros and cons here. this is what the subsonic "browse by folder" mode is for. have you tried that?

@heimoshuiyu
Copy link
Author

heimoshuiyu commented Sep 25, 2024

Yes, I know. However, the PC client Sonixd that I use does not support this mode. The Ultrasonic client on Android can choose this mode. The "browser by folder" effect is like this (without this PR):

ultrasonic

I don't think this PR has any drawbacks. It supplements the missing song information in ID3 mode, turning blank titles and Unknown Album into understandable information. At the same time, it does not change the behavior in "browser by folder" mode. I have been using it for two months and think this is a very good improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants