mirror of
https://github.com/navidrome/navidrome.git
synced 2026-01-04 04:48:08 -05:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8b93962fad | ||
|
|
b129cae0d8 | ||
|
|
2400e4f60d |
@@ -27,15 +27,16 @@ func upChangeImageFilesListSeparator(tx *sql.Tx) error {
|
||||
return err
|
||||
}
|
||||
|
||||
var id, imageFiles string
|
||||
var id string
|
||||
var imageFiles sql.NullString
|
||||
for rows.Next() {
|
||||
err = rows.Scan(&id, &imageFiles)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
files := upChangeImageFilesListSeparatorDirs(imageFiles)
|
||||
if files == imageFiles {
|
||||
files := upChangeImageFilesListSeparatorDirs(imageFiles.String)
|
||||
if files == imageFiles.String {
|
||||
continue
|
||||
}
|
||||
_, err = stmt.Exec(files, id)
|
||||
|
||||
@@ -10,9 +10,14 @@ const useStyle = makeStyles({
|
||||
pointerEvents: (props) => props.single && 'none',
|
||||
opacity: (props) => props.single && 0.65,
|
||||
},
|
||||
'& .react-jinke-music-player-mobile': {
|
||||
maxWidth: 768,
|
||||
margin: 'auto',
|
||||
'@media (min-width: 768px)': {
|
||||
'& .react-jinke-music-player-mobile > div': {
|
||||
width: 768,
|
||||
margin: 'auto',
|
||||
},
|
||||
'& .react-jinke-music-player-mobile-cover': {
|
||||
width: 'auto !important',
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
@@ -69,7 +69,8 @@ const Player = () => {
|
||||
context === null &&
|
||||
audioInstance &&
|
||||
config.enableReplayGain &&
|
||||
'AudioContext' in window
|
||||
'AudioContext' in window &&
|
||||
(gainInfo.gainMode === 'album' || gainInfo.gainMode === 'track')
|
||||
) {
|
||||
const ctx = new AudioContext()
|
||||
// we need this to support radios in firefox
|
||||
@@ -83,7 +84,7 @@ const Player = () => {
|
||||
setContext(ctx)
|
||||
setGainNode(gain)
|
||||
}
|
||||
}, [audioInstance, context])
|
||||
}, [audioInstance, context, gainInfo.gainMode])
|
||||
|
||||
useEffect(() => {
|
||||
if (gainNode) {
|
||||
|
||||
Reference in New Issue
Block a user