Documentation
¶
Index ¶
- func NormalizeEpNumber(eps []float64) (name string)
- type Anime
- func (a *Anime) AppendFile(filePath string) error
- func (a *Anime) CheckAnime() error
- func (a *Anime) GetAnimeEpisodeDb(c *firestore.Client, ctx context.Context) error
- func (a *Anime) GetAnimeFromDb(c *firestore.Client, ctx context.Context) error
- func (a *Anime) GetAnimeInfoFromDb(c *firestore.Client, ctx context.Context) error
- func (a *Anime) SendToDb(c *firestore.Client, ctx context.Context) error
- func (a *Anime) SendToDbRel(cl *sql.DB) error
- func (a *Anime) SendToKaori(kaoriUrl, token string) error
- type Chapter
- type Episode
- type InfoQuality
- type Manga
- type Music
- type MusicData
- func (md *MusicData) AddDataToTmpDatabase(db *kaoriDatabase.NoSqlDb) error
- func (md *MusicData) CheckError() (err error)
- func (md *MusicData) CheckImage() (err error)
- func (md *MusicData) CheckTrack() (err error)
- func (md *MusicData) GetNameAnime()
- func (md *MusicData) NormalizeName() error
- func (md *MusicData) UploadTemporaryFile() error
- type Page
- type StreamLink
- type Track
- type Video
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeEpNumber ¶ added in v0.1.2
Types ¶
type Anime ¶
type Anime struct {
Id int `firestore:"-"`
Name string `firestore:"name"`
Episodes []*Episode `firestore:"episodes"`
}
func (*Anime) AppendFile ¶ added in v0.1.3
func (*Anime) CheckAnime ¶ added in v0.2.8
func (*Anime) GetAnimeEpisodeDb ¶ added in v0.1.8
func (*Anime) GetAnimeFromDb ¶ added in v0.1.7
func (*Anime) GetAnimeInfoFromDb ¶ added in v0.1.7
func (*Anime) SendToKaori ¶
type Chapter ¶ added in v0.2.6
func NewChapter ¶ added in v0.2.9
func NewChapter() *Chapter
type Episode ¶
func NewEpisode ¶
func NewEpisode() *Episode
func (*Episode) CheckEpisode ¶ added in v0.2.8
type InfoQuality ¶ added in v0.0.22
type Manga ¶ added in v0.2.6
func (*Manga) AppendFile ¶ added in v0.2.6
func (*Manga) SendToDatabase ¶ added in v0.2.7
func (*Manga) SendToKaori ¶ added in v0.2.6
type MusicData ¶ added in v0.2.15
type MusicData struct {
IdAnilist int `json:"idAnilist"`
AnimeName string `json:"-"`
Type string `json:"type"`
NumSong int `json:"numSong"`
IsFull bool `json:"isFull"`
Artist string `json:"artist,omitempty"`
NameSong string `json:"nameSong,omitempty"`
Cover string `json:"cover"`
Track string `json:"track"`
// contains filtered or unexported fields
}
MusicData struct
func (*MusicData) AddDataToTmpDatabase ¶ added in v0.2.15
func (md *MusicData) AddDataToTmpDatabase(db *kaoriDatabase.NoSqlDb) error
Aggiunge il dato al database
func (*MusicData) CheckError ¶ added in v0.2.15
CheckError esegue tutti i controlli per verificare che non siano stati inviati al server dati errati.
func (*MusicData) CheckImage ¶ added in v0.2.15
CheckImage controlla se è un'immagine e se è nei formati gestibili dal server
func (*MusicData) CheckTrack ¶ added in v0.2.15
CheckTrack controlla se è un file mp3.
func (*MusicData) GetNameAnime ¶ added in v0.2.15
func (md *MusicData) GetNameAnime()
GetNameAnime setta mediante l'id di anilist il nome dell'anime
func (*MusicData) NormalizeName ¶ added in v0.2.15
NormalizeName genera il nome del file audio.
func (*MusicData) UploadTemporaryFile ¶ added in v0.2.15
UploadTemporaryFile carica un file temporaneo su "littlebox" che scade dopo 3 giorni.
type StreamLink ¶
type Video ¶ added in v0.1.0
type Video struct {
Language string
Modality string
Quality *InfoQuality
Server string
StreamLink *StreamLink
}
func (*Video) CheckVideo ¶ added in v0.2.8
func (*Video) GetQuality ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.