aboutsummaryrefslogtreecommitdiff
path: root/addons/metadata.generic.albums/lib/nfo.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/metadata.generic.albums/lib/nfo.py')
-rw-r--r--addons/metadata.generic.albums/lib/nfo.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/metadata.generic.albums/lib/nfo.py b/addons/metadata.generic.albums/lib/nfo.py
new file mode 100644
index 0000000000..ef996ce52b
--- /dev/null
+++ b/addons/metadata.generic.albums/lib/nfo.py
@@ -0,0 +1,8 @@
+# -*- coding: utf-8 -*-
+
+import re
+
+def nfo_geturl(data):
+ result = re.search('https://musicbrainz.org/(ws/2/)?release/([0-9a-z\-]*)', data)
+ if result:
+ return result.group(2)