Added AMV video details
This commit is contained in:
parent
6201818d3b
commit
342948dbb3
@ -52,6 +52,11 @@ component AMVPage(amv *arn.AMV, user *arn.User)
|
|||||||
each tag in amv.Tags
|
each tag in amv.Tags
|
||||||
.tag.mountable= tag
|
.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)
|
component AnimeGridSmall(animes []*arn.Anime, user *arn.User)
|
||||||
each anime in animes
|
each anime in animes
|
||||||
a.tip.mountable(href=anime.Link(), aria-label=anime.Title.ByUser(user))
|
a.tip.mountable(href=anime.Link(), aria-label=anime.Title.ByUser(user))
|
||||||
|
@ -52,6 +52,12 @@ const amv-large-width = 854px
|
|||||||
.amv-link
|
.amv-link
|
||||||
//
|
//
|
||||||
|
|
||||||
|
.amv-details
|
||||||
|
margin-top content-padding
|
||||||
|
|
||||||
|
p
|
||||||
|
margin 0
|
||||||
|
|
||||||
> 500px
|
> 500px
|
||||||
.amvs
|
.amvs
|
||||||
horizontal-wrap
|
horizontal-wrap
|
||||||
|
18
patches/delete-amv-tags/delete-amv-tags.go
Normal file
18
patches/delete-amv-tags/delete-amv-tags.go
Normal file
@ -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()
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user