Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 09-25-2024, 05:28 AM   #1
mremond
Junior Member
mremond began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2024
Device: Kindle Paperwhite & reMarkable 2
Ignoring feed items with empty pubDate

Hello,

I am trying to build a new source for Télérama french magazine for subscribers.

I find that there is useless items they put it all their feeds. The common point is that all those items have an empty pubDate tag.

Is there a way to filter out those items based on that criteria ?

From the parse_feeds() method, it seems that the date is already inherited at that point by the global feed level pubDate.

Any idea ?

Thanks !
mremond is offline   Reply With Quote
Old 09-26-2024, 04:09 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,551
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You can always re-implement parse_feeds() from the base class in your sub-class and do whatever you like with the feeds. Looka t the base class impementation and you should have a good idea of what to do.
kovidgoyal is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove the end of feed items title Tigerix Recipes 2 05-19-2012 09:41 AM
Empty news feed bubak Recipes 4 06-14-2011 08:38 PM
Tegan: re already downloaded feed items Starson17 Recipes 4 01-20-2011 04:07 PM
Ignore empty RSS feed urls miwie Recipes 2 11-18-2010 02:58 PM
how to remove already pulled feed items? MarcDK Calibre 2 11-12-2010 10:30 AM


All times are GMT -4. The time now is 03:47 PM.


MobileRead.com is a privately owned, operated and funded community.