Migration to new soundtrack title struct
This commit is contained in:
@ -0,0 +1,19 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
defer arn.Node.Close()
|
||||
|
||||
for track := range arn.StreamSoundTracks() {
|
||||
if arn.ContainsUnicodeLetters(track.Title) {
|
||||
track.NewTitle.Native = track.Title
|
||||
} else {
|
||||
track.NewTitle.Canonical = track.Title
|
||||
}
|
||||
|
||||
track.Save()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user