Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 02-25-2011, 06:21 PM   #1
spedinfargo
Zealot
spedinfargo knows more than wikipediaspedinfargo knows more than wikipediaspedinfargo knows more than wikipediaspedinfargo knows more than wikipediaspedinfargo knows more than wikipediaspedinfargo knows more than wikipediaspedinfargo knows more than wikipediaspedinfargo knows more than wikipediaspedinfargo knows more than wikipediaspedinfargo knows more than wikipediaspedinfargo knows more than wikipedia
 
Posts: 120
Karma: 47540
Join Date: Nov 2010
Device: none
Patch: Ticket 9168 (Allow maximum number of copies (issues) per recipe)

As described in this thread: http://www.mobileread.com/forums/sho...d.php?t=122336

I think a great feature for recipes would be to allow you to define at the recipe level how many copies you want to keep of a particular recipe. For daily newspapers, it might only be worthwhile to keep one or two day's copies around. For some magazines, you might want to set up a monthly download and then keep five or more around.

I've attached a patch that would achieve this. It adds a "max issues" variable to the main scheduler page and then saves it in the recipes XML file. It should be pretty non-intrusive and upgrade-friendly - if the element doesn't exist in the XML node, it will default to 0 and add that value it when the user touches the recipe. A value of 0 means no change from current functionality (i.e. it disables the new feature and keeps the maximum number of copies).

The functionality depends on the recipe title being saved as tag (I think that's enabled by default and unique) and of course the "delete news older than x days" would still be in effect (and have priority).
spedinfargo is offline   Reply With Quote
Old 02-25-2011, 06:23 PM   #2
spedinfargo
Zealot
spedinfargo knows more than wikipediaspedinfargo knows more than wikipediaspedinfargo knows more than wikipediaspedinfargo knows more than wikipediaspedinfargo knows more than wikipediaspedinfargo knows more than wikipediaspedinfargo knows more than wikipediaspedinfargo knows more than wikipediaspedinfargo knows more than wikipediaspedinfargo knows more than wikipediaspedinfargo knows more than wikipedia
 
Posts: 120
Karma: 47540
Join Date: Nov 2010
Device: none
By the way, setting up the source repository and getting started in debug mode was hands-down the best experience I've ever had in a community-led development effort. I was up in running in no time and it was pretty painless to check in my changes...
spedinfargo is offline   Reply With Quote
Old 02-25-2011, 06:26 PM   #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: 26,433
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by spedinfargo View Post
By the way, setting up the source repository and getting started in debug mode was hands-down the best experience I've ever had in a community-led development effort. I was up in running in no time and it was pretty painless to check in my changes...
That's one of the advantages of using a dynamic language like Python. I'll review your patch when I have a moment.

Any reason you chose to use number of issues rather than say, number of days?
kovidgoyal is online now   Reply With Quote
Old 02-25-2011, 11:35 PM   #4
spedinfargo
Zealot
spedinfargo knows more than wikipediaspedinfargo knows more than wikipediaspedinfargo knows more than wikipediaspedinfargo knows more than wikipediaspedinfargo knows more than wikipediaspedinfargo knows more than wikipediaspedinfargo knows more than wikipediaspedinfargo knows more than wikipediaspedinfargo knows more than wikipediaspedinfargo knows more than wikipediaspedinfargo knows more than wikipedia
 
Posts: 120
Karma: 47540
Join Date: Nov 2010
Device: none
Good question - I think it's probably just the way the idea popped into my head. I think mktgu explains the "business case" a little better (in the other thread).

It would probably be easy to make it a radio button and have "days" or "issues"... Especially since the code is already there to compare dates... If I had to vote between the two, though, I think issues would be better... more intuitive to multiply issues by "download every x days" to figure out how many days you're keeping than divide to figure out how many issues you'd end up (if that makes any sense).
spedinfargo is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Maximum number of books? mdibella Library Management 7 01-24-2011 10:26 PM
Maximum number of ebooks in Calibre? Bullwinkle Calibre 5 09-20-2010 04:13 PM
Ticket #5649 crutledge Calibre 1 06-02-2010 01:45 PM
Maximum number of books on KOBO? usern Kobo Reader 19 05-20-2010 12:08 AM
How do I open a ticket? AlexBell Calibre 2 07-16-2009 06:15 AM


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


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