----------------------------------- Français/French
Détails:
V: 0.7.2
M: 0.7.2-ubuntu1
S: Ubuntu 12.04
Le problème des caractères accentués dans les noms des émissions de Canal+
et M6Replay peuvent être corrigés en supprimant les accents du nom de
l'émission lors de la génération du cache.
Exemple pour le plugin "M6Replay.py" (lignes 166 et suiv.) :
elif( self.isNomEmission ):
self.nomEmission = data
self.nomEmissionConnu = True
self.isNomEmission = False
devient :
elif( self.isNomEmission ):
# self.nomEmission = data
# On supprime les accents
self.nomEmission = unicodedata.normalize( 'NFKD', data ).encode( 'ASCII', 'ignore' )
self.nomEmissionConnu = True
self.isNomEmission = False
J'ai juste ajouté "import unicodedata" dans les importations initiales de
librairies (peut-être n'est-ce pas nécessaire, je ne suis pas un spécialiste
de la POO sur python...)
Après recompilation, tout fonctionne correctement et les épisodes de "Pékin
express" (par exemple) nommé "Pekin express" dans la liste, se chargent
correctement.
Le même correctif a été appliqué avec succès sur le plugin "CanalPlus.py"
(lignes 181 et suiv.)
----------------------------------- English/Anglais
Details:
V: 0.7.2
M: 0.7.2-ubuntu1
S: Ubuntu 12.04
The issue caused by diacritic characters in the names of the programs from
M6Replay and Canal+ can be corrected by removing the accents of the program
name when generating the cache.
Example with the "M6Replay.py" plugin (lines 166 and seq.) :
elif( self.isNomEmission ):
self.nomEmission = data
self.nomEmissionConnu = True
self.isNomEmission = False
becomes :
elif( self.isNomEmission ):
# self.nomEmission = data
# On supprime les accents
self.nomEmission = unicodedata.normalize( 'NFKD', data ).encode( 'ASCII', 'ignore' )
self.nomEmissionConnu = True
self.isNomEmission = False
I just added :
"import unicodedata" in the initial "import" statements (it may not be
absolutely necessary, I am not a specialist of OOP on python...)
After recompiling, everything works fine and the "Pékin express" episodes (for
example) renamed "Pekin express" in the list, are correctly loaded.
The same correction was succesfully done with the "CanalPlus.py" plugin (lines
181 and seq.)
Original issue reported on code.google.com by OggiwanB...@gmail.com on 20 May 2012 at 12:43
Original issue reported on code.google.com by
OggiwanB...@gmail.com
on 20 May 2012 at 12:43