Migration to new track title struct

This commit is contained in:
2018-04-08 22:44:21 +02:00
parent 1ba0da36e2
commit ea03c6cc17
9 changed files with 177 additions and 186 deletions

View File

@ -1,19 +1,15 @@
package main
import (
"github.com/animenotifier/arn"
)
func main() {
defer arn.Node.Close()
// 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
}
// for track := range arn.StreamSoundTracks() {
// if arn.ContainsUnicodeLetters(track.Title) {
// track.NewTitle.Native = track.Title
// } else {
// track.NewTitle.Canonical = track.Title
// }
track.Save()
}
// track.Save()
// }
}