spotifyhistory

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HistoryItem

type HistoryItem struct {
	Timestamp                     time.Time `json:"ts"`
	UserName                      string    `json:"username"`
	Platform                      string    `json:"platform"`
	MillisecondsPlayed            int       `json:"ms_played"`
	ConnCountry                   string    `json:"conn_country"`
	IpAddrDecrypted               string    `json:"ip_addr_decrypted"`
	UserAgentDecrypted            string    `json:"user_agent_decrypted"`
	MasterMetadataTrackName       string    `json:"master_metadata_track_name"`
	MasterMetadataAlbumArtistName string    `json:"master_metadata_album_artist_name"`
	MasterMetadataAlbumName       string    `json:"master_metadata_album_album_name"`
	SpotifyTrackUri               string    `json:"spotify_track_uri"`
	EpisodeName                   string    `json:"episode_name"`
	EpisodeShowName               string    `json:"episode_show_name"`
	SpotifyEpisodeUri             string    `json:"spotify_episode_uri"`
	ReasonStart                   string    `json:"reason_start"`
	ReasonEnd                     string    `json:"reason_end"`
	Shuffle                       bool      `json:"shuffle"`
	Skipped                       bool      `json:"skipped"`
	Offline                       bool      `json:"offline"`
	OfflineTimestamp              int       `json:"offline_timestamp"`
	IncognitoMode                 bool      `json:"incognito_mode"`
}

func (HistoryItem) AsListen

func (i HistoryItem) AsListen() models.Listen

type ListenListOptions

type ListenListOptions struct {
	IgnoreIncognito bool
	IgnoreSkipped   bool
	// contains filtered or unexported fields
}

type SpotifyHistoryBackend

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

func (*SpotifyHistoryBackend) ExportListens

func (b *SpotifyHistoryBackend) ExportListens(oldestTimestamp time.Time, results chan models.ListensResult, progress chan models.Progress)

func (*SpotifyHistoryBackend) FromConfig

func (b *SpotifyHistoryBackend) FromConfig(config *config.ServiceConfig) models.Backend

func (*SpotifyHistoryBackend) Name

func (b *SpotifyHistoryBackend) Name() string

func (*SpotifyHistoryBackend) Options

type StreamingHistory

type StreamingHistory []HistoryItem

func (*StreamingHistory) AsListenList

func (*StreamingHistory) Read

func (j *StreamingHistory) Read(in io.Reader) error

Jump to

Keyboard shortcuts

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