Bug 183329

Summary: JJ: podcast feed pudates are not parsed correctly
Product: [Applications] amarok Reporter: Mathias Panzenböck <grosser.meister.morti>
Component: PodcastAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bart.cerneels
Priority: NOR    
Version: 2.0.1   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Mathias Panzenböck 2009-02-05 17:43:39 UTC
Version:           2.0.1 (using 4.2.00 (KDE 4.2.0), 4.2.0-7.fc10 Fedora)
Compiler:          gcc
OS:                Linux (x86_64) release 2.6.27.12-170.2.5.fc10.x86_64

The entries of a podcast feed are sorted alphabetically instead of by date. Example feed: http://chaosradio.ccc.de/chaosradio_express-latest.rss

This did work with amarok 1.
Comment 1 Bart Cerneels 2009-02-05 19:57:43 UTC
Looks like this feed doesn't use the correct format for pubdate. I do some very simple parsing of the pubdate that can not handle this.

The code is in PodcastReader.cpp:294 perhaps someone can take a look at it to help solve this.
Comment 2 Bart Cerneels 2009-02-05 20:07:30 UTC

*** This bug has been marked as a duplicate of bug 181338 ***
Comment 3 Mathias Panzenböck 2009-02-05 21:44:34 UTC
The owner of the feed says he generates a standard compliant date formate. He twittered:
RFC822 sagt: date-time = [ day "," ] date time
Comment 4 Bart Cerneels 2009-02-05 22:14:29 UTC
Yup, my bad. I though implementing that was to easy.
I will attempt a quick bugfix, but this definitely could still fail very easily.

The Junior Job remains open. Sorting should be done on either pubdate or order of episodes in the feed if not available.

Bart