Skip to content

Commit

Permalink
fix: playlist authors including year
Browse files Browse the repository at this point in the history
  • Loading branch information
vixalien committed May 4, 2023
1 parent 4bd4936 commit e39fc70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mixins/playlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ export async function get_playlist(
description: jo(header, DESCRIPTION),
type: run_count > 0 ? j(header, SUBTITLE) : null,
authors: run_count > 1
? parse_song_artists_runs(header.subtitle.runs.slice(2))
? parse_song_artists_runs(
header.subtitle.runs.slice(2, run_count >= 5 ? -2 : undefined),
)
: [],
year: run_count === 5 ? j(header, SUBTITLE3) : null,
trackCount: song_count,
Expand Down

0 comments on commit e39fc70

Please sign in to comment.