From 8a379795621804313893da5b9ab3ff3ff1b022cf Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Sat, 14 Jul 2012 20:09:50 +0200 Subject: [PATCH] Rename subtitle field title -> titulo All other fields are in Spanish (matching subdivx fields when possible and reasonable), so we change title to Spanish too for consistency. --- subdivxget | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subdivxget b/subdivxget index bd6fc6e..395eb35 100755 --- a/subdivxget +++ b/subdivxget @@ -64,7 +64,7 @@ class SubDivXHTMLParser(HTMLParser.HTMLParser): self.attr = 'desc' elif tag == 'a': if attrs.get('class') == 'titulo_menu_izq': - self.attr = 'title' + self.attr = 'titulo' elif attrs.get('href', '').startswith(self.down_uri): self.cur['url'] = attrs['href'] if self.parsing: @@ -127,7 +127,7 @@ def get_subs(query_str): for sub in subdivx_get_subs(query_str): print '''\ - - %(title)s (%(autor)s - %(fecha)s - %(downloads)s - %(comentarios)s) + - %(titulo)s (%(autor)s - %(fecha)s - %(downloads)s - %(comentarios)s) %(desc)s DOWNLOADING ... ''' % sub -- 2.43.0