playlists

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: GPL-3.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Playlists = map[string]Playlist{}

Playlists is a map of playlists organized per system.

Functions

func ExistsInPlaylist

func ExistsInPlaylist(lplpath, path string, CRC32 uint32) bool

ExistsInPlaylist checks if a game is already in a playlist.

func LoadPlaylists

func LoadPlaylists()

LoadPlaylists loops over lpl files in ~/.ludo/playlists and loads them into memory.

Types

type Playlist

type Playlist []PlaylistEntry

Playlist is a list of games, result of scanning for games on the filesystem.

type PlaylistEntry

type PlaylistEntry struct {
	Path  string // Absolute path of the game on the filesystem
	Name  string // Human readable name of the game, comes from the RDB
	CRC32 uint32 // Checksum of the game, used for deduplication
	LPL   string
}

PlaylistEntry represents a game in a playlist.

Jump to

Keyboard shortcuts

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