Skip to content

Commit 24d0f33

Browse files
author
dogatech
committed
filter 'official video' from remix fields
1 parent ec98bf6 commit 24d0f33

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

be/src/MusicManager.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ void removeOriginalMix(Song* updatedSong) {
123123
if (boost::regex_search(updatedSong->getTitle(), origMixMatch, originalMixRegex, boost::match_extra)) {
124124
updatedSong->setTitle(boost::regex_replace(updatedSong->getTitle(), originalMixRegex, ""));
125125
}
126+
boost::regex officialVideoRegex(" [(][Oo]fficial [Vv]ideo[)]");
127+
boost::smatch officialVidMatch;
128+
if (boost::regex_search(updatedSong->getTitle(), officialVidMatch, officialVideoRegex, boost::match_extra)) {
129+
updatedSong->setTitle(boost::regex_replace(updatedSong->getTitle(), officialVideoRegex, ""));
130+
}
126131
}
127132

128133
void copyRemixer(Song* updatedSong) {

fe/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "SoulSifter",
33
"version": "1.5.1",
44
"description": "DJ & music organization app.",
5-
"build": 2998,
5+
"build": 2999,
66
"main": "main.js",
77
"scripts": {
88
"fe:build": "vite build",

0 commit comments

Comments
 (0)