Skip to content

Commit

Permalink
fix(song-info): fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
JellyBrick committed Sep 7, 2024
1 parent 2a66076 commit 5b004ee
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/providers/song-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,14 @@ const suffixesToRemove = [
/\s*vevo$/i,

// Video titles
/\s*[(|\[]official(.*?)[)|\]]/i, // (Official Music Video), [Official Visualizer], etc...
/\s*[(|\[]((lyrics?|visualizer|audio)\s*(video)?)[)|\]]/i,
/\s*[(|\[](performance video)[)|\]]/i,
/\s*[(|\[](clip official)[)|\]]/i,
/\s*[(|\[](video version)[)|\]]/i,
/\s*[(|\[](HD|HQ)\s*?(?:audio)?[)|\]]$/i,
/\s*[(|\[](live)[)|\]]$/i,
/\s*[(|\[]4K\s*?(?:upgrade)?[)|\]]$/i,
/\s*[(|[]official(.*?)[)|\]]/i, // (Official Music Video), [Official Visualizer], etc...
/\s*[(|[]((lyrics?|visualizer|audio)\s*(video)?)[)|\]]/i,
/\s*[(|[](performance video)[)|\]]/i,
/\s*[(|[](clip official)[)|\]]/i,
/\s*[(|[](video version)[)|\]]/i,
/\s*[(|[](HD|HQ)\s*?(?:audio)?[)|\]]$/i,
/\s*[(|[](live)[)|\]]$/i,
/\s*[(|[]4K\s*?(?:upgrade)?[)|\]]$/i,
];

export function cleanupName(name: string): string {
Expand Down

0 comments on commit 5b004ee

Please sign in to comment.