Hello, Clark!
Clark Burbidge wrote:
Load this up and you'll see every Thursday's podcast name is mungered in
0.10.3+svn.
http://www.democracynow.org/podcast.xml
After some testing, I've found the issue - it's some wrong parsing
related to the "plain" content type of the <media:title> element and
some strange base64 decoding bug in Python's base64 module.
I've contacted the author (and CC'ed you) about this issue. Hopefully it
gets fixed soon in the feedparser module.
In the meantime, you can apply the enclosed patch to your feedparser.py
module, which makes things working again.
Good luck!
Thomas
--- feedparser.py.orig 2007-12-28 00:59:15.000000000 +0100
+++ feedparser.py 2007-12-28 00:59:46.000000000 +0100
@@ -563,7 +563,7 @@
def mapContentType(self, contentType):
contentType = contentType.lower()
- if contentType == 'text':
+ if contentType == 'text' or contentType == 'plain':
contentType = 'text/plain'
elif contentType == 'html':
contentType = 'text/html'
_______________________________________________
gpodder-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/gpodder-devel