http://codingteam.net/atom/project%2Farte7recorder%2FbugsArte + 7 recorder bugsLatest bugs for Arte + 7 recorder.2010-07-26T07:39:18+02:00Bugs version Alpha2010-06-21T12:16:33+02:00http://codingteam.net/project/arte7recorder/bugs/show/1536Neraxhttp://codingteam.net/users/show/NeraxLe 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 diffusion2010-06-11T00:16:13+02:00http://codingteam.net/project/arte7recorder/bugs/show/1471dummyhttp://codingteam.net/users/show/dummyLes 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ée2010-06-11T00:09:09+02:00http://codingteam.net/project/arte7recorder/bugs/show/1470dummyhttp://codingteam.net/users/show/dummyIl 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 accents2010-06-01T00:49:27+02:00http://codingteam.net/project/arte7recorder/bugs/show/1447Dummyhttp://codingteam.net/users/show/DummyQuand 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:00http://codingteam.net/project/arte7recorder/bugs/show/1427PatrickRibashttp://codingteam.net/users/show/PatrickRibasLe 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éo2010-05-13T18:45:00+02:00http://codingteam.net/project/arte7recorder/bugs/show/1408Grummfyhttp://codingteam.net/users/show/GrummfyOn 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.Description2010-05-13T18:43:03+02:00http://codingteam.net/project/arte7recorder/bugs/show/1407Grummfyhttp://codingteam.net/users/show/GrummfyBonjour,
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éo2010-05-13T18:39:18+02:00http://codingteam.net/project/arte7recorder/bugs/show/1406Grummfyhttp://codingteam.net/users/show/GrummfyLorsque l'on clique sur les différents éléments de l'application, la description qui va avec ne change pas.Reprise de téléchargement2010-05-13T18:38:21+02:00http://codingteam.net/project/arte7recorder/bugs/show/1405Grummfyhttp://codingteam.net/users/show/GrummfyBonjour,
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'écran2010-05-13T18:32:36+02:00http://codingteam.net/project/arte7recorder/bugs/show/1404Grummfyhttp://codingteam.net/users/show/GrummfyBonjour,
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