Discover Packages
git.sr.ht/~adrian-blx/ymc
didl
package
Version:
v0.0.0-...-057713a
Opens a new window with list of versions in this module.
Published: Jun 27, 2022
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type DidlItem struct {
Title string `xml:"dc:title,omitempty"`
Artist string `xml:"upnp:artist,omitempty"`
Album string `xml:"upnp:album,omitempty"`
AlbumArtUri string `xml:"upnp:albumArtURI,omitempty"`
Res DidlRes `xml:"res"`
}
type DidlLite struct {
XMLName xml .Name `xml:"DIDL-Lite"`
XmlNS string `xml:"xmlns,attr"`
NsUpnp string `xml:"xmlns:upnp,attr"`
NsDc string `xml:"xmlns:dc,attr"`
NsDlna string `xml:"xmlns:dlna,attr"`
Item DidlItem `xml:"item"`
}
type DidlRes struct {
Size int `xml:"size,attr,omitempty"`
Duration string `xml:"duration,attr,omitempty"`
ProtoInfo string `xml:"protocolInfo,attr"`
Uri string `xml:",chardata"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.