|
4 | 4 | PLUGIN_AUTHOR = 'Sophist, Sambhav Kothari, Philipp Wolfer'
|
5 | 5 | PLUGIN_DESCRIPTION = '''Add's the album artist(s) Official Homepage(s)
|
6 | 6 | (if they are defined in the MusicBrainz database).'''
|
7 |
| -PLUGIN_VERSION = '1.1' |
| 7 | +PLUGIN_VERSION = '1.1.1' |
8 | 8 | PLUGIN_API_VERSIONS = ["2.0", "2.1", "2.2"]
|
9 | 9 | PLUGIN_LICENSE = "GPL-2.0"
|
10 | 10 | PLUGIN_LICENSE_URL = "https://www.gnu.org/licenses/gpl-2.0.html"
|
@@ -128,8 +128,11 @@ def artist_process_metadata(self, artistId, response):
|
128 | 128 | log.debug("%s: %r: Examining: %r", PLUGIN_NAME, artistId, relation)
|
129 | 129 | if 'type' in relation.attribs and relation.type == 'official homepage':
|
130 | 130 | if 'target' in relation.children and len(relation.target) > 0:
|
131 |
| - log.debug("%s: Adding artist url: %s", PLUGIN_NAME, relation.target[0].text) |
132 |
| - urls.append(relation.target[0].text) |
| 131 | + if not 'ended' in relation.children or relation.ended[0].text != 'true': |
| 132 | + log.debug("%s: Adding artist url: %s", PLUGIN_NAME, relation.target[0].text) |
| 133 | + urls.append(relation.target[0].text) |
| 134 | + else: |
| 135 | + log.debug("%s: Artist url has ended: %s", PLUGIN_NAME, relation.target[0].text) |
133 | 136 | else:
|
134 | 137 | log.debug("%s: No url in relation: %r", PLUGIN_NAME, relation)
|
135 | 138 |
|
|
0 commit comments