Server is scheduled to generate this file nightly
This commit is contained in:
@@ -37,7 +37,7 @@ struct AudioManifestEntry {
|
||||
// and keeps the database's audio_files table in sync with what is actually
|
||||
// on disk.
|
||||
//
|
||||
// Fetches new_checksums.md5, compares each entry against the local file's MD5,
|
||||
// Fetches checksums.md5, compares each entry against the local file's MD5,
|
||||
// and re-downloads anything that is missing or whose checksum differs.
|
||||
// Files present on disk but absent from the manifest are deleted, and the
|
||||
// audio_files table is reconciled on every pass (and after each individual
|
||||
@@ -68,7 +68,7 @@ public:
|
||||
|
||||
static constexpr const char *AUDIO_BASE_URL =
|
||||
"https://files.radiantwavetech.com/audio/";
|
||||
static constexpr const char *MANIFEST_FILENAME = "new_checksums.md5";
|
||||
static constexpr const char *MANIFEST_FILENAME = "checksums.md5";
|
||||
|
||||
private:
|
||||
void run();
|
||||
@@ -88,7 +88,7 @@ private:
|
||||
db::DatabaseManager *db_ = nullptr;
|
||||
};
|
||||
|
||||
// Parses new_checksums.md5 manifest text into entries. Blank lines and lines
|
||||
// Parses checksums.md5 manifest text into entries. Blank lines and lines
|
||||
// starting with '#' are ignored. Lines that don't match a known format are
|
||||
// skipped. Returns false if no valid entries were found.
|
||||
bool parseManifest(const std::string &text,
|
||||
|
||||
Reference in New Issue
Block a user