From 7f5980f70224308a7fc41967000ade6a4ebc3631 Mon Sep 17 00:00:00 2001
From: Chris Pomeroy <cpomeroy@localhost.localdomain>
Date: Sat, 02 Dec 2017 05:21:48 +0000
Subject: [PATCH] Fixed errant hex key generation.  Added for loop to just grab the correct info not specific array parts.

---
 aaxConvert.py |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/aaxConvert.py b/aaxConvert.py
index 9afe859..9a8a721 100755
--- a/aaxConvert.py
+++ b/aaxConvert.py
@@ -6,7 +6,7 @@
 import shlex
 import json
 from getaaxkey.getaaxkey import getcorrectkey
-import querysubsonic
+from querysubsonic import findalbumbyname
 
 # arguments
 # activation_key, file name, codec(default to mp3)
@@ -132,9 +132,7 @@
         metadata = getmetadata(rfile)
         album = getmetadatatags('album')
         #See if we got it already
-        if findalbumbyname(album):
-            return 0
-        else:
+        if (findalbumbyname(album) == False):
             artist = getmetadatatags('artist')
             title = getmetadatatags('title')
             act_byte = getcorrectkey(rfile)

--
Gitblit v1.10.0