mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-11 07:59:29 +02:00
Update config.example.toml
Add spotify-history and listenbrainz check-duplicate-listens. Clarify documentation.
This commit is contained in:
parent
6281554248
commit
210fe928fd
1 changed files with 31 additions and 7 deletions
|
@ -11,6 +11,13 @@ backend = "listenbrainz"
|
||||||
username = ""
|
username = ""
|
||||||
# Your ListenBrainz access token from https://listenbrainz.org/profile/
|
# Your ListenBrainz access token from https://listenbrainz.org/profile/
|
||||||
token = ""
|
token = ""
|
||||||
|
# If true, for each listen to submit it is checked whether this listen already
|
||||||
|
# exists on ListenBrainz. For this similar listens are searched at the listen
|
||||||
|
# time +/- the duration of the track. The default is false and this check is not
|
||||||
|
# perfomed. Note that this verification significanly slows down the import and
|
||||||
|
# is only recommended if you are importing historic listens which might or might
|
||||||
|
# not already exists in your ListenBrainz profile.
|
||||||
|
check-duplicate-listens = false
|
||||||
|
|
||||||
[service.maloja]
|
[service.maloja]
|
||||||
# Maloja is a self hosted listening service (https://github.com/krateng/maloja)
|
# Maloja is a self hosted listening service (https://github.com/krateng/maloja)
|
||||||
|
@ -46,8 +53,9 @@ token = ""
|
||||||
[service.scrobbler-log]
|
[service.scrobbler-log]
|
||||||
# Read or write listens from a Rockbox .scobbler.log file
|
# Read or write listens from a Rockbox .scobbler.log file
|
||||||
backend = "scrobbler-log"
|
backend = "scrobbler-log"
|
||||||
# The file path to the .scrobbler.log file
|
# The file path to the .scrobbler.log file. Relative paths are resolved against
|
||||||
file-path = "data/.scrobbler.log"
|
# the current working directory when running scotty.
|
||||||
|
file-path = "./.scrobbler.log"
|
||||||
# If true, reading listens from the file also returns listens marked as "skipped"
|
# If true, reading listens from the file also returns listens marked as "skipped"
|
||||||
include-skipped = true
|
include-skipped = true
|
||||||
# If true (default), new listens will be appended to the existing file. Set to
|
# If true (default), new listens will be appended to the existing file. Set to
|
||||||
|
@ -57,16 +65,17 @@ append = true
|
||||||
[service.jspf]
|
[service.jspf]
|
||||||
# Write listens and loves to JSPF playlist files (https://xspf.org/jspf)
|
# Write listens and loves to JSPF playlist files (https://xspf.org/jspf)
|
||||||
backend = "jspf"
|
backend = "jspf"
|
||||||
# The file path to the XSPF file
|
# The file path to the JSPF file. Relative paths are resolved against
|
||||||
file-path = "data/playlist.jspf"
|
# the current working directory when running scotty.
|
||||||
|
file-path = "./playlist.jspf"
|
||||||
# If true (default), new listens will be appended to the existing file. Set to
|
# If true (default), new listens will be appended to the existing file. Set to
|
||||||
# false to overwrite the file and create a new JSPF playlist on every run.
|
# false to overwrite the file and create a new JSPF playlist on every run.
|
||||||
append = true
|
append = true
|
||||||
# Title of the playlist
|
# Title of the playlist. Not used in append mode.
|
||||||
title = "My Playlist"
|
title = "My Playlist"
|
||||||
# Creator of the playlist (only informational)
|
# Creator of the playlist (only informational). Not used in append mode.
|
||||||
username = ""
|
username = ""
|
||||||
# A unique identifier for your playlist
|
# A unique identifier for your playlist. Not used in append mode.
|
||||||
identifier = ""
|
identifier = ""
|
||||||
|
|
||||||
[service.spotify]
|
[service.spotify]
|
||||||
|
@ -79,6 +88,21 @@ backend = "spotify"
|
||||||
client-id = ""
|
client-id = ""
|
||||||
client-secret = ""
|
client-secret = ""
|
||||||
|
|
||||||
|
[service.spotify-history]
|
||||||
|
# Read listens from a Spotify extended history export
|
||||||
|
backend = "spotify-history"
|
||||||
|
# Directory where the extended history JSON files are located. The files must
|
||||||
|
# follow the naming scheme "Streaming_History_Audio_*.json".
|
||||||
|
dir-path = "./my_spotify_data_extended/Spotify Extended Streaming History"
|
||||||
|
# If true (default), ignore listens from a Spotify "private session".
|
||||||
|
ignore-incognito = true
|
||||||
|
# If true, ignore listens marked as skipped. Default is false.
|
||||||
|
ignore-skipped = false
|
||||||
|
# Only consider skipped listens with a playback duration longer than this number
|
||||||
|
# of seconds. Default is 30 seconds. If ignore-skipped is set to false this
|
||||||
|
# setting has no effect.
|
||||||
|
ignore-min-duration-seconds = 30
|
||||||
|
|
||||||
[service.deezer]
|
[service.deezer]
|
||||||
# Read listens and loves from a Deezer account
|
# Read listens and loves from a Deezer account
|
||||||
backend = "deezer"
|
backend = "deezer"
|
||||||
|
|
Loading…
Add table
Reference in a new issue