import_medias crash
the command : ideascube import_medias test.csv
seems to crash with \r
Apparently the import command does not like some unicode char
⚠ Skipping. Missing path.
- lang: fr
- kind: mp4
Traceback (most recent call last):
File "/usr/share/python/ideascube/bin/django-admin", line 11, in <module>
sys.exit(execute_from_command_line())
File "/usr/share/python/ideascube/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 351, in execute_from_command_line
utility.execute()
File "/usr/share/python/ideascube/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 343, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/share/python/ideascube/local/lib/python2.7/site-packages/django/core/management/base.py", line 394, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/share/python/ideascube/local/lib/python2.7/site-packages/django/core/management/base.py", line 445, in execute
output = self.handle(*args, **options)
File "/usr/share/python/ideascube/local/lib/python2.7/site-packages/ideascube/mediacenter/management/commands/import_medias.py", line 58, in handle
self.add(row)
File "/usr/share/python/ideascube/local/lib/python2.7/site-packages/ideascube/mediacenter/management/commands/import_medias.py", line 70, in add
return self.skip('Missing path', metadata)
File "/usr/share/python/ideascube/local/lib/python2.7/site-packages/ideascube/mediacenter/management/commands/import_medias.py", line 35, in skip
value.decode('utf-8')))
AttributeError: 'NoneType' object has no attribute 'decode'
Here is a sample of "summary"
"Un soir, Moko regardait l'horizon. Le soleil avait tissé des rayons de couleurs par milliers, dans un ciel tacheté de nuages. Il apercevait, tout là-bas, ce que les anciens appelaient les « Monts de la terre ronde ».
« Pourquoi parlait-on de terre ronde ? » se demandait Moko.
Il voulut en avoir le cœur net et se mit à marcher pour atteindre l'horizon.
…"