mirror of
https://git.stupid.fish/teidesu/scripts.git
synced 2025-10-13 16:21:22 +11:00
chore: update public repo
This commit is contained in:
parent
ccc5f98f34
commit
728699b3ec
8 changed files with 1990 additions and 95 deletions
22
scripts/infra/navidrome/find-untagged-mbz.ts
Normal file
22
scripts/infra/navidrome/find-untagged-mbz.ts
Normal file
|
@ -0,0 +1,22 @@
|
|||
import { fetchSongsIter } from '../../../utils/navidrome.ts'
|
||||
|
||||
const IGNORE_PATHS = [
|
||||
's3/Electronic/_Compilations/keygenjukebox/',
|
||||
]
|
||||
|
||||
let count = 0
|
||||
for await (const song of fetchSongsIter()) {
|
||||
if (IGNORE_PATHS.some(path => song.path.startsWith(path))) {
|
||||
continue
|
||||
}
|
||||
|
||||
for (const field of ['mbzRecordingID', 'mbzReleaseTrackId', 'mbzAlbumId', 'mbzReleaseGroupId']) {
|
||||
if (!song[field]) {
|
||||
console.log('found missing %s: %s - %s (%s)', field, song.artist, song.title, song.path)
|
||||
count++
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
console.log('found %d tracks without mbz ids', count)
|
21
scripts/infra/navidrome/find-untagged-multiartists.ts
Normal file
21
scripts/infra/navidrome/find-untagged-multiartists.ts
Normal file
|
@ -0,0 +1,21 @@
|
|||
import { fetchSongsIter } from '../../../utils/navidrome.ts'
|
||||
|
||||
const WHITELIST_ARTISTS = new Set([
|
||||
'betwixt & between',
|
||||
'10th avenue cafe/tak',
|
||||
'overmind and potatoes',
|
||||
])
|
||||
|
||||
let count = 0
|
||||
for await (const song of fetchSongsIter()) {
|
||||
if (
|
||||
(!song.participants?.artist || song.participants.artist.length === 1)
|
||||
&& song.artist.match(/, | and | & |\/| x | feat\. /i)
|
||||
&& !WHITELIST_ARTISTS.has(song.artist.toLowerCase())
|
||||
) {
|
||||
console.log('possible multiartist: %s - %s (%s)', song.artist, song.title, song.path)
|
||||
count++
|
||||
}
|
||||
}
|
||||
|
||||
console.log('found %d possible multiartists', count)
|
Loading…
Add table
Add a link
Reference in a new issue