-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Error loading list of podcasts when some of the files are missing/corrupt #316
Comments
Hey, appreciate your looking into this and all the work you're doing to keep airsonic up to date! I've believe I've updated to that PR properly - the about page says commit dbcfbe. Sadly, the error is the same in Dsub: I've tried to do a bit more digging to figure out what's going on:
|
I've also made a copy of my airsonic db, and used HSQL to get a list of the entries for the affected podcast here (I stripped out the API key although I'm pretty sure it's useless now anyways). I've considered trying to remove the lines altogether in the main db, but trying to mess with airsonic dbs in the past has never ended well for me... Anyway, you can see that a bunch of the episodes say they have a "bytes downloaded" of 23, where presumably they just downloaded an error message. There were never any files for those podcasts as far as I can tell, even though they have a media_file_id. |
@K3zter |
Yes, that fixed it! :) Thanks |
What happened?
I am assuming this is a new issue, as I recently updated to the latest snapshot - however it may be something else weird has changed. My situation is a bit of an edge case, however so it may be hard to replicate. I'll try to explain:
I have an old podcast that I downloaded all the episodes of and have been listening to, however at some point the feed stopped working properly - it would update with new episode titles but fail to download a file. So, in the database it has a list of episodes but they are unable to play. However, the OLD episodes still play just fine.
I listen to these in Dsub, which presumably makes an API request for the list of files when you click on the podcast. Up until recently, these dud podcasts would just show as 0:00 length.. but now instead I can't access the page at all and I get the following error:
"Server error: Cannot invoke "java.lang.Double.doubleValue()" because the return value of "org.airsonic.player.domain.MediaFile.getDuration()" is null
So I'm assuming where previously it would accept a null value and return a length of 0, now it's throwing an error instead.
Steps to reproduce
Not sure if this can be easily reproduced as how I arrived in this situation was a bit odd!
Version
11.1.x (Edge)
Version Detail
No response
Operating System
Docker container on Ubuntu
Java Version
17.0.5
Database
Other
DB Detail
Built-in
Configuration paramter
N/A
Proxy Server
No response
client detail
No response
language
None
Relevant log output
No response
The text was updated successfully, but these errors were encountered: