diff options
author | Eike <derbaranator@gmail.com> | 2017-07-23 19:38:33 +0200 |
---|---|---|
committer | enen92 <enen92@users.noreply.github.com> | 2017-07-23 18:38:33 +0100 |
commit | 8acae2506546a24127a3b868f381f26df1d8df95 (patch) | |
tree | 39b0d1a06d0312269df483fe748dc4653c3c25ba /plugin.audio.hearthis_at | |
parent | 8cf29cb3c3074f63b70efb8c3523a68ae2e589b5 (diff) |
[plugin.audio.hearthis_at] 1.0.2 (#1336)
Diffstat (limited to 'plugin.audio.hearthis_at')
-rw-r--r--[-rwxr-xr-x] | plugin.audio.hearthis_at/addon.py | 18 | ||||
-rw-r--r-- | plugin.audio.hearthis_at/addon.xml | 13 | ||||
-rw-r--r-- | plugin.audio.hearthis_at/resources/language/resource.language.de_de/strings.po | 4 | ||||
-rw-r--r-- | plugin.audio.hearthis_at/resources/language/resource.language.en_gb/strings.po | 4 | ||||
-rw-r--r-- | plugin.audio.hearthis_at/resources/settings.xml | 4 |
5 files changed, 27 insertions, 16 deletions
diff --git a/plugin.audio.hearthis_at/addon.py b/plugin.audio.hearthis_at/addon.py index 2f1c6fe..daf66f7 100755..100644 --- a/plugin.audio.hearthis_at/addon.py +++ b/plugin.audio.hearthis_at/addon.py @@ -41,7 +41,7 @@ STRINGS = { 'reshared' : 30019, 'add_reshared' : 30020, 'rm_reshared' : 30021, - 'login_failed' : 30055 + 'login_failed' : 30022 } @@ -127,11 +127,11 @@ def list_tracks(tracklist, pagination = None, first=False, pre=[], post=[]): 'genre': t.get('genre', None), 'playcount': int(t.get('playback_count', None)) }, - 'context_menu': [ - show_user_context_item(t['user']['permalink']), - context_item_toggle('like', t['favorited'], {'user':t['user']['permalink'], 'trackid': t['permalink']}), + 'context_menu': + show_user_context_item(t['user']['permalink']) + + context_item_toggle('like', t['favorited'], {'user':t['user']['permalink'], 'trackid': t['permalink']}) + context_item_toggle('reshared', t['reshared'], {'user':t['user']['permalink'], 'trackid': t['permalink']}) - ], + , 'path': plugin.url_for('play_track', trackid=t['permalink'], user=t['user']['permalink']), 'is_playable': True }) @@ -190,7 +190,7 @@ def login(): def logged_in(): - return USER['data'] != None + return USER.get('data', None) != None def context_item_toggle(prop, state, parms): @@ -200,15 +200,15 @@ def context_item_toggle(prop, state, parms): else: lbl = 'add_'+prop parms['prop'] = prop - ar_follow = ( _(lbl), actions.update_view(plugin.url_for('toggle_prop', **parms))) + ar_follow = [( _(lbl), actions.update_view(plugin.url_for('toggle_prop', **parms)))] else: - ar_follow = None + ar_follow = [] return ar_follow def show_user_context_item(user): show_user_url = plugin.url_for('show_user_first', user=user, page=1, first='True') - return ( _('show_artist'), actions.update_view(show_user_url)) + return [ ( _('show_artist'), actions.update_view(show_user_url)) ] @plugin.route('/') diff --git a/plugin.audio.hearthis_at/addon.xml b/plugin.audio.hearthis_at/addon.xml index a999a14..baa6bb6 100644 --- a/plugin.audio.hearthis_at/addon.xml +++ b/plugin.audio.hearthis_at/addon.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> -<addon id="plugin.audio.hearthis_at" name="Hearthis.at" version="1.0.0" provider-name="Eike Baran"> +<addon id="plugin.audio.hearthis_at" name="Hearthis.at" version="1.0.2" provider-name="Eike Baran"> <requires> <import addon="xbmc.python" version="2.25.0" /> <import addon="script.module.kodiswift" version="0.0.1" /> @@ -18,10 +18,13 @@ <description lang="en_GB">Hearthis.at is a online audio distribution platform that enables its users to upload, record, promote, and share their originally-created sounds. This addon provides the most important features to access that content.</description> <description lang="de_DE">Hearthis.at ist eine Online-Musikplattform, auf welcher Nutzer ihre Werke hochladen, aufnehmen, bewerben und teilen können. Dieses Addon erlaubt Zugriff auf die wichtigsten Funktionen der Plattform um diese Inhalte abzurufen.</description> <disclaimer lang="en_GB">Use at own risk. Code may be faulty, clog your drain or kill your cat.</disclaimer> - <news> v1.0.1 (2017-07-21) - - fixed icon-path for proper building - v1.0.0 (2017-07-03) - - Initial release + <news> +v1.0.2 (2017-07-22) +- fixed bug that would prevent non-logged-in users from using the addon +v1.0.1 (2017-07-21) +- fixed icon-path for proper building +v1.0.0 (2017-07-03) +- Initial release </news> <assets> <icon>resources/icon.png</icon> diff --git a/plugin.audio.hearthis_at/resources/language/resource.language.de_de/strings.po b/plugin.audio.hearthis_at/resources/language/resource.language.de_de/strings.po index 6c17fac..0f7a7f9 100644 --- a/plugin.audio.hearthis_at/resources/language/resource.language.de_de/strings.po +++ b/plugin.audio.hearthis_at/resources/language/resource.language.de_de/strings.po @@ -126,5 +126,9 @@ msgid "Login at hearthis.at" msgstr "Bei hearthis.at einloggen" msgctxt "#30055" +msgid "General" +msgstr "Allgemein" + +msgctxt "#30022" msgid "Login failed. Check your credentials!" msgstr "Login fehlgeschlagen. Überprüfe deine Zugangsdaten" diff --git a/plugin.audio.hearthis_at/resources/language/resource.language.en_gb/strings.po b/plugin.audio.hearthis_at/resources/language/resource.language.en_gb/strings.po index ecc6c0a..084aafe 100644 --- a/plugin.audio.hearthis_at/resources/language/resource.language.en_gb/strings.po +++ b/plugin.audio.hearthis_at/resources/language/resource.language.en_gb/strings.po @@ -111,6 +111,10 @@ msgid "Login at hearthis.at" msgstr "" msgctxt "#30055" +msgid "General" +msgstr "" + +msgctxt "#30022" msgid "Login failed. Check your credentials!" msgstr "" diff --git a/plugin.audio.hearthis_at/resources/settings.xml b/plugin.audio.hearthis_at/resources/settings.xml index 4d9e232..63a0b64 100644 --- a/plugin.audio.hearthis_at/resources/settings.xml +++ b/plugin.audio.hearthis_at/resources/settings.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8" standalone="yes"?> <settings> - <category label="32010"> - <setting label="32053" type="slider" id="page_count" default="20" range="5,5,20" option="int" /> + <category label="30055"> + <setting label="30053" type="slider" id="page_count" default="20" range="5,5,20" option="int" /> </category> <category label="30050"> <setting label="30054" type="bool" id="login_enabled" default="false"/> |