Skip to content

Duplicates showing up in playlist #244

Discussion options

You must be logged in to vote

When tracks are different ids and the same names, dedupTracks function looks at duration. If the offset is too much, the tracks are considered different. For example, monster has 3:56 and 3:53, meateater has 4:25 and 4:22.

In order to remove such cases, the function has the second argument offsetDurationMs (by default 2000 ms). As you can see, the tracks have more than 2 seconds offset. Thus they hold on.

Just add some offset:

Filter.dedupTracks(play_hist, 5000)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hahahahywel
Comment options

Answer selected by Chimildic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants