filename encoding error

Bug #1602163 reported by Robert Gierzinger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
arte +7 recorder
New
Undecided
Unassigned

Bug Description

When downloading e.g. "360° Geo Reportage" the filename cannot be encoded and thus the download does not start. This might also affect video titles with german umlaut. I used qarte version 3.1.1-0ubuntu1 on Ubuntu Xenial 64 Bit.

The error on the terminal:
Traceback (most recent call last):
  File "/usr/share/qarte/artetv.py", line 544, in start_download
    self.video_loaded = self.get_video_path(video)
  File "/usr/share/qarte/artetv.py", line 577, in get_video_path
    while os.path.isfile(path):
  File "/usr/lib/python3.4/genericpath.py", line 30, in isfile
    st = os.stat(path)
UnicodeEncodeError: 'ascii' codec can't encode character '\xb0' in position 23: ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/share/qarte/artetv.py", line 544, in start_download
    self.video_loaded = self.get_video_path(video)
  File "/usr/share/qarte/artetv.py", line 577, in get_video_path
    while os.path.isfile(path):
  File "/usr/lib/python3.4/genericpath.py", line 30, in isfile
    st = os.stat(path)
UnicodeEncodeError: 'ascii' codec can't encode character '\xb0' in position 23: ordinal not in range(128)

Revision history for this message
Robert Gierzinger (robert-gierzinger) wrote :

my assumption about german umlaut is correct: titles with umlaut cannot be writen. Also, it seems the content index cannot be written when an umlaut is in it, the error message:
12:40:31: WARNING - artetv Can't write summary: /home/username/videos/index
12:40:31: WARNING - artetv Reason: 'ascii' codec can't encode character '\xf6' in position 256: ordinal not in range(128)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.