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

Newbie problem in updating Song DB #195

Open
bigboss97 opened this issue Jan 4, 2020 · 5 comments
Open

Newbie problem in updating Song DB #195

bigboss97 opened this issue Jan 4, 2020 · 5 comments

Comments

@bigboss97
Copy link

I'm new in OpenKJ. I tried to update the DB with my CDG songs. Sometimes it found one and sometimes nothing. I have no ideas what I did wrong. I tried so many things... Clear DB, restart OpenKJ, renaming files etc.
I have 3 files, 2 are exactly the same and one has different music. There are only two times OpenKJ read one of the files when I renamed it to "Copy.cdg" and it was played successfully.
I have following questions:

  1. Does the file name have to match the pattern I select? (I did that with out success)
  2. Does OpenKJ verify the contents of the CDG file, e.g. title, artist, length etc?
  3. Does OpenKJ only insert one file when two files are the same.
  4. Can OpenKJ read unicode filename?
    Sorry about the silly questions. I just want to find out what I'm doing wrong :-(
@backstagekaraoke
Copy link
Collaborator

@bigboss97

  1. Does the file name have to match the pattern I select? - Yes its much better if your files match the naming pattern that you specify when importing your library

e.g. DISCID-Track# - Artist - Title

however, if it can't match based on your naming pattern, it will fall back to reading the metadata/tags for that file, and try and work it out that way. I use MP3Tag to also set my tags just as a backup.

Rule of thumb - the better and cleaner your library is, then less chance you will have issues when importing.

  1. Does OpenKJ verify the contents of the CDG file, e.g. title, artist, length etc?

Similar to my above answer, however yes it also reads length of song - it does not check the CDG for errors if thats what you are asking in that question.

  1. Does OpenKJ only insert one file when two files are the same? - Not too sure on this one, as its never a scenario I have been in, I don't have files named the same, where just one of the music tracks is different. If that was the case, the filenames should be different to identify the two versions.

e.g.
SF001-01 - Metallica - Battery
PH002-02 - Metallica - Battery

If its a custom track you have done yourself, then just make up your own discid to differentiate between the versions - e.g. CUSTOM00-03 - Metallica - Battery

  1. Can OpenKJ read unicode filename? - Can you give an example of one you have?

@bigboss97
Copy link
Author

Thanks for the response.

4. Can OpenKJ read unicode filename? - Can you give an example of one you have?

Chinese characters in the file name.

@backstagekaraoke
Copy link
Collaborator

@coyote1357 - thoughts on this one mate?

@ILightburn
Copy link
Member

I'm actually not sure, to be honest. Would depend heavily on underlying libraries that I'm using and the OS itself. And I don't have any files that aren't named in English character sets. I know the UI library, Qt has good unicode support, but I'm not sure how well gstreamer handles unicode characters. Would also need to look at the sqlite db I'm using to make sure it's using a unicode compatible encoding by default for text fields, but I think it does.

If you want to send an example file to support@openkj.org or put one somewhere where I can download it I'll take a look.

@bigboss97
Copy link
Author

Thank you for getting back to me.
Meanwhile I've been trying to create songs in MP3+LRC format. My question has now moved to... does OpenKJ support LRC? :-)

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

No branches or pull requests

3 participants