SamTV12345 / PodFetch

A sleek and efficient podcast downloader.
https://samtv12345.github.io/PodFetch
Apache License 2.0
347 stars 25 forks source link

Download of episodes (files+images) fails for specific podcast #492

Closed Torben2000 closed 9 months ago

Torben2000 commented 10 months ago

Describe the bug

For this podcast the download of all episode images fails. This also seems to cause the download of the files itself to fail. Example log entry:

2023-12-23T20:00:00 ℹ️ - Downloading podcast episode: Grimms Märchen & Verbrechen, Staffel 3  - Der 12. Fall: "Die drei Feldscherer" (1/3)
thread '<unnamed>' panicked at src/service/download_service.rs:63:14:
called `Result::unwrap()` on an `Err` value: reqwest::Error { kind: Builder, source: RelativeUrlWithoutBase }```

Additional info: In the database some fields of the eipsodes contain unusual content: image_url: ui/default.jpg (although correctly filled in podcast xml) duration: 0 (although filled in podcast xml) guid: URL of the file, e.g. https://mp3podcasthr-a.akamaihd.net/mp3/podcast/hr2_maerchen_verbrechen/hr2_maerchen_verbrechen_20231222_99775242.mp3 (this is really the value in the podcast xml, but still strange)

Playing the episodes directly via UI works. Also my other podcasts work.

Reproduction

Add specific podcast and try to download any episode

System Info

Running via Docker with Postgres and default config (just changed the folder on the host)

Used Package Manager

n/a

Validations

allthesebugsv2 commented 10 months ago

Have the same problem; most podcasts work fine but quite a few show the issue described here.

For example:

Common denominator is quite clearly good old HR.

SamTV12345 commented 10 months ago

I'll have a look at it tomorrow.

SamTV12345 commented 9 months ago

Sorry I didn't have time lately. This is fortunately fixed.

Torben2000 commented 9 months ago

Thanks a lot for the fix! It really improved the situation and mp3 files are downloaded. :-)

But I am really confused because the fix description suggests that the episodes do not contain images. That is not true for the podcast I tried out. All episodes have a correctly filled itunes:image tag (at least as far as I can see). So probably something else is still broken...

SamTV12345 commented 9 months ago

Oh sorry. I should have checked out your podcast. The other ones didn't have an image so I assumed it was fixed.

jpeeler commented 9 months ago

I don't want to add noise to this issue... but I'm getting the same error on all podcasts. I'm wondering if it's a network misconfiguration. Both the album art for each episode and the data (download to server) doesn't work.

I'm running in podman with this line:

podman run --rm -v /home/jpeeler/container-data/podfetch/podcasts:/app/podcasts:z -v /hom
e/jpeeler/container-data/podfetch/db:/app/db:z -it -p 8000:8000 samuel19982/podfetch:latest
SamTV12345 commented 9 months ago

Thanks for raising noise to this. This does seem like a problem with the library I am using.

SamTV12345 commented 9 months ago

I'll create a workaround tomorrow so you can continue using PodFetch and still have the original images locally.

SamTV12345 commented 9 months ago

@jpeeler @Torben2000 It should be fixed. Feel free to check if it also works for you. I used the podcast linked in the issue.

jpeeler commented 9 months ago

I added one of the podcasts above and it did seem to work. (Unrelated, perhaps the cloud download icon should be immediately updated upon automatic download. I clicked one while it was actually already downloading in the background due to the initial episodes being downloaded on a new feed.)

However, the feeds that I'm using do not work: https://feed.podbean.com/thebiblerecap/feed.xml https://feeds.simplecast.com/96_xs9dX

If it wasn't clear from my aside comment, these were both attempted on a fresh db.

Torben2000 commented 9 months ago

For me it works now as expected. Thanks a lot! 😄