d2ed22d229
More precisely, the MediaLibrary matches up files based on their file hash. If it finds a files that matches an already known entry it doesn't create a new entry, only updates the file path to the found file in the existing entry. This is useful if files get re-organized or if an existing database is loaded at an entirely new library root that contains mostly the same files (relocating the library to another computer for example). This method preserves information added to the database that was not originally present in the ID3 tags in the media files (custom tags, name corrections, etc). |
||
---|---|---|
.. | ||
src/main | ||
build.gradle | ||
database.json | ||
README.md | ||
test.groovy |
Database
Uses [db-migrate][http://db-migrate.readthedocs.org/en/latest/] to manage
database migrations. Migration scripts live if src/main/db
.
Database environment configuration lives in database.json
.
To initialize a new database do:
db-migrate -m src/main/db up