config

package
v0.0.0-...-887fb3a Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ProgName = "gorum"

ProgName the name of the program

Variables

View Source
var (
	LockDir    = fmt.Sprintf("%s/%s-%s.lock", tmpDir, userName, ProgName)
	PidFile    = fmt.Sprintf("%s/%s-%s.pid", tmpDir, userName, ProgName)
	Player     = "mpv"
	PlayerArgs = []string{
		"--no-config",
		"--msg-level=all=v",
		"--network-timeout=10",
		"--cache=no",
		"--cache-pause=no",
		"--keep-open=always",
		"--keep-open-pause=no",
		"--idle=yes",
		"--input-ipc-server=" + PlayerControlFile,
	}
	PlayerControlFile = fmt.Sprintf("%s/%s-%s-player-control.socket", tmpDir, userName, ProgName)
	PlayerPidFile     = fmt.Sprintf("%s/%s-%s-player.pid", tmpDir, userName, ProgName)
	Log               = fmt.Sprintf("%s/%s-%s.log", tmpDir, userName, ProgName)
	MaxMenuTries      = 5
	MinStatusTries    = 1
	MaxStatusTries    = 10
	VolumeMin         = 0
	VolumeMax         = 100
	VolumeAbsolute    = 100
	WmDoBarUpdate     = wmCheckBarUpdate("wmbarupdate")
	WmFile            = fmt.Sprintf("%s/%s-%s-wm.txt", tmpDir, userName, ProgName)
	WmFilePerms       = os.FileMode(0600)
)
View Source
var Streams = map[int]map[string]string{
	1: {
		"name":    "Русские Песни",
		"nameIcy": "RUSSIAN SONGS",
		"url":     "https://listen.rusongs.ru:8005/ru-mp3-128",
	},
	2: {
		"name":    "Nebenwelten",
		"nameIcy": "Nebenwelten",
		"url":     "https://stream.laut.fm/nebenwelten",
	},
	3: {
		"name":    "Goa Base",
		"nameIcy": "Goa Base",
		"url":     "https://goa-base.stream.laut.fm/goa-base",
	},
	4: {
		"name":    "Hohenburg",
		"nameIcy": "Radiohohenburg",
		"url":     "https://stream.laut.fm/radiohohenburg",
	},
	5: {
		"name":    "SynthWay",
		"nameIcy": "SynthWay Radio",
		"url":     "https://c24.radioboss.fm:18014/stream",
	},
	6: {
		"name":    "Зайцев ФМ",
		"nameIcy": "zaycev.fm (metal mp3 stream 256kb)",
		"url":     "https://zaycevfm.cdnvideo.ru/ZaycevFM_metal_256.mp3",
	},
	7: {
		"name":    "7 Rays",
		"nameIcy": "7 Rays",
		"url":     "https://7rays.stream.laut.fm/7rays",
	},
	8: {
		"name":    "Ancient FM",
		"nameIcy": "Ancient FM",
		"url":     "https://mediaserv73.live-streams.nl:18058/stream",
	},
	9: {
		"name":    "Enigmatic Station",
		"nameIcy": "Enigmatic robot",
		"url":     "https://myradio24.org/8226",
	},
	10: {
		"name":    "Sky Radio",
		"nameIcy": "Sky Radio Stream",
		"url":     "https://skymedia-live.bitflip.ee/SKY",
	},
}

Streams urls, needs more :)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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