This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- mpv script that logs metadata from Icecast streams. | |
-- script adapted from here: https://gist.github.com/alecwbr/c84381559ded9ed8553dc53dc251b416 | |
local CONFIG_DIR = (os.getenv("APPDATA") or os.getenv("HOME").."/.config"); | |
local HISTFILE = CONFIG_DIR.."/mpv/icyhistory.log"; | |
local function append_to_file(file, val) | |
local logfile; |