bump api to 1.15.0
This commit is contained in:
11
Dockerfile.debug
Normal file
11
Dockerfile.debug
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# syntax=docker/dockerfile:experimental
|
||||||
|
|
||||||
|
FROM golang:1.14-alpine AS builder
|
||||||
|
RUN apk add -U --no-cache \
|
||||||
|
build-base \
|
||||||
|
ca-certificates \
|
||||||
|
git \
|
||||||
|
sqlite \
|
||||||
|
taglib-dev \
|
||||||
|
alsa-lib-dev
|
||||||
|
WORKDIR /src
|
||||||
22
cmd/gonictag/main.go
Normal file
22
cmd/gonictag/main.go
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
"log"
|
||||||
|
"os"
|
||||||
|
|
||||||
|
_ "github.com/jinzhu/gorm/dialects/sqlite"
|
||||||
|
|
||||||
|
"go.senan.xyz/gonic/server/scanner/tags"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
t, err := tags.New(os.Args[1])
|
||||||
|
if err != nil {
|
||||||
|
log.Fatalf("error reading: %v", err)
|
||||||
|
}
|
||||||
|
fmt.Println("artist", t.Album())
|
||||||
|
fmt.Println("aartist", t.AlbumArtist())
|
||||||
|
fmt.Println("len", t.Length())
|
||||||
|
fmt.Println("br", t.Bitrate())
|
||||||
|
}
|
||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
apiVersion = "1.9.0"
|
apiVersion = "1.15.0"
|
||||||
xmlns = "http://subsonic.org/restapi"
|
xmlns = "http://subsonic.org/restapi"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -96,8 +96,8 @@ type Album struct {
|
|||||||
ArtistID *specid.ID `xml:"artistId,attr,omitempty" json:"artistId,omitempty"`
|
ArtistID *specid.ID `xml:"artistId,attr,omitempty" json:"artistId,omitempty"`
|
||||||
Artist string `xml:"artist,attr,omitempty" json:"artist,omitempty"`
|
Artist string `xml:"artist,attr,omitempty" json:"artist,omitempty"`
|
||||||
// browsing by folder (eg. getAlbumList)
|
// browsing by folder (eg. getAlbumList)
|
||||||
Title string `xml:"title,attr" json:"title"`
|
Title string `xml:"title,attr,omitempty" json:"title"`
|
||||||
Album string `xml:"album,attr" json:"album"`
|
Album string `xml:"album,attr,omitempty" json:"album"`
|
||||||
ParentID *specid.ID `xml:"parent,attr,omitempty" json:"parent,omitempty"`
|
ParentID *specid.ID `xml:"parent,attr,omitempty" json:"parent,omitempty"`
|
||||||
IsDir bool `xml:"isDir,attr,omitempty" json:"isDir,omitempty"`
|
IsDir bool `xml:"isDir,attr,omitempty" json:"isDir,omitempty"`
|
||||||
// browsing by tags (eg. getAlbumList2)
|
// browsing by tags (eg. getAlbumList2)
|
||||||
|
|||||||
Reference in New Issue
Block a user