diff --git a/pages/amv/amv.pixy b/pages/amv/amv.pixy index 69dac407..82dae790 100644 --- a/pages/amv/amv.pixy +++ b/pages/amv/amv.pixy @@ -51,6 +51,11 @@ component AMVPage(amv *arn.AMV, user *arn.User) .tags.mountable each tag in amv.Tags .tag.mountable= tag + + if amv.File != "" && amv.Info.Video.Width > 0 + .footer.amv-details.mountable + p= fmt.Sprintf("Video: %dx%d | %.0f FPS | %s", amv.Info.Video.Width, amv.Info.Video.Height, amv.Info.Video.FPS, amv.Info.Video.Codec) + p= fmt.Sprintf("Audio: %.0f Hz | %d bits | %s", amv.Info.Audio.SamplingFrequency, amv.Info.Audio.BitDepth, amv.Info.Audio.Codec) component AnimeGridSmall(animes []*arn.Anime, user *arn.User) each anime in animes diff --git a/pages/amv/amv.scarlet b/pages/amv/amv.scarlet index a811ab5d..76ebdaca 100644 --- a/pages/amv/amv.scarlet +++ b/pages/amv/amv.scarlet @@ -52,6 +52,12 @@ const amv-large-width = 854px .amv-link // +.amv-details + margin-top content-padding + + p + margin 0 + > 500px .amvs horizontal-wrap diff --git a/patches/delete-amv-tags/delete-amv-tags.go b/patches/delete-amv-tags/delete-amv-tags.go new file mode 100644 index 00000000..1fc32694 --- /dev/null +++ b/patches/delete-amv-tags/delete-amv-tags.go @@ -0,0 +1,18 @@ +package main + +import ( + "github.com/animenotifier/arn" + "github.com/fatih/color" +) + +func main() { + color.Yellow("Deleting all AMV tags") + + defer color.Green("Finished.") + defer arn.Node.Close() + + for amv := range arn.StreamAMVs() { + amv.Tags = []string{} + amv.Save() + } +}