Skip to content

Commit

Permalink
Fixed: Stopped after first run
Browse files Browse the repository at this point in the history
Changes i JSOPN RPC caused the artist property to be empty
  • Loading branch information
ErlendSB committed Feb 23, 2014
1 parent 4dbe937 commit b60889b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion script.lastfmplaylistgeneratorPM/addon.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.lastfmplaylistgeneratorPM"
name="Last.FM Playlist Generator (Partymode)"
version="1.1.2"
version="1.1.3"
provider-name="ErlendSB">
<requires>
<import addon="xbmc.python" version="1.0"/>
Expand Down
2 changes: 2 additions & 0 deletions script.lastfmplaylistgeneratorPM/changelog.txt
@@ -1,3 +1,5 @@
1.1.3
- Fixed: Stopped after first run.
1.1.2
- Changed: Move plugin to Music's addon section
- Changed: Remove dependency to built-in module
Expand Down
4 changes: 3 additions & 1 deletion script.lastfmplaylistgeneratorPM/pm.py
Expand Up @@ -131,7 +131,9 @@ def fetch_similarTracks( self, currentlyPlayingTitle, currentlyPlayingArtist ):
count = 0
for item in json_response['result']['songs']:
count += 1
artist = item["artist"]
artist = ""
if (len(item["artist"]) > 0):
artist = item["artist"][0]
trackTitle = item["title"]
album = item["album"]
trackPath = item["file"]
Expand Down

0 comments on commit b60889b

Please sign in to comment.