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
|
// and keeps the database's audio_files table in sync with what is actually
|
||||||
// on disk.
|
// 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.
|
// and re-downloads anything that is missing or whose checksum differs.
|
||||||
// Files present on disk but absent from the manifest are deleted, and the
|
// 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
|
// audio_files table is reconciled on every pass (and after each individual
|
||||||
@@ -68,7 +68,7 @@ public:
|
|||||||
|
|
||||||
static constexpr const char *AUDIO_BASE_URL =
|
static constexpr const char *AUDIO_BASE_URL =
|
||||||
"https://files.radiantwavetech.com/audio/";
|
"https://files.radiantwavetech.com/audio/";
|
||||||
static constexpr const char *MANIFEST_FILENAME = "new_checksums.md5";
|
static constexpr const char *MANIFEST_FILENAME = "checksums.md5";
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void run();
|
void run();
|
||||||
@@ -88,7 +88,7 @@ private:
|
|||||||
db::DatabaseManager *db_ = nullptr;
|
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
|
// starting with '#' are ignored. Lines that don't match a known format are
|
||||||
// skipped. Returns false if no valid entries were found.
|
// skipped. Returns false if no valid entries were found.
|
||||||
bool parseManifest(const std::string &text,
|
bool parseManifest(const std::string &text,
|
||||||
|
|||||||
Reference in New Issue
Block a user