Skip to content

Commit

Permalink
Upd: add metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
jcorporation committed Jun 10, 2024
1 parent 64eb6da commit 14240e0
Show file tree
Hide file tree
Showing 20 changed files with 57 additions and 57 deletions.
2 changes: 1 addition & 1 deletion Jukebox/JukeboxBlissify.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- {"order":1,"arguments":[]}
-- {"name": "JukeboxBlissify", "file": "Jukebox/JukeboxBlissify.lua", "version": 1, "desc": "Uses blissify-rs to populate the jukebox queue.", "order":1,"arguments":[]}
local blissify_path = "/usr/local/bin/blissify"
local addSongs = 1
local min_jukebox_length = 50
Expand Down
2 changes: 1 addition & 1 deletion Jukebox/JukeboxRandomPlaylist.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- {"order":1,"arguments":[]}
-- {"name": "JukeboxRandomPlaylist", "file": "Jukebox/JukeboxRandomPlaylist.lua", "version": 1, "desc": "Populates the jukebox queue with random songs from a random playlist.", "order":1,"arguments":[]}

local addSongs = 1
local min_jukebox_length = 50
Expand Down
2 changes: 1 addition & 1 deletion ListenBrainz/ListenBrainzFeedback.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- {"order":1,"arguments":["uri","vote","type"]}
-- {"name": "ListenBrainzFeedback", "file": "ListenBrainz/ListenBrainzFeedback.lua", "version": 1, "desc": "Sends feedback to ListenBrainz", "order":1,"arguments":["uri","vote","type"]}
if mympd_env.var_listenbrainz_token == nil then
return "No ListenBrainz token set"
end
Expand Down
2 changes: 1 addition & 1 deletion ListenBrainz/ListenBrainzPlaylistImport.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- {"order":1,"arguments":[]}
-- {"name": "ListenBrainzPlaylistImport", "file": "ListenBrainz/ListenBrainzPlaylistImport.lua", "version": 1, "desc": "Imports generated playlists from ListenBrainz", "order":1,"arguments":[]}

local extra_headers = "Authorization: Token " .. mympd_env.var_listenbrainz_token .. "\r\n"

Expand Down
2 changes: 1 addition & 1 deletion ListenBrainz/ListenBrainzScrobbler.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- {"order":1,"arguments":[]}
-- {"name": "ListenBrainzScrobbler", "file": "ListenBrainz/ListenBrainzScrobbler.lua", "version": 1, "desc": "Scrobbles songs to ListenBrainz", "order":1,"arguments":[]}
if mympd_env.var_listenbrainz_token == nil then
return "No ListenBrainz token set"
end
Expand Down
2 changes: 1 addition & 1 deletion ListenBrainz/ListenBrainzSetPin.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- {"order":1,"arguments":["uri","blurb_content","pinned_until"]}
-- {"name": "ListenBrainzSetPin", "file": "ListenBrainz/ListenBrainzSetPin.lua", "version": 1, "desc": "Sets or unsets the pin on ListenBrainz", "order":1,"arguments":["uri","blurb_content","pinned_until"]}
if mympd_env.var_listenbrainz_token == nil then
return "No ListenBrainz token set"
end
Expand Down
2 changes: 1 addition & 1 deletion Lyrics/Lyrics.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- {"order":1,"arguments":["uri"]}
-- {"name": "Lyrics", "file": "Lyrics/Lyrics.lua", "version": 1, "desc": "Fetches lyrics on demand.", "order":1,"arguments":["uri"]}
-- Import lyrics provider configuration
local providers = require "scripts/LyricsProviders"
local rc, code, headers, body, song, lyrics_text, desc
Expand Down
2 changes: 1 addition & 1 deletion Lyrics/LyricsProviders.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- {"order":1,"arguments":[]}
-- {"name": "LyricsProviders", "file": "Lyrics/LyricsProviders.lua", "version": 1, "desc": "Lyrics providers for the Lyrics script.", "order":0,"arguments":[]}

local p_www_songtexte_com = {
name = "Songtexte",
Expand Down
2 changes: 1 addition & 1 deletion Maloja/MalojaScrobbler.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- {"order":1,"arguments":[]}
-- {"name": "MalojaScrobbler", "file": "Maloja/MalojaScrobbler.lua", "version": 1, "desc": "Scrobbles songs to your Maloja server.", "order":1,"arguments":[]}
if mympd_env.var_maloja_token == nil then
return "No Maloja token set"
end
Expand Down
2 changes: 1 addition & 1 deletion Misc/EnableJukebox.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- {"order":1,"arguments":[]}
-- {"name": "EnableJukebox", "file": "Misc/EnableJukebox.lua", "version": 1, "desc": "Enables the jukebox with specified options.", "order":1,"arguments":[]}

mympd.api("MYMPD_API_PLAYER_STOP");
mympd.api("MYMPD_API_PLAYER_OPTIONS_SET", {
Expand Down
2 changes: 1 addition & 1 deletion Misc/PlayRandomPlaylist.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- {"order":1,"arguments":[]}
-- {"name": "PlayRandomPlaylist", "file": "Misc/PlayRandomPlaylist.lua", "version": 1, "desc": "Plays a random playlist.", "order":1,"arguments":[]}
-- get the first 2000 playlists
local rc, result = mympd.api("MYMPD_API_PLAYLIST_LIST", {
offset = 0,
Expand Down
2 changes: 1 addition & 1 deletion Tagart/Tagart.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- {"order":1,"arguments":["tag", "value"]}
-- {"name": "Tagart", "file": "Tagart/Tagart.lua", "version": 1, "desc": "Fetches tagart on demand.", "order":1,"arguments":["tag", "value"]}
local providers = require "scripts/TagartProviders"

local tag = mympd_arguments.tag
Expand Down
2 changes: 1 addition & 1 deletion Tagart/TagartProviders.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- {"order":1,"arguments":[]}
-- {"name": "TagartProviders", "file": "Tagart/TagartProviders.lua", "version": 1, "desc": "Tagart providers for the Tagart script.", "order":0, "arguments":[]}

local p_fanart_tv = {
name = "Fanart.tv",
Expand Down
76 changes: 38 additions & 38 deletions index.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,115 +43,115 @@
,{
"file": "Jukebox/JukeboxBlissify.lua",
"name": "JukeboxBlissify",
"desc": "",
"version": 0
"desc": "Uses blissify-rs to populate the jukebox queue.",
"version": 1
}
,{
"file": "Jukebox/JukeboxRandomPlaylist.lua",
"name": "JukeboxRandomPlaylist",
"desc": "",
"version": 0
"desc": "Populates the jukebox queue with random songs from a random playlist.",
"version": 1
}
,{
"file": "ListenBrainz/ListenBrainzFeedback.lua",
"name": "ListenBrainzFeedback",
"desc": "",
"version": 0
"desc": "Sends feedback to ListenBrainz",
"version": 1
}
,{
"file": "ListenBrainz/ListenBrainzPlaylistImport.lua",
"name": "ListenBrainzPlaylistImport",
"desc": "",
"version": 0
"desc": "Imports generated playlists from ListenBrainz",
"version": 1
}
,{
"file": "ListenBrainz/ListenBrainzScrobbler.lua",
"name": "ListenBrainzScrobbler",
"desc": "",
"version": 0
"desc": "Scrobbles songs to ListenBrainz",
"version": 1
}
,{
"file": "ListenBrainz/ListenBrainzSetPin.lua",
"name": "ListenBrainzSetPin",
"desc": "",
"version": 0
"desc": "Sets or unsets the pin on ListenBrainz",
"version": 1
}
,{
"file": "Lyrics/Lyrics.lua",
"name": "Lyrics",
"desc": "",
"version": 0
"desc": "Fetches lyrics on demand.",
"version": 1
}
,{
"file": "Lyrics/LyricsProviders.lua",
"name": "LyricsProviders",
"desc": "",
"version": 0
"desc": "Lyrics providers for the Lyrics script.",
"version": 1
}
,{
"file": "Maloja/MalojaScrobbler.lua",
"name": "MalojaScrobbler",
"desc": "",
"version": 0
"desc": "Scrobbles songs to your Maloja server.",
"version": 1
}
,{
"file": "Misc/EnableJukebox.lua",
"name": "EnableJukebox",
"desc": "",
"version": 0
"desc": "Enables the jukebox with specified options.",
"version": 1
}
,{
"file": "Misc/PlayRandomPlaylist.lua",
"name": "PlayRandomPlaylist",
"desc": "",
"version": 0
"desc": "Plays a random playlist.",
"version": 1
}
,{
"file": "Tagart/Tagart.lua",
"name": "Tagart",
"desc": "",
"version": 0
"desc": "Fetches tagart on demand.",
"version": 1
}
,{
"file": "Tagart/TagartProviders.lua",
"name": "TagartProviders",
"desc": "",
"version": 0
"desc": "Tagart providers for the Tagart script.",
"version": 1
}
,{
"file": "last.fm/lastfmFeedback.lua",
"name": "lastfmFeedback",
"desc": "",
"version": 0
"desc": "Sends feedback to last.fm.",
"version": 1
}
,{
"file": "last.fm/lastfmGetSessionKey.lua",
"name": "lastfmGetSessionKey",
"desc": "",
"version": 0
"desc": "Fetches the session key from last.fm and sets the myMPD variable.",
"version": 1
}
,{
"file": "last.fm/lastfmLib.lua",
"name": "lastfmLib",
"desc": "",
"version": 0
"desc": "Library requried by the other last.fm modules.",
"version": 1
}
,{
"file": "last.fm/lastfmPlayer.lua",
"name": "lastfmPlayer",
"desc": "",
"version": 0
"desc": "Sends the now playing info to last.fm.",
"version": 1
}
,{
"file": "last.fm/lastfmScrobbler.lua",
"name": "lastfmScrobbler",
"desc": "",
"version": 0
"desc": "Scrobbles songs to last.fm.",
"version": 1
}
,{
"file": "yt-dlp/yt-dlp.lua",
"name": "yt-dlp",
"desc": "",
"version": 0
"desc": "Streams songs and playlists with the help of yt-dlp.",
"version": 1
}
]}
2 changes: 1 addition & 1 deletion last.fm/lastfmFeedback.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- {"order":1,"arguments":["uri","vote","type"]}
-- {"name": "lastfmFeedback", "file": "last.fm/lastfmFeedback.lua", "version": 1, "desc": "Sends feedback to last.fm.", "order":1,"arguments":["uri","vote","type"]}
local lastfmLib = require "scripts/lastfmLib"

-- main
Expand Down
2 changes: 1 addition & 1 deletion last.fm/lastfmGetSessionKey.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- {"order":1,"arguments":["username", "password"]}
-- {"name": "lastfmGetSessionKey", "file": "last.fm/lastfmGetSessionKey.lua", "version": 1, "desc": "Fetches the session key from last.fm and sets the myMPD variable.", "order":1,"arguments":["username", "password|password"]}
local lastfmLib = require "scripts/lastfmLib"

local data = {
Expand Down
2 changes: 1 addition & 1 deletion last.fm/lastfmLib.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- {"order":0,"arguments":[]}
-- {"name": "lastfmLib", "file": "last.fm/lastfmLib.lua", "version": 1, "desc": "Library requried by the other last.fm modules.", "order":0,"arguments":[]}
package.path = package.path .. ";/usr/share/lua/5.2/?.lua"
package.cpath = package.cpath .. ";/usr/lib/x86_64-linux-gnu/lua/5.2/?.so"

Expand Down
2 changes: 1 addition & 1 deletion last.fm/lastfmPlayer.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- {"order":1,"arguments":[]}
-- {"name": "lastfmPlayer", "file": "last.fm/lastfmPlayer.lua", "version": 1, "desc": "Sends the now playing info to last.fm.", "order":1,"arguments":[]}
mympd.init()

local lastfmLib = require "scripts/lastfmLib"
Expand Down
2 changes: 1 addition & 1 deletion last.fm/lastfmScrobbler.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- {"order":1,"arguments":[]}
-- {"name": "lastfmScrobbler", "file": "last.fm/lastfmScrobbler.lua", "version": 1, "desc": "Scrobbles songs to last.fm.", "order":1,"arguments":[]}
local lastfmLib = require "scripts/lastfmLib"

-- main
Expand Down
2 changes: 1 addition & 1 deletion yt-dlp/yt-dlp.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- {"order":1,"arguments":["uri"]}
-- {"name": "yt-dlp", "file": "yt-dlp/yt-dlp.lua", "version": 1, "desc": "Streams songs and playlists with the help of yt-dlp.", "order":1,"arguments":["uri"]}
-- yt-dlp helper functions
local yt_dlp_path = "yt-dlp"
local function yt_dlp_call(uri, args, parse_json)
Expand Down

0 comments on commit 14240e0

Please sign in to comment.