Skip to content

Instantly share code, notes, and snippets.

View MaxEtMoritz's full-sized avatar
📱

Markus Oppmann MaxEtMoritz

📱
View GitHub Profile
@MaxEtMoritz
MaxEtMoritz / artist_title.lua
Created November 8, 2023 11:34
VLC Lua script to extract artist and title metadata from the filename
--[[
Tries to extract artist and title from the filename.
Expected file name format: <artist> - <title>.ext
Usage: put this script inside <vlc-dir>/lua/meta/fetcher folder (create if not present).
If a music file is opened without meta tags, the script analyzes the filename and, if the pattern applies, sets the extracted artist and title info as metadata.
--]]
function descriptor()
return { scope="local" }
@MaxEtMoritz
MaxEtMoritz / woov_timetable_2_ical.js
Last active July 11, 2023 08:55
Woov (https://woov.com/) event timetable to ical. Designed to run in NodeJS, but can be adapted for browser if needed.
const fs = require('fs');
const { exit } = require('process');
const readline = require('readline');
const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
const prompt = query => new Promise(resolve => rl.question(query, resolve));
const query = `
query ($eid: ID!, $after: String) {
event(eventId: $eid) {
shows(first: 100, after: $after) {
@MaxEtMoritz
MaxEtMoritz / Muzio2LB.md
Last active June 15, 2023 08:36
Muzio to ListenBrainz

Muzio to ListenBrainz

Helper to import listens of a music player app to ListenBrainz.

Written for Muzio Player, but can maybe be adapted for other players.

How did i get the music player's history?

Step 1: Backup app data