Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 12-02-2019, 03:33 AM   #1
Aoxd3p4
Junior Member
Aoxd3p4 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2019
Device: kindle voyage
Thumbs up How to set [fetch news]-[delete downloaded nenws older than * days] with command line

I've got calibre server run with Command Line Interface in my VPS. And I add books from smart-phone-ereader that support opds.

So I write a crontab task to fetch news and automatic add them to calibredb.

Code:
re_path=/home/xxxx/calibre/

cd $re_path
for name in `ls newstoday.recipe|awk -F '.' '{print $1}'`
do
        echo "fetch news $name"
        ebook-convert ${name}.recipe .epub
        sleep 3
        echo "add $name to CalibreDB"
        calibredb add ${name}.epub
done
so everyday there would be more and more old news books, how can I make them deleted maybe every 6 days?

or How to set [fetch news]-[delete downloaded nenws older than * days] --the feature from GUI with command line


Thank you guys
Aoxd3p4 is offline   Reply With Quote
Old 12-02-2019, 03:38 AM   #2
Aoxd3p4
Junior Member
Aoxd3p4 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2019
Device: kindle voyage
how can I delete a specific book in command line interface ?

the document says that
Code:
calibredb remove ids
but I don't know how to get the ids of a specific book
Aoxd3p4 is offline   Reply With Quote
Advert
Old 12-02-2019, 04:04 AM   #3
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,569
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use calibredb search to get the ids
kovidgoyal is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete older news than.. from device? forestblue Calibre 3 01-13-2019 09:39 AM
How can I use calibre fetch google reader by Linux command Line? madawei Devices 4 06-26-2012 01:08 AM
start 'fetch news' process from the command prompt poldem Calibre 2 03-17-2011 12:35 PM
Feature: Command Line News Fetch? marcot Recipes 6 03-05-2011 07:26 AM
Delete news older than Stingo Calibre 2 12-25-2010 06:13 AM


All times are GMT -4. The time now is 11:36 PM.


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