jonnyboy/newznab — pull request #1 by aaearon (2012-12-31 00:55:24+00:00)
Title: more reliable "and on first loop"ing. 

1. I wanted update_predb to be ran more often (every 15min) because I want it to be up to date as possible on the site.

2. removespecial, update_parsing/cleanup looked to have been running every hour instead of every 2 hours

3. Using a variable and having the conditions look for i=1, which would represent the first loop and incrementing i on each run seems to give the 'and on first loop' condition to be more reliable. It never worked before this. Also added an echo to right before the optimize db run because optimize db doesnt return anything and as a user myself I'd like to know which step it is on. no echo could make a user think that the script is frozen, etc

This is my first delve into shell scripting and git so hope I am pulling this off right..