Skip to content

Commit

Permalink
Back out aggresive, overly optimistic breaking.
Browse files Browse the repository at this point in the history
  • Loading branch information
troysandal committed Dec 19, 2023
1 parent af19eaa commit 11811aa
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,14 @@ export function buildTags(playlist: Playlist): string[] {
.map((track) => track.collectionEntry.artist)
.map((artist) => artist.split(','))
.flat()
.map((artist) => artist.replace(/\(.*$/g, ''))
.map((artist) => artist.split('&'))
.flat()

// Breaks on prefix tags like (U)
//.map((artist) => artist.replace(/\(.*$/g, ''))

// Breaks on Eli & Fur
//.map((artist) => artist.split('&'))
//.flat()

.map((artist) => artist.trim().replace(/\s+/g, ''))
.map((artist) => `#${artist.toLocaleLowerCase()}`)

Expand Down

0 comments on commit 11811aa

Please sign in to comment.