ben-xo / dir2cast

Turn a directory of MP3s into a podcast - automatically.
http://www.ben-xo.com/dir2cast
BSD 3-Clause "New" or "Revised" License
152 stars 20 forks source link

Strange strings getting used as <title> for episodes in Podcast XML #81

Open gityopr opened 1 month ago

gityopr commented 1 month ago

I've been wrestling with this trying to figure out how to facilitate testing and reproduction. Many files result in strange podcast episode names.

I have an audiobook file in my dir2cast podcast folder, the file has correct ID3 tags but the podcast episode produced by it has the title "End Credits". I've put that file on wetransfer here (the book is public domain): https://we.tl/t-yRIimxtSTo

According to MP3Tag and Musicbrainz Picard, the file has 7 fields with content: Title, Artist, Album, Year, Genre, Comment, and Album Artist. None of those fields contain the words "End Credits".

The XML file contains this for the relevant file:

<item>
<itunes:author>Murray Bookchin, Todd McGowan - afterword</itunes:author>
<itunes:duration>6:30:23</itunes:duration>
<itunes:summary>End Credits</itunes:summary>
<itunes:subtitle>Murray Bookchin, Todd McGowan - afterword</itunes:subtitle>
<itunes:image href="http://[website]/The%20Philosophy%20of%20Social%20Ecology.jpg"/>
<title>End Credits</title>
<link>http://[website]/The%20Philosophy%20of%20Social%20Ecology.m4b</link>
<pubDate>Thu, 04 Jul 2024 01:08:43 +0000</pubDate>
<description>
<![CDATA[ End Credits ]]>
</description>
<image>http://[website]/The%20Philosophy%20of%20Social%20Ecology.jpg</image>
<enclosure url="http://[website]/The%20Philosophy%20of%20Social%20Ecology.m4b" length="372016940" type="audio/mp4"/>
</item>

This M4B file does have chapters with chapter titles, but I'm not sure how to interact with them or tell Dir2Cast to ignore them. Where did the contents of and come from? Is there any way to override this?</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>