-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(songParser): Refactor songParser to handle songs without cor…
…rect ID. This commit refactors the songParser module to handle songs that do not have a correct ID. It updates the parse function to check if the ID is unset and generate a unique ID if necessary. This change ensures that songs without a correct ID can still be parsed correctly. This refactor improves the flexibility and usability of the songParser module by allowing it to handle a wider range of song formats.
- Loading branch information
Showing
4 changed files
with
159 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
[title] | ||
My main title {alternative: { alternative 1; alternative 2 }, composer: {composer 1; composer 2}, writer: {writer 1; writer 2}, arranger: {arranger 1;arranger 2}, interpreter: {interpreter 1;interpreter 2}, band: {band 1;band 2}, key: {*}, tempo: {*}, tags: {tags 1; tags 2}, version: {ii}, genre: {genre 1; genre 2}, rcId: {*}, id: {*}, contentHash: {655954}} | ||
|
||
[sequence] | ||
v1,v2,v3,p,p2,p3,c,c2,c3,b,b2,b3 | ||
|
||
[v1] | ||
Row for v1 | ||
|
||
[v2] | ||
Row for v2 | ||
|
||
[v3] | ||
Row for v3 | ||
|
||
[p] | ||
Row for p | ||
|
||
[p2] | ||
Row for p2 | ||
|
||
[p3] | ||
Row for p3 | ||
|
||
[c] | ||
Row for c | ||
|
||
[c2] | ||
Row for c2 | ||
|
||
[c3] | ||
Row for c3 | ||
|
||
[b] | ||
Row for b | ||
|
||
[b2] | ||
Row for b2 | ||
|
||
[b3] | ||
Row for b3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters