http://codingteam.net/atom/project%2Farte7recorder%2Fbugs Arte + 7 recorder bugs Latest bugs for Arte + 7 recorder. 2010-07-26T07:39:18+02:00 Bugs version Alpha 2010-06-21T12:16:33+02:00 http://codingteam.net/project/arte7recorder/bugs/show/1536 Nerax http://codingteam.net/users/show/Nerax Le programme n'affiche pas les informations des vidéos lors de la selection. La liste des vidéos n'est pas récupérée sur 7 jours. trier les programmes par ordre de diffusion 2010-06-11T00:16:13+02:00 http://codingteam.net/project/arte7recorder/bugs/show/1471 dummy http://codingteam.net/users/show/dummy Les programmes ne sont pas toujours bien triés dans l'ordre de diffusion. Le patch permet d'améliorer ca (tri par ordre anti-chronologique) --- Catalog.py.old 2010-06-10 09:26:46.000000000 +0200 +++ Catalog.py 2010-06-10 23:51:10.000000000 +0200 @@ -5,6 +5,7 @@ import urllib2, xml.dom.minidom import sys import BeautifulSoup as BS +import time def unescape_html(text): return BS.BeautifulStoneSoup(text, convertEntities=BS.BeautifulStoneSoup.HTML_ENTITIES).contents[0] @@ -17,10 +18,36 @@ lang = n[0] return lang + +# Get a value for the day (today = time.localtime().tm_wday, yesterday = today - 1, and so on +# based on at most 7 days +def get_val(a): + today=time.localtime().tm_wday + days=['Lun','Mar','Mer','Jeu','Ven','Sam','Dim'] + for i in range(0,7): + if a.startswith(days[i]): + if i >= today: + return i - 7 + else: + return i + if a.startswith('Aujourd'): + return today + if a.startswith('Hier'): + return today - 1 + return 42 + +# Compares 2 dates given on Arte +def compare_dates(a, b): + aa=get_val(a['startDate']) + bb=get_val(b['startDate']) + if aa==bb: + return cmp(b['startDate'], a['startDate']) + return cmp(bb,aa) + @@ -71,6 +98,8 @@ #exit(0) self.videos.append(video) #break + # sorts the videos by reverse chronological order + self.videos = sorted(self.videos, compare_dates) except IOError: print _("There are problem with your internet connection") la page n est pas toujours bien parsée 2010-06-11T00:09:09+02:00 http://codingteam.net/project/arte7recorder/bugs/show/1470 dummy http://codingteam.net/users/show/dummy Il n y a pas toujours de titre dans les pages renvoyées, ce qui cause une erreur python --- Catalog.py.old 2010-06-10 09:26:46.000000000 +0200 +++ Catalog.py 2010-06-10 23:51:10.000000000 +0200 @@ -51,10 +78,10 @@ for a in h.findAll('a'): video['targetURL'] = self.ARTE_WEB_ROOT + a['href'] video['targetURL'] = video['targetURL'].replace("/fr/", lang) - if a.string: - video['bigTitle'] = unescape_html( a.string ) + if a.string is None: + video['bigTitle'] = "No title" else: - video['bigTitle'] = "" + video['bigTitle'] = unescape_html( a.string ) for p in i.findAll('p'): if 'class' in p: if p['class'] == 'teaserText': Problème avec les accents 2010-06-01T00:49:27+02:00 http://codingteam.net/project/arte7recorder/bugs/show/1447 Dummy http://codingteam.net/users/show/Dummy Quand le nom du programme contient un accent, ici ca plante avec la 5.0.beta2~ppa3~lucid. Ex: [L'attaque de la moussaka géante-Sam., 29. mai 2010, 00h28.flv] Traceback (most recent call last): File "arte7recorder.py", line 317, in on_telecharge for percent in rtmp_download( rtmp_url, self.directory + "/" + self.nom_fich File "arte7recorder.py", line 82, in rtmp_download p = subprocess.Popen( cmd, shell=True, stderr=subprocess.PIPE, close_fds=Tru File "/usr/lib/python2.6/subprocess.py", line 633, in __init__ errread, errwrite) File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child raise child_exception TypeError: execv() arg 2 must contain only strings ^CTraceback (most recent call last): File "arte7recorder.py", line 492, in <module> gtk.main() En faisant un: print "CMD=["+cmd+"]\n" j avais: UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 181 Un quick fix a ete de rajouter un: cmd = cmd.encode('utf8') juste avant le: p = subprocess.Popen( cmd, shell=True, stderr=subprocess.PIPE, close_fds=True) plus d'affichage des vidéo téléchargeables 2010-05-20T19:16:52+02:00 http://codingteam.net/project/arte7recorder/bugs/show/1427 PatrickRibas http://codingteam.net/users/show/PatrickRibas Le lancement d'arte+7 recorder ne propose plus fichiers à télécharger. Je l'ai constaté aujourd'hui... la dernière utilisation que j'en ai faite remonte à 5 ou 6 jours... Choix du type d'encodage vidéo 2010-05-13T18:45:00+02:00 http://codingteam.net/project/arte7recorder/bugs/show/1408 Grummfy http://codingteam.net/users/show/Grummfy On devrait pouvoir choisir le type d'encodage vidéo que l'on désire : ogm, flv, wmv, avi, etc quitte a avoir un option manuel où l'on choisirait la commande utilisée. Description 2010-05-13T18:43:03+02:00 http://codingteam.net/project/arte7recorder/bugs/show/1407 Grummfy http://codingteam.net/users/show/Grummfy Bonjour, je pense que cela pourrait être intéressant d'avoir un fichier .txt ou .html reprenant la description des éléments provenant du site d'arte. description des vidéo 2010-05-13T18:39:18+02:00 http://codingteam.net/project/arte7recorder/bugs/show/1406 Grummfy http://codingteam.net/users/show/Grummfy Lorsque l'on clique sur les différents éléments de l'application, la description qui va avec ne change pas. Reprise de téléchargement 2010-05-13T18:38:21+02:00 http://codingteam.net/project/arte7recorder/bugs/show/1405 Grummfy http://codingteam.net/users/show/Grummfy Bonjour, je propose que lorsqu'un téléchargement est arrêté (application qui plante, arrêt de l'ordinateur, ... ) celui-ci puisse être repris. Moi je verrais cela comme ceci : Au moment où l'on appuie sur download ou lors de l'ajout d'un élément dans la liste, la liste des téléchargements est sauvegardée de manière automatique. Une fois l'application qui redémarre, celle-ci proposerait soit automatiquement soit manuellement, soit au choix suivant la configuration de reprendre la liste précédente si ces éléments sont de nouveau disponible. Freeze de l'écran 2010-05-13T18:32:36+02:00 http://codingteam.net/project/arte7recorder/bugs/show/1404 Grummfy http://codingteam.net/users/show/Grummfy Bonjour, après un certains temps de téléchargement que j'iconifie ou non l'application si je ré-affiche la fenêtre, celle-ci reste grise a l'intérieure donc pas moyen de savoir où en est le téléchargement (qui continue). pour info : je suis sous ubuntu 10.04 64bits