Added an etag bypass when updating the feeds.

This commit is contained in:
Jordan Petridis
2017-10-05 18:29:37 +03:00
parent 3b4acf9fc3
commit cbc0692482
2 changed files with 31 additions and 29 deletions
+2 -1
View File
@@ -17,6 +17,7 @@ use hammond_data::index_feed;
use hammond_downloader::downloader;
// Should probably had made an Enum instead.
// TODO: Refactor to enum, add --force for update
#[derive(StructOpt, Debug)]
#[structopt(name = "example", about = "An example of StructOpt usage.")]
struct Opt {
@@ -49,7 +50,7 @@ fn run() -> Result<()> {
if args.up {
let db = hammond_data::establish_connection();
index_feed::index_loop(db)?;
index_feed::index_loop(db, false)?;
}
if args.dl >= 0 {