Skip to content

Commit

Permalink
filter 'official video' from remix fields
Browse files Browse the repository at this point in the history
  • Loading branch information
dogatech committed Oct 9, 2023
1 parent ec98bf6 commit 24d0f33
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions be/src/MusicManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ void removeOriginalMix(Song* updatedSong) {
if (boost::regex_search(updatedSong->getTitle(), origMixMatch, originalMixRegex, boost::match_extra)) {
updatedSong->setTitle(boost::regex_replace(updatedSong->getTitle(), originalMixRegex, ""));
}
boost::regex officialVideoRegex(" [(][Oo]fficial [Vv]ideo[)]");
boost::smatch officialVidMatch;
if (boost::regex_search(updatedSong->getTitle(), officialVidMatch, officialVideoRegex, boost::match_extra)) {
updatedSong->setTitle(boost::regex_replace(updatedSong->getTitle(), officialVideoRegex, ""));
}
}

void copyRemixer(Song* updatedSong) {
Expand Down
2 changes: 1 addition & 1 deletion fe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "SoulSifter",
"version": "1.5.1",
"description": "DJ & music organization app.",
"build": 2998,
"build": 2999,
"main": "main.js",
"scripts": {
"fe:build": "vite build",
Expand Down

0 comments on commit 24d0f33

Please sign in to comment.