From: Leandro Lucarella Date: Sat, 14 Jul 2012 18:09:50 +0000 (+0200) Subject: Rename subtitle field title -> titulo X-Git-Url: https://git.llucax.com/software/subdivxget.git/commitdiff_plain/8a379795621804313893da5b9ab3ff3ff1b022cf 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. --- 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