Replace database, resolve all build-time errors

This commit is contained in:
viktorstrate
2020-11-28 21:29:31 +01:00
parent d3ebecc3b5
commit e42ac2436b
21 changed files with 402 additions and 511 deletions

View File

@@ -47,7 +47,7 @@ func hashSideCarFile(path *string) *string {
return &hash
}
func ScanMedia(tx *gorm.DB, mediaPath string, albumId uint, cache *AlbumScannerCache) (*models.Media, bool, error) {
func ScanMedia(tx *gorm.DB, mediaPath string, albumId int, cache *AlbumScannerCache) (*models.Media, bool, error) {
mediaName := path.Base(mediaPath)
// Check if media already exists