Skip to content

Commit

Permalink
Merge branch 'spotify-fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlecat committed Mar 13, 2015
2 parents e733523 + 1a6cba9 commit 33c612c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion critiquebrainz/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def get_multi(keys, namespace=None):
A dictionary of key/value pairs that were available. If key_prefix was
provided, the keys in the returned dictionary will not have it present.
"""
if _mc is None: return
if _mc is None: return {}
return _mc.get_multi(_prep_list(keys, namespace), _glob_namespace)


Expand Down
5 changes: 4 additions & 1 deletion critiquebrainz/frontend/templates/mapping/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ <h3>{{ _('Spotify mappings') }}</h3>
<tbody>
{% for mbid, album in spotify_albums.iteritems() %}
<tr>
<td><img src="{{ album.images[-1].url }}" style="max-height: 25px;" /></td>
<td>
<img src="{{ album.images[-1].url if album.images else '/static/img/missing-art.png' }}"
style="max-height: 25px;" />
</td>
<td>{{ album.type }}</td>
<td><a href="{{ album.external_urls.spotify }}">{{ album.id }}</a></td>
<td>{{ album.name }}</td>
Expand Down
2 changes: 1 addition & 1 deletion critiquebrainz/frontend/templates/mapping/spotify.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h2>{{ _('Spotify album mapping') }}</h2>
<div class="thumbnail">
<div class="cover-art-container">
<a href="{{ url_for('mapping.spotify_confirm', release_group_id=release_group.id, spotify_ref=item.uri) }}" class="match-link" data-toggle="tooltip" data-placement="bottom" title="This is the same album!" rel="nofollow">
{% if item.images[0] %}
{% if item.images %}
<img class="img-responsive" src="{{ item.images[0].url }}" />
{% else %}
<img class="img-responsive" src="/static/img/missing-art.png" />
Expand Down

0 comments on commit 33c612c

Please sign in to comment.