Skip to content

Commit

Permalink
Merge pull request #7 from Nux007/dev
Browse files Browse the repository at this point in the history
Fixed key error ( found testing on windaube )
  • Loading branch information
Nux007 authored Dec 12, 2018
2 parents 73ba1f7 + b22eaff commit 472a916
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions default.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,15 @@ def Categories():

i = 0
chList = common.ReadList(playlistsFile)
addList = []
for uitem in chList:
if not uitem["uuid"].encode("utf-8") in ignored:
addList.append(chList[i])
i += 1
addList = []
try:
for uitem in chList:
if "uuid" in uitem and not uitem["uuid"].encode("utf-8") in ignored:
addList.append(chList[i])
i += 1
except:
addList = chList

AddListItems(addList)


Expand Down

0 comments on commit 472a916

Please sign in to comment.