From 41947f2825740b70865ff19e1cb96a428816fc1c Mon Sep 17 00:00:00 2001 From: Timo Loewe Date: Thu, 4 Feb 2016 16:25:53 +0100 Subject: [PATCH] Lyrics wikia fix: detect no license message --- lLyrics/LyricwikiParser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lLyrics/LyricwikiParser.py b/lLyrics/LyricwikiParser.py index 3667e95..3a7efea 100755 --- a/lLyrics/LyricwikiParser.py +++ b/lLyrics/LyricwikiParser.py @@ -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"]