Initial commit

This commit is contained in:
Aynakeya
2022-06-21 13:02:22 -07:00
commit 9f75839ebc
161 changed files with 18766 additions and 0 deletions

45
provider/local.go Normal file
View File

@@ -0,0 +1,45 @@
package provider
import "AynaLivePlayer/player"
type Local struct {
}
var LocalAPI *Local
func init() {
LocalAPI = _newLocal()
//Providers[LocalAPI.GetName()] = LocalAPI
}
func _newLocal() *Local {
return &Local{}
}
func (l *Local) GetName() string {
return "local"
}
func (l *Local) FormatPlaylistUrl(uri string) string {
return ""
}
func (l *Local) GetPlaylist(playlist string) ([]*player.Media, error) {
//TODO implement me
panic("implement me")
}
func (l *Local) Search(keyword string) ([]*player.Media, error) {
//TODO implement me
panic("implement me")
}
func (l *Local) UpdateMedia(media *player.Media) error {
//TODO implement me
panic("implement me")
}
func (l *Local) UpdateMediaUrl(media *player.Media) error {
//TODO implement me
panic("implement me")
}