Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Playback randomly interrupted on Apple Music #250

Open
knods3k opened this issue Jan 17, 2025 · 6 comments
Open

Playback randomly interrupted on Apple Music #250

knods3k opened this issue Jan 17, 2025 · 6 comments
Assignees
Labels

Comments

@knods3k
Copy link

knods3k commented Jan 17, 2025

Describe the bug
Audio tracks cut short during playback with Apple Music.
Playing back a track will skip to the end at a specific, consistent part of the track.

To Reproduce
Download any album with bandcamp-dl -fegr URL and play back with Apple Music.

Expected behavior
Audio tracks should play until they are over and randomly skip ahead with any player.

Logs
The download process works fine, no errors or warnings are displayed.

Desktop (please complete the following information):

  • OS: Mac OS
  • Version: Seqauia 15.2
  • Python Version 3.12.8

Additional context
It's a little bit difficult to troubleshoot this, because you need to actually listen to the music. It consistently happens at the same part of an affected track. Notably, if you skip PAST the point where it usually interrupts, it plays back normally.

Even worse, it only happens with Apple Music and not with VLC. Other files that I got from somewhere else playback normally with Apple Music. So it seems to be some interaction between bandcamp-dl and Apple Music.

Perhaps the effort to identify this is not justified, because it does not affect many users. I thought I'd raise the issue anyway, so it's documented.

@Evolution0
Copy link
Collaborator

Would be interesting to see if this differs between a track downloaded with bandcamp-dl and the original (when a free download option is available)

@knods3k
Copy link
Author

knods3k commented Jan 20, 2025

I will try to investigate and report back. As I said, this may take some time because it requires actually listen to entire tracks start to finish.

This is just a hunch, but I feel like the albums that I downloaded (via bandcamp-dl) that are free anyway don't have the issue and it only arises with albums that are "paywalled". Might be bogus, though.

@knods3k
Copy link
Author

knods3k commented Jan 21, 2025

I've listened to one album start to finish, that was downloaded via bandcamp-dl which I also could have download for free from bandcamp directly. The bug does not occur.

In the next step, for an album where the bug does occur, I will download it several times via bandcamp-dl to see if the bug occurs at the same time for every downloaded instance, or occurs more unpredictably.

@knods3k
Copy link
Author

knods3k commented Jan 21, 2025

I can confirm now, that the bug is NOT consistent across downloads.
Downloading the Album again using bandcamp-dl does not place the "random skip" at the same time.

I think this will be impossible to pin down.

@Evolution0
Copy link
Collaborator

Evolution0 commented Jan 22, 2025

Would be handy if you had two separate album copies (or at least a track) proven to have the issue so I can compare them on a deeper level. (Obviously of something available for free to avoid issues sending files)

Because if for example the file is somehow getting molested the hash will change, and I can't be sure offhand but the file hashes may be somewhere in the pagedata to compare it to during the download process (so if it doesn't match, redownload)

Though ideally I would like to find out if files are getting corrupted somewhere.

@knods3k
Copy link
Author

knods3k commented Jan 22, 2025

I do, however only for paid tracks. Free ones seem to work so far.
How should I send them to you? Don't wanna post them publicly due to copyright.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants