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

Split Artist, Title By Space-Surrounded Dash #29

Closed
BinToss opened this issue Mar 27, 2024 · 1 comment · Fixed by #32
Closed

Split Artist, Title By Space-Surrounded Dash #29

BinToss opened this issue Mar 27, 2024 · 1 comment · Fixed by #32
Assignees

Comments

@BinToss
Copy link

BinToss commented Mar 27, 2024

Artists Names and Song Titles often contain dashes.
However, It's less likely that the Artist Name would contain " - ".
As such, everything after " - " could be assumed to be a Title—including any remaining " - " in that Title.

My personal motivation for this issue? Dash-separated dates in the Title denoting the date the track was exported. This is often the case when an artist puts out early previews of tracks.

WARNING:root:Encountered more than 2 chunks when splitting song into artist and title. song=Jafet Meza - Brother In Arms 2022-08-24
WARNING:root:Encountered more than 2 chunks when splitting song into artist and title. song=Jafet Meza - Brother In Arms 2022-08-28
WARNING:root:Encountered more than 2 chunks when splitting song into artist and title. song=Jafet Meza - Brother In Arms 2022-12-22 (End)
WARNING:root:Encountered more than 2 chunks when splitting song into artist and title. song=Jafet Meza - Brother In Arms 2022-12-22
WARNING:root:Encountered more than 2 chunks when splitting song into artist and title. song=Jafet Meza - In Amber Clad (2023-04-07)
WARNING:root:Encountered more than 2 chunks when splitting song into artist and title. song=Jafet Meza - In Amber Clad (2024-01-05)
WARNING:root:Encountered more than 2 chunks when splitting song into artist and title. song=Jafet Meza - In Amber Clad (2024-01-05, Gtr)
WARNING:root:Encountered more than 2 chunks when splitting song into artist and title. song=Jafet Meza - In Amber Clad (2024-01-05, Nogtr)
WARNING:root:Encountered more than 2 chunks when splitting song into artist and title. song=Jafet Meza - Leonidas (2024-01-08)
WARNING:root:Encountered more than 2 chunks when splitting song into artist and title. song=Jafet Meza - Leonidas (2024-01-09)
WARNING:root:Encountered more than 2 chunks when splitting song into artist and title. song=Jafet Meza - Leonidas (2024-01-12)
WARNING:root:Encountered more than 2 chunks when splitting song into artist and title. song=Jafet Meza - On A Pale Horrse 2022-08-22
WARNING:root:Encountered more than 2 chunks when splitting song into artist and title. song=Jafet Meza - On A Pale Horrse 2022-12-22
@BinToss BinToss changed the title Allow parsing '-' in Artist and Title data Split Artist, Title By Space-Surrounded Dash Mar 27, 2024
@radujica radujica self-assigned this Mar 29, 2024
@radujica
Copy link
Owner

This is such an obvious thing to do, no idea why I did not do it in the first place. Thank you for raising this!

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 a pull request may close this issue.

2 participants