# -*- coding: utf-8 -*-
#
-# Copyright © 2019 Nick Bowler
+# Copyright © 2019-2020 Nick Bowler
#
# License GPLv3+: GNU General Public License version 3 or any later version.
# This is free software: you are free to change and redistribute it.
<code>$if(%_karaoke%,$set(comment:karaoke,%_karaoke%))</code>, for example,
to embed that into the file's comment tag.</p>
'''
-PLUGIN_VERSION = "0"
+PLUGIN_VERSION = "1"
PLUGIN_API_VERSIONS = ["2.0"]
PLUGIN_LICENSE = "GPL-3.0-or-later"
return modulename.__module__[len("picard.plugins."):]
def add_metadata(tagger, metadata, track, release):
- for r in track["recording"]["relations"]:
+ # for stanadlone recordings, "track" is actually a recording, not a track
+ recording = track.get("recording", track)
+ for r in recording["relations"]:
# 'karaoke version of' is the backward relation of this type...
if r["type-id"] != "39a08d0e-26e4-44fb-ae19-906f5fe9435d":
continue