[gpodder-devel] [PATCH] GUID matching.

  • From: jon at sd-6.org (Jon)
  • Date: Fri, 06 Apr 2007 11:49:28 -0500


Thomas Perl wrote:
> Hello, Jon!
> 
> On Fri, 2007-04-06 at 00:21 -0500, Jon wrote:
>> I've got a strange issue with one of my feeds.  If I download a
>> podcast and check it the next day.  The downloaded one is at the
>> bottom of the list.  It is also near the top of the list, where it
>> would be expected to be but appears as a new podcast to be downloaded.
>> For some reason it is not associating the downloaded podcast with the
>> one in the list.
> gPodder defines episodes as unique by their download URL, because the
> same URL will always retrieve the same content. The problem with your
> feed can have two causes I can think of from the top of my head:
> 
> * Session ID is passed through the URL
> * Load balancing changes the URL on every update (mirrors)

I'm not programmer so be gentle.  This is a patch that does guid
matching instead of url matching.  IIRC, the guid is part of the
standard/protocol.  There is a current thread talking about gpodder
choking on items with no url so I can only assume the same will happen
if there is not guid with this patch.

As a side effect, this particular feed has 3 podcasts per day, before
they seemed be downloaded and synced to the ipod in random order.  With
this patch they are displayed and synced in proper order.


This of course breaks previous downloads but I've only got three feeds
and I keep them clean.

> 
> Thanks,
> Thomas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: guid.diff
Type: text/x-patch
Size: 18251 bytes
Desc: not available
URL: 
<https://lists.berlios.de/pipermail/gpodder-devel/attachments/20070406/0414826e/attachment.bin>

Other related posts: