The first public release of Fabled Minstrel #158

Merged
bvandeusen merged 256 commits from dev into main 2026-12-03 21:41:58 -05:00
2 changed files with 5 additions and 3 deletions
Showing only changes of commit b6454270b5 - Show all commits
+1 -1
View File
@@ -47,7 +47,7 @@ func checkNewPassword(w http.ResponseWriter, pw string) bool {
// tests lower it, since each hash at the default cost takes most of a second // tests lower it, since each hash at the default cost takes most of a second
// under the race detector, and check first that this default is at least // under the race detector, and check first that this default is at least
// bcrypt's. // bcrypt's.
var passwordCost = bcrypt.DefaultCost - 2 // DELIBERATE BREAK var passwordCost = bcrypt.DefaultCost
// hashPassword is the one place a password is hashed for storage. // hashPassword is the one place a password is hashed for storage.
func hashPassword(pw string) ([]byte, error) { func hashPassword(pw string) ([]byte, error) {
+4 -2
View File
@@ -49,7 +49,7 @@ func (e *Enricher) EnrichArtist(ctx context.Context, artistID pgtype.UUID, dataD
case "theaudiodb": case "theaudiodb":
return nil return nil
case "none": case "none":
if row.ArtistArtSourcesVersion <= currentVersion { // DELIBERATE BREAK if row.ArtistArtSourcesVersion == currentVersion {
return nil return nil
} }
if err := q.ClearArtistArtNone(ctx, artistID); err != nil { if err := q.ClearArtistArtNone(ctx, artistID); err != nil {
@@ -127,7 +127,9 @@ func (e *Enricher) recordArtistArt(ctx context.Context, artistID pgtype.UUID, th
if thumbPath != "" { if thumbPath != "" {
thumbArg = &thumbPath thumbArg = &thumbPath
} }
fanartArg = &fanartPath // DELIBERATE BREAK if fanartPath != "" {
fanartArg = &fanartPath
}
return pgx.BeginFunc(ctx, e.pool, func(tx pgx.Tx) error { return pgx.BeginFunc(ctx, e.pool, func(tx pgx.Tx) error {
if err := dbq.New(tx).SetArtistArtWithVersion(ctx, dbq.SetArtistArtWithVersionParams{ if err := dbq.New(tx).SetArtistArtWithVersion(ctx, dbq.SetArtistArtWithVersionParams{
ID: artistID, ID: artistID,