rateyourmusic

package
v0.0.0-...-e1ec090 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2022 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RYMID              = 0
	FirstName          = 1
	LastName           = 2
	FirstNameLocalized = 3
	LastNameLocalized  = 4
	Title              = 5
	ReleaseYear        = 6
	Rating             = 7
)

RYM Album, First Name,Last Name,First Name localized, Last Name localized,Title,Release_Date,Rating,Ownership,Purchase Date,Media Type,Review

Variables

This section is empty.

Functions

This section is empty.

Types

type Localization

type Localization = struct {
	Localized string
	Native    string
}

type RYMAlbumGenerator

type RYMAlbumGenerator struct {
	// contains filtered or unexported fields
}

func CreateAlbumGenerator

func CreateAlbumGenerator() *RYMAlbumGenerator

func (*RYMAlbumGenerator) AddAlbumToEnsureExists

func (ag *RYMAlbumGenerator) AddAlbumToEnsureExists(artistName, albumName string)

func (*RYMAlbumGenerator) EnsureAlbumsExist

func (ag *RYMAlbumGenerator) EnsureAlbumsExist()

type RateYourMusic

type RateYourMusic struct {
	// contains filtered or unexported fields
}

RateYourMusic holds methods for interacting with the cached rateyourmusic data

func CreateService

func CreateService() *RateYourMusic

CreateService creates an instance of the indexing service object

func (RateYourMusic) ConvertRateYourMusicAlbums

func (rym RateYourMusic) ConvertRateYourMusicAlbums(rawAlbums []RawRateYourMusicRating) (meta.RateYourMusicAlbumConversionMap, error)

func (RateYourMusic) CountRatings

func (rym RateYourMusic) CountRatings(settings *model.RatingsSettings) (int, error)

func (RateYourMusic) GetArtist

func (rym RateYourMusic) GetArtist(keywords string) (*db.RateYourMusicAlbum, error)

func (RateYourMusic) GetRatings

func (rym RateYourMusic) GetRatings(settings *model.RatingsSettings) ([]db.Rating, error)

func (RateYourMusic) ParseRYMSExport

func (rym RateYourMusic) ParseRYMSExport(csvString string) ([]RawRateYourMusicRating, error)

func (RateYourMusic) ResetRatings

func (rym RateYourMusic) ResetRatings(user db.User)

func (RateYourMusic) SaveRatings

func (rym RateYourMusic) SaveRatings(ratings []RawRateYourMusicRating, rymsAlbumsMap meta.RateYourMusicAlbumConversionMap, user db.User) ([]db.Rating, error)

type RateYourMusicAlbumToUpdate

type RateYourMusicAlbumToUpdate struct {
	// contains filtered or unexported fields
}

type RawRateYourMusicRating

type RawRateYourMusicRating struct {
	RYMID            string
	Title            string
	ArtistName       string
	ArtistNativeName *string
	Rating           int
	ReleaseYear      int
	AllAlbums        []indexing.AlbumToConvert
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL