-
Notifications
You must be signed in to change notification settings - Fork 14
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
Podcast episodes are not completely downloading #14
Comments
same thing happening for e.g. this podcast: |
It is happening to this podcast too: https://open.spotify.com/show/0znjxREK2kgs1iL0i7W46V |
I'll have a look at these examples to see what is going on, the problem can found somewhere in librespot-python or within spodcast but since spodcast seems to be one of the few tools using the netcast/podcast endpoints it is not surprising for these problems to show up here. |
A quick fix that seems to work for me is to set the chunk size to 1 - the download gets quite slow but it seems to download all chunks and therefore the whole episode |
The file size reported by librespot-python - and I assume Spotify - seems to be unreliable for some shows. I removed the dependency on this reported size, this works without loosing the chunked download functionality. |
Give the new release (0.5.2) a try to see if it works for you, it Works for Me™ so I assume it will. |
Can confirm, works for me as well - thy for the fix! |
Thank you for the fix!! Can you can update the docker image too? Thy again. |
@heywoodlh Your turn... |
Done, image tag has been updated: 0.5.2 |
Thanks |
I noticed something weird: When fetching an entire Podcast (https://open.spotify.com/show/3JgH71EJblvCEXAca1XRsT), most of the episodes are completely downloaded. But a few of them are missing some chunks. I used this script to process the log (--log-level debug) generated by spodcast. It outputs all episodes with missing chunks. with open("nur-verheiratet.log") as f:
last_fileid = None
last_line = None
for line in f.readlines():
if line.startswith("DEBUG:Librespot:Session:Chunk"):
file_id = line.split()[-1]
if file_id != last_fileid:
if last_line != None:
a, b = last_line.split()[1].split("/")
if a != b:
print(last_line)
last_fileid = file_id
last_line = line On my machine they are
$ spodcast --version
spodcast 0.5.2 |
I noticed that for some podcasts the end of the episodes are missing.
For example I downloaded this show: https://open.spotify.com/show/5JYitG4bOM3sVmAQRdX1Na and for every episode the last minute or so is missing in the downloaded file.
After running the debug output I noticed that Librespot stopped downloading before all chunks were completed:
This has to be some issues with certain shows, as either all of the episodes of a show are missing the last minute or they are all fine.
An example for a working podcast would be:
https://open.spotify.com/show/7BTOsF2boKmlYr76BelijW
I have no clue what the issue could be and am open for any suggestion!
The text was updated successfully, but these errors were encountered: