<commit_before>package main

import (
	"path"

	"github.com/animenotifier/arn"
	"github.com/animenotifier/arn/stringutils"
	"github.com/animenotifier/arn/video"
	"github.com/fatih/color"
)

func main() {
	color.Yellow("Updating AMV info")

	defer color.Green("Finished.")
	defer arn.Node.Close()

	for amv := range arn.StreamAMVs() {
		if amv.File == "" {
			continue
		}

		info, err := video.GetInfo(path.Join(arn.Root, "videos", "amvs", amv.File))

		if err != nil {
			color.Red(err.Error())
			continue
		}

		color.Green(amv.Title.Canonical)
		stringutils.PrettyPrint(info)

		amv.Info = *info
		amv.Save()
	}
}<commit_msg>Simplified video info refresh<commit_after>package main

import (
	"github.com/animenotifier/arn"
	"github.com/animenotifier/arn/stringutils"
	"github.com/fatih/color"
)

func main() {
	color.Yellow("Updating AMV info")

	defer color.Green("Finished.")
	defer arn.Node.Close()

	for amv := range arn.StreamAMVs() {
		err := amv.RefreshInfo()

		if err != nil {
			color.Red(err.Error())
			continue
		}

		color.Green(amv.Title.Canonical)
		stringutils.PrettyPrint(amv.Info)
		amv.Save()
	}
}
{'fraction_non_alphanumeric': 0.15878679750223015, 'fraction_numerical': 0.0, 'mean_word_length': 3.7948717948717947, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5096574', 'n_tokens_mistral': 484, 'n_tokens_neox': 439, 'n_words': 72}