[FEATURE] custom tagging
Background/Use-Case: I want my synced lyrics to be saved to a tag in FLAC. This hasn't been implemented, because there isn't a standard tag/format for it.
Workaround:
I simply edit taggers.py to include my extra tag:
diff --git a/deemix/utils/taggers.py b/deemix/utils/taggers.py
index e764b37..4a8fbe3 100644
--- a/deemix/utils/taggers.py
+++ b/deemix/utils/taggers.py
@@ -182,6 +182,10 @@ def tagFLAC(stream, track, save):
tag["REPLAYGAIN_TRACK_GAIN"] = track.replayGain
if track.lyrics['unsync'] and save['lyrics']:
tag["LYRICS"] = track.lyrics['unsync']
+ if track.lyrics['sync'] and save['syncedLyrics']:
+ # no standard tag
+ tag["LRC"] = track.lyrics['sync']
+
for role in track.contributors:
if role in ['author', 'engineer', 'mixer', 'producer', 'writer', 'composer']:
Feature request: I want to be able to create custom tags.
Ideas:
- Hooking system: Ability to register functions to be called at a specific point in execution. If this could somehow be integrated with the config, it would be possible to use it with pyweb/webui.
- User-defined tag mapping in config.
- Short way: Just add my change.
What do you think?