From 44079d19d2d87fe95644e135a99e93f57ef3bff9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Fri, 26 Feb 2016 13:27:30 -0600 Subject: [PATCH] Hides the lyric field if there is no lyric available in audio posts --- src/controller/posts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controller/posts.py b/src/controller/posts.py index af53cf7..b535d3f 100644 --- a/src/controller/posts.py +++ b/src/controller/posts.py @@ -252,6 +252,8 @@ class audio(postController): if post.has_key("lyrics_id"): l = self.session.vk.client.audio.getLyrics(lyrics_id=int(post["lyrics_id"])) self.dialog.set("lyric", l["text"]) + else: + self.dialog.change_state("lyric", False) def download(self, *args, **kwargs): post = self.post[self.dialog.get_audio()]