Complete the list of known entities.

This commit is contained in:
Laurent Monin
2013-06-11 12:43:29 +02:00
parent 86e8db315b
commit 51ea26f8cc

View File

@@ -66,7 +66,7 @@ class FileLookup(object):
possible.
"""
uuid = '[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}'
entity_type = '(?:artist|release-group|release|track|label)'
entity_type = '(?:release-group|release|recording|work|artist|label|url|area|track)'
regex = r"\b(%s)?\W*(%s)" % (entity_type, uuid)
m = re.search(regex, string, re.IGNORECASE)
if m is None: