Closed mantou132 closed 3 years ago
const removeSongFeat = (s: string) => { return s.replace(/\(?(feat|with)\.?\s.*\)?$/i, '').trim(); };
In order to improve the fault tolerance rate of song search, cooperative singers will be removed before searching, but some song names will be removed as cooperative singers, such as: "Boy With Luv (Feat. Halsey)", "with you"
https://music.163.com/#/search/m/?s=Intentions%20(feat.%20Quavo)&type=1
https://music.163.com/#/search/m/?s=Intentions%20&type=1
In order to improve the fault tolerance rate of song search, cooperative singers will be removed before searching, but some song names will be removed as cooperative singers, such as: "Boy With Luv (Feat. Halsey)", "with you"