Podlatch-Publisher icon indicating copy to clipboard operation
Podlatch-Publisher copied to clipboard

Spotify have problems with <enclosure> tag in feed rss.

Open wagsch opened this issue 3 years ago • 1 comments

Describe the bug Spotify can't listen the podcast because missing the "type" and "length" assets.

To Reproduce open xml with editor. look at the end of enclosure

Additional context Spotify Support responded to my email as follows:

_We had a look and can confirm that your podcast was successfully submitted. However, it seems that our system is having a hard time ingesting your podcast information due to an error in your tag.

XMLs are usually quite sensitive and should follows the format that's listed in section 5.17 of our spec doc https://assets.ctfassets.net/jtdj514wr91r/3khl5YaRusSuQ4a18amk38/8f35aecf398979cdfa6839ae29e79a46/Podcast_Delivery_Specification_v1.9.pdf.

Your tag must contains the following: url: the URL containing this episode’s audio file. type: the format of audio file (e.g. type=”audio/mpeg”) length: the length of the audio file must be in bytes_

wagsch avatar Jan 05 '23 10:01 wagsch

I was able to trace the error and fix it. With the fix

https://github.com/Podlatch/Podlatch-Publisher/blob/master/src/Controller/DefaultController.php

the rss field is now how it should be. I am surprised that this fix is missing in the "podlatch latest" version.

wagsch avatar Jan 09 '23 14:01 wagsch