Added an etag bypass when updating the feeds.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user