Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ef6ba710e2 | |||
| 4179ca8ada | |||
| fcbcccaeb9 |
@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## v2.0.5
|
||||||
|
Released 15 October 2016
|
||||||
|
* Fixed images when listing entries
|
||||||
|
|
||||||
## v2.0.4
|
## v2.0.4
|
||||||
Released 5 October 2016
|
Released 5 October 2016
|
||||||
* Cache (permanently) starred items so we can know everywhere if an item is starred or not without querying it
|
* Cache (permanently) starred items so we can know everywhere if an item is starred or not without querying it
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<addon id="plugin.audio.subsonic" name="Subsonic" version="2.0.4" provider-name="BasilFX,grosbouff,lrusak">
|
<addon id="plugin.audio.subsonic" name="Subsonic" version="2.0.5" provider-name="BasilFX,grosbouff">
|
||||||
<requires>
|
<requires>
|
||||||
<import addon="xbmc.python" version="2.14.0"/>
|
<import addon="xbmc.python" version="2.14.0"/>
|
||||||
<import addon="script.module.dateutil" version="2.4.2"/>
|
<import addon="script.module.dateutil" version="2.4.2"/>
|
||||||
|
|||||||
23
main.py
23
main.py
@ -288,10 +288,11 @@ def list_artists(params):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def get_entry_artist(item,params):
|
def get_entry_artist(item,params):
|
||||||
|
image = connection.getCoverArtUrl(item.get('coverArt'))
|
||||||
return {
|
return {
|
||||||
'label': get_starred_label(item.get('id'),item.get('name')),
|
'label': get_starred_label(item.get('id'),item.get('name')),
|
||||||
'thumb': connection.getCoverArtUrl(item.get('id')),
|
'thumb': image,
|
||||||
'fanart': connection.getCoverArtUrl(item.get('id')),
|
'fanart': image,
|
||||||
'url': plugin.get_url(
|
'url': plugin.get_url(
|
||||||
action= 'list_albums',
|
action= 'list_albums',
|
||||||
artist_id= item.get('id'),
|
artist_id= item.get('id'),
|
||||||
@ -379,11 +380,13 @@ def list_albums(params):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def get_entry_album(item, params):
|
def get_entry_album(item, params):
|
||||||
|
|
||||||
|
image = connection.getCoverArtUrl(item.get('coverArt'))
|
||||||
|
|
||||||
entry = {
|
entry = {
|
||||||
'label': get_entry_album_label(item,params.get('hide_artist',False)),
|
'label': get_entry_album_label(item,params.get('hide_artist',False)),
|
||||||
'thumb': item.get('coverArt'),
|
'thumb': image,
|
||||||
'fanart': item.get('coverArt'),
|
'fanart': image,
|
||||||
'url': plugin.get_url(
|
'url': plugin.get_url(
|
||||||
action= 'list_tracks',
|
action= 'list_tracks',
|
||||||
album_id= item.get('id'),
|
album_id= item.get('id'),
|
||||||
@ -648,11 +651,12 @@ def is_starred(id):
|
|||||||
def get_entry_track(item,params):
|
def get_entry_track(item,params):
|
||||||
|
|
||||||
menu_id = params.get('menu_id')
|
menu_id = params.get('menu_id')
|
||||||
|
image = connection.getCoverArtUrl(item.get('coverArt'))
|
||||||
|
|
||||||
entry = {
|
entry = {
|
||||||
'label': get_entry_track_label(item,params.get('hide_artist')),
|
'label': get_entry_track_label(item,params.get('hide_artist')),
|
||||||
'thumb': item.get('coverArt'),
|
'thumb': image,
|
||||||
'fanart': item.get('coverArt'),
|
'fanart': image,
|
||||||
'url': plugin.get_url(
|
'url': plugin.get_url(
|
||||||
action= 'play_track',
|
action= 'play_track',
|
||||||
id= item.get('id'),
|
id= item.get('id'),
|
||||||
@ -794,10 +798,11 @@ def list_playlists(params):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def get_entry_playlist(item,params):
|
def get_entry_playlist(item,params):
|
||||||
|
image = connection.getCoverArtUrl(item.get('coverArt'))
|
||||||
return {
|
return {
|
||||||
'label': item['name'],
|
'label': item['name'],
|
||||||
'thumb': connection.getCoverArtUrl(item.get('id')),
|
'thumb': image,
|
||||||
'fanart': connection.getCoverArtUrl(item.get('id')),
|
'fanart': image,
|
||||||
'url': plugin.get_url(
|
'url': plugin.get_url(
|
||||||
action= 'list_tracks',
|
action= 'list_tracks',
|
||||||
playlist_id= item.get('id'),
|
playlist_id= item.get('id'),
|
||||||
|
|||||||
Reference in New Issue
Block a user