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

Bug #1316303 #257

Merged
merged 2 commits into from May 12, 2014
Merged

Bug #1316303 #257

merged 2 commits into from May 12, 2014

Conversation

badescunicu
Copy link
Contributor

Parse the Artist and the Title from the file name when the corresponding ID3 tags are missing.

https://bugs.launchpad.net/mixxx/+bug/1316303

QString filename = m_fileInfo.fileName();
if (filename.count('-') == 1) {
m_sArtist = filename.section('-', 0, 0).trimmed();
m_sArtist = m_sArtist.replace("_", " ");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you do this before trimming, we can handle Artist_-_Title.mp3 as well.

@badescunicu
Copy link
Contributor Author

Is there anything else I should do for this?

@daschuer
Copy link
Member

LGTM! Thank you very much!

daschuer added a commit that referenced this pull request May 12, 2014
@daschuer daschuer merged commit d4fd892 into mixxxdj:master May 12, 2014
esbrandt added a commit to mixxxdj/manual that referenced this pull request Jun 15, 2014
m0dB pushed a commit to m0dB/mixxx that referenced this pull request Jan 21, 2024
Co-authored-by: ronso0 <ronso0@mixxx.org>
Co-authored-by: Jan Holthuis <holthuis.jan@googlemail.com>
Co-authored-by: Be <be.0@gmx.com>
Co-authored-by: Swiftb0y <12380386+Swiftb0y@users.noreply.github.com>
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.

None yet

2 participants