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, 02: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, 02: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, 03: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: 43,996
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use calibredb search to get the ids
kovidgoyal is offline   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 08:39 AM
How can I use calibre fetch google reader by Linux command Line? madawei Devices 4 06-26-2012 12:08 AM
start 'fetch news' process from the command prompt poldem Calibre 2 03-17-2011 11:35 AM
Feature: Command Line News Fetch? marcot Recipes 6 03-05-2011 06:26 AM
Delete news older than Stingo Calibre 2 12-25-2010 05:13 AM


All times are GMT -4. The time now is 02:04 PM.


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