akhilrex / podgrab

A self-hosted podcast manager/downloader/archiver tool to download podcast episodes as soon as they become live with an integrated player.
GNU General Public License v3.0
1.62k stars 88 forks source link

In podgrab feeds, Video is typed as 'audio/mpeg' #228

Open lyspooner opened 2 years ago

lyspooner commented 2 years ago

How to replicate the problem:

Podgrab version 2022.04.25

Running in Docker.

  1. Add a video feed like, https://odysee.com/$/rss/@veritasium:f
  2. Capture podgrab feed for this Podcast.
  3. Add this to a podcast manager, in my case, Kodi's RSS Podcasts addon,
  4. Try to play the video.

Expected behavior:

Video plays

Actual behavior

Only audio plays.

Suspected cause:

In the xml file I see this line <enclosure url="http://ip:port/podcastitems/41c9c2d5-71c4-4326-a72b-118b4837acd2/file" length="0" type="audio/mpeg"/>

When the uri is used directly it is played as a video. http://ip:port/podcastitems/41c9c2d5-71c4-4326-a72b-118b4837acd2/file So the uri is fine.

The original feed contained this line: <enclosure url="https://player.odycdn.com/api/v3/streams/free/the-scientist-who-killed-millions-and/50cce54142e275f3401e58fa0bb9cf52e65c8326/0b07dd.mp4" length="501323517" type="video/mp4"/>

The original feed had the file typed as video and the podgrab feed types the file as audio. I suspect my problem will be solved if the type is corrected to video.