PeerTube icon indicating copy to clipboard operation
PeerTube copied to clipboard

RSS feed sync does not fetch metadata

Open schmaker opened this issue 4 months ago • 10 comments

Describe the current behavior

I tried to sync podcast feed to my channel, but for some reason metadata are ignored. I did not found any report related to this.

Feed: http://anchor.fm/s/ff3dc4f8/podcast/rss

Image

Metadata are included in the feed: <title><![CDATA[Červenec, předvolební přehled]]></title>

<description><![CDATA[<p>Červenec působil občas jako ospalá oddychovka, pohodička, dovolené, než se to všechno rozjede, ale za oponou probíhala tvrdá jednání. Někde se podepisovala poslední spojenectví, jinde jednání krachovala, řešily se krize mezi partnery a někdo hodil ručník do ringu. Nebylo už na co čekat, kdo chtěl do voleb, musel do 29. července podat kandidátku.</p><p><br /></p><p>Poslechněte si červencové shrnutí, namluvila Katka.</p>]]></description>

<itunes:image href="https://d3t3ozftmdmh3i.cloudfront.net/staging/podcast_uploaded_nologo/42722382/42722382-1751753951450-ca9b029c4e3c6.jpg"/>

Steps to reproduce

No response

Describe the expected behavior

No response

Additional information

No response

schmaker avatar Aug 24 '25 12:08 schmaker

Yes, there is a problem with the RSS feed maps. Please fix it. Also: http://site.com/feeds/videos.xml?videoChannelId=1 Search engines cannot read the files. Webmasters are getting a read error.

aflamrip avatar Aug 24 '25 12:08 aflamrip

Thanks for the issue! The title metadata should be fixed by https://github.com/Chocobozzz/PeerTube/commit/cfe49b37ecd31bfe9ec9336b698d50a083152767

PeerTube relies on yt-dlp to import videos. But this tool doesn't return the description metadata for RSS feeds (can be checked using yt-dlp --dump-json 'http://anchor.fm/s/ff3dc4f8/podcast/rss'). I suggest creating an issue on their repository

@aflamrip Please open a dedicated issue

Chocobozzz avatar Aug 25 '25 08:08 Chocobozzz

@Chocobozzz I actually do see the required metadata included. See attached screenshot (sorry, had no better idea of highlighting them)

Image Image

schmaker avatar Aug 25 '25 18:08 schmaker

@schmaker Do you use yt-dlp? If yes can you provide the version?

Chocobozzz avatar Aug 26 '25 05:08 Chocobozzz

@Chocobozzz

/app/data/storage/bin# ./yt-dlp --version
2025.08.22

schmaker avatar Aug 26 '25 07:08 schmaker

Please enable debug logs on your instance and provide them when PeerTube tries to sync the remote channel.

Chocobozzz avatar Aug 26 '25 07:08 Chocobozzz

Sorry, it took some time to get into this :)

Stripped the logfile a little, hopefully it's enough like this https://privatebin.arch-linux.cz/?5daeffc7b14ef3fd#6KS14sb3LBAr78G2eNCQv1sYzupnfGQZs7w1MzKqA2nM

Edit: At this debug level I have no idea what I am looking at or what it's supposed to do

schmaker avatar Aug 26 '25 15:08 schmaker

Thank you. We correctly fetch the playlist information (http://anchor.fm/s/ff3dc4f8/podcast/rss) but when we process the individual file (https://anchor.fm/s/ff3dc4f8/podcast/play/105078591/https%3A%2F%2Fd3ctxlq1ktw2nl.cloudfront.net%2Fstaging%2F2025-6-5%2Fac8bacc1-225d-8ad0-0924-b570b5e9abdd.mp3#__youtubedl_smuggle=%7B%22force_videoid%22%3A+%220f52e5ce-21b0-4adb-be54-192803b5a91a%22%7D) yt-dlp can't guess the file context.

We must inject information we get from the playlist scrape in the video import job.

Chocobozzz avatar Aug 27 '25 06:08 Chocobozzz

Imported videos also does not have imported "Support" from channel settings. Is it okay to keep information here or should I open a new bugreport?

schmaker avatar Sep 02 '25 03:09 schmaker

Please create a dedicated issue!

Chocobozzz avatar Sep 02 '25 04:09 Chocobozzz