Playground site: airplay serve (ranking, artist history and forecast, what-if on chart situation, backtest summary) at idiotmaxxing.com/airplay via a Traefik file route; daily collection refreshes the forecasts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+4
-1
@@ -4,6 +4,7 @@
|
||||
//! airplay stats [--db data/airplay.db]
|
||||
//! airplay check [--db data/airplay.db] gaps, duplicates, DR cross-check, chart completeness
|
||||
//! airplay model panel | backtest | rank the first models (src/model)
|
||||
//! airplay serve [--addr 127.0.0.1:8790] [--prefix /airplay] the playground site (src/web.rs)
|
||||
//!
|
||||
//! --backfill fetches all history at once (every DR artist page, the whole Hitlisten archive);
|
||||
//! without it a run takes a bounded slice, which is what the daily timer does.
|
||||
@@ -19,6 +20,7 @@ mod model;
|
||||
mod musicbrainz;
|
||||
mod playlists;
|
||||
mod spotify;
|
||||
mod web;
|
||||
|
||||
use anyhow::Result;
|
||||
use chrono::Utc;
|
||||
@@ -40,8 +42,9 @@ fn main() -> Result<()> {
|
||||
Some("stats") => stats(&db),
|
||||
Some("check") => check::run(&db),
|
||||
Some("model") => model::run(&db, &args),
|
||||
Some("serve") => web::serve(&db_path, &args),
|
||||
_ => {
|
||||
eprintln!("usage: airplay collect [--db FILE] [--days 7] [--all-bauer] [--only dr|bauer|hitlisten|deezer|musicbrainz|spotify|playlists|nmf] [--backfill]\n airplay stats [--db FILE]\n airplay check [--db FILE]\n airplay model panel|backtest|rank");
|
||||
eprintln!("usage: airplay collect [--db FILE] [--days 7] [--all-bauer] [--only dr|bauer|hitlisten|deezer|musicbrainz|spotify|playlists|nmf] [--backfill]\n airplay stats [--db FILE]\n airplay check [--db FILE]\n airplay model panel|backtest|rank\n airplay serve [--addr HOST:PORT] [--prefix /airplay]");
|
||||
std::process::exit(2);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user