]> git.llucax.com Git - software/subdivxget.git/commitdiff
Rename subtitle field title -> titulo
authorLeandro Lucarella <luca@llucax.com.ar>
Sat, 14 Jul 2012 18:09:50 +0000 (20:09 +0200)
committerLeandro Lucarella <luca@llucax.com.ar>
Sat, 14 Jul 2012 18:12:54 +0000 (20:12 +0200)
All other fields are in Spanish (matching subdivx fields when possible
and reasonable), so we change title to Spanish too for consistency.

subdivxget

index bd6fc6ec6b6a427685b85c41b9c8ee92c309a792..395eb35bfdf08b47480bc02364a61d9a79d5fa75 100755 (executable)
@@ -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