Fabian42 / bash_scripts

Contains various bash scripts that I have written mainly for myself.
The Unlicense
4 stars 0 forks source link

Music meta file utils #43

Open Fabian42 opened 2 years ago

Fabian42 commented 2 years ago

Format draft:

a_meta/feint_take_it_in.txt:

quality: a2
folder: feint
artist: Feint
title: Take it in
album: Alchemy 2
date: 2016-09-26
yt_id: 0eUozdGwL6g
quality_link: youtu.be/0eUozdGwL6g
purchase_link:
lyrics: true
singer: Koven
genre: electronic, dnb
mood: happy
rhythm: 4
lyrics:
If I could live this life again,
I wouldn't change a thing.
We're the lucky ones to find
…

Likely more fields.

The utility commands should be able to play the music, output filenames or metadata and maybe more. Filtering should be possible based on all fields, including simple searches like "end" (like the current p, but on more fields) and complex logic (with potential abbreviations) like "folder=evan|nkin_pa&(!lyrics|q<=2)" (all tracks by Evanescence and Linkin Park that either have no lyrics or are at least of quality a2).

Fabian42 commented 2 years ago

With these meta files, I could get rid of the duplication in my music collection.

Tracks that are currently in the folder "a0" should get a special tag that excludes them from randomised playback by default. Maybe this should also be cached, so that it's not necessary to read and parse all meta files for every standard playback of my music collection.

Fabian42 commented 2 years ago

Potentially useful for automation: storing duration in meta files, either like "1m23s" or like "83"

Fabian42 commented 2 years ago

After checking all options, I think these are the best components for also using this system on my phone:

Implementing everything again in Tasker would be tedious and would duplicate literally 100% of the code, so using most of the same Bash script in Termux is preferable.

Fabian42 commented 2 years ago

Two more useful fields: license (free to use for me in videos and streams) and notes (free text)

Fabian42 commented 2 years ago

lyrics language

Fabian42 commented 1 year ago

Creating shortcuts to playlists is possible from within VLC, but those seem inaccessible from MacroDroid.

Fabian42 commented 1 year ago

Later improvements:

Fabian42 commented 1 year ago

lyric timestamps

Fabian42 commented 1 year ago

alarm?

Fabian42 commented 1 year ago

if started with tag, count skips and suggest tag changes

Fabian42 commented 4 months ago

termux-media-player