Hello, Paul! On Jun 3, 2008, at 7:06 AM, Paul Rudkin 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). What do you think? Thomas _______________________________________________ gpodder-devel mailing list [email protected] https://lists.berlios.de/mailman/listinfo/gpodder-devel
