Hi Thomas

On Tue, 2008-06-03 at 11:15 +0200, Thomas Perl wrote:
> > Doesn't the feed contain a date/time stamp?  Could we not simply  
> > prefix
> > each file with that?  In the case of the The Merlin Show you would end
> > up with something like:-
> >
> >     20080314-episode.mp4
> >
> > Trying to keep track of things will be tricky so whatever solution we
> > come up with needs to be as automated as possible.
> 
> Yes, this works - as long as the corresponding feed contains a  
> pubDate timestamp (at least one that is parseable, so we can turn it  
> into YYYYMMDD).
> 
> A new idea would be to simply keep a dictionary that maps URLs to  
> file names and when we get a given file name, we check if this value  
> is already in the dictionary - if it is not, we simply add it to the  
> dictionary. If it is, we append something like "-1" to the file name  
> and check again, etc, etc.. This would make things more safe in case  
> something changes (the pubDate could theoretically change in some  
> blog software if the article is edited).
As the date is not reliable as you pointed out, I think this leaves us
with very little option but to implement the dictionary solution.

I don't mind giving this a go if there is no rush! ;)

I haven't looked but is the code you used to test the file naming in
SVN?

Paul


_______________________________________________
gpodder-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/gpodder-devel

Reply via email to