tsani / apollo

HTTP MPD integration for Labcoders Radio
MIT License
4 stars 0 forks source link

Automatic playlist enqueuing doesn't work in apollo-dl #14

Closed tsani closed 7 years ago

tsani commented 7 years ago

To reproduce: download something (new) with the apollo-dl; the enqueue will fail (I believe with a 4xx error, which is odd). Run apollo-dl again with the exact same arguments and the download will occur a second time and the enqueue will succeed.

tsani commented 7 years ago

Turns out it's a 500 error. MPD is raising an exception no such song when we try to enqueue. I believe this is due to a race condition. An explicit MPD database update once youtube-dl completes might fix this.

tsani commented 7 years ago

Looks like adding an explicit MPD database update after the youtube-dl fixed it.