1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00
2021-10-09 17:14:35 -07:00

26 lines
513 B
Go
Executable File

package model
type Type string
const (
TypeChannel = Type("channel")
TypePlaylist = Type("playlist")
TypeUser = Type("user")
TypeGroup = Type("group")
)
type Provider string
const (
ProviderYoutube = Provider("youtube")
ProviderVimeo = Provider("vimeo")
ProviderSoundcloud = Provider("soundcloud")
)
// Info represents data extracted from URL
type Info struct {
LinkType Type // Either group, channel or user
Provider Provider // Youtube, Vimeo, or SoundCloud
ItemID string
}