Skip to content

Commit

Permalink
Lyrics wikia fix: detect no license message
Browse files Browse the repository at this point in the history
  • Loading branch information
timoloewe committed Feb 4, 2016
1 parent de3cc55 commit 41947f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lLyrics/LyricwikiParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def parse(self):

resp = json.loads(resp)

if resp["lyrics"] == "Not found":
print(resp)
if resp["lyrics"] == "Not found" or resp["isOnTakedownList"] == '1':
return ""

lyrics_url = resp["url"]
Expand Down

0 comments on commit 41947f2

Please sign in to comment.