track

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SUCCESS_STR          = "[OK] %s - %s\n"
	FAIL_STR             = "[FAIL] %s - %s\n"
	SUCCESS_STR_COLOURED = "\u001b[32;1m[OK]\u001b[0m %s - %s\n"
	FAIL_STR_COLOURED    = "\u001b[31;1m[FAIL]\u001b[0m %s - %s\n"

	SEPARATOR        = "\t"
	LISTENED         = "L"
	ARTIST_INDEX     = 0
	ALBUM_INDEX      = 1
	TITLE_INDEX      = 2
	RATING_INDEX     = 5
	TIMESTAMP_INDEX  = 6
	TIMESTAMP_NO_RTC = "0"
)

Variables

This section is empty.

Functions

func Scrobble

func Scrobble(api *lastfm.Api, tracks Tracks, colours *bool) (
	success, fail uint)

Types

type Track

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

func StringToTrack

func StringToTrack(line, offset string) (track Track, listened bool)

Take a string, split it, convert time if needed and return a track

type Tracks

type Tracks []Track

Jump to

Keyboard shortcuts

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