Comment 2 for bug 620854

Revision history for this message
Adam Porter (alphapapa) wrote :

This happens to me when I put my laptop to sleep and come back many hours later. I think it's simply the song access URLs expiring.

One way to handle it is by using a HTTP HEAD request to get the status code for the URL. If it's a 403, reauthorize and get a new playlist. I have this working in this branch I've made but I don't know how to make it play automatically.

But I also see the is_still_valid() function. Maybe it's not calculating correctly, or is thinking the validity time is too long. This could also fix it, and avoid an extra HTTP request for every song play. But how do we know the true expire time? And we still need to handle the 403 errors if they happen.

Should we parse the Gstreamer error instead of using a HEAD request?

lp:~launchpad-alphapapa/pithos/620854