"Send to" path encoding error

DVBLink TV Server for QNAP NAS is discussed here!

"Send to" path encoding error

Postby mm98 » Sun Aug 07, 2016 6:54 pm

Hi,

I have previously used a specific folder on my NAS (\Multimedia\TV Recordings) for "Send to" setup. These will suddenly result in an error, and I can't select the specific folder anymore (marked red when selecting).
I have checked permissions on the folder, and they are correct.

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 22: ordinal not in range(128)

Code: Select all
[07/Aug/2016:19:48:02] DVB.CMN.SSD Get directory "share:CACHEDEV1_DATA:Multimedia:TV Recordings".
[07/Aug/2016:19:48:02] HTTP
Request Headers:
  AUTHORIZATION: Basic YWRtaW46c2ltYmE3ODAy
  COOKIE: dlg.dvblink-player=true; l=eng; r=640x480; b=512; dt=true; usevlchide=true; cfg_extend=true; dvb_sources_new_ignore=tv; swipe=false; frmt.date=DD.MM.YYYY; frmt.time=HH%3Amm; _ga=GA1.1.1970963443.1467446799; remeber=1; qtoken_account=Y2Fyc3Rlbg==; qtoken=12762563d0b6536aa7b52c98d08e85ce; nas_lang=ENG
  ORIGIN: http://qnap:39876
  Remote-Addr: 192.168.2.148
  Content-Length: 56
  USER-AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
  CONNECTION: keep-alive
  REFERER: http://qnap:39876/s/sendto/
  X-REQUESTED-WITH: XMLHttpRequest
  DNT: 1
  HOST: qnap:39876
  ACCEPT: application/json, text/javascript, */*; q=0.01
  ACCEPT-LANGUAGE: da,en-US;q=0.8,en;q=0.6
  Content-Type: application/x-www-form-urlencoded; charset=UTF-8
  ACCEPT-ENCODING: gzip, deflate
[07/Aug/2016:19:48:02] HTTP Traceback (most recent call last):
  File "/share/CACHEDEV1_DATA/.qpkg/DVBLinkTVServer/web_server/lib.zip/cherrypy/_cprequest.py", line 645, in respond
    response.body = self.handler()
  File "/share/CACHEDEV1_DATA/.qpkg/DVBLinkTVServer/web_server/lib.zip/cherrypy/lib/encoding.py", line 188, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/share/CACHEDEV1_DATA/.qpkg/DVBLinkTVServer/web_server/lib.zip/cherrypy/lib/jsontools.py", line 61, in json_handler
    value = cherrypy.serving.request._json_inner_handler(*args, **kwargs)
  File "/share/CACHEDEV1_DATA/.qpkg/DVBLinkTVServer/web_server/lib.zip/cherrypy/_cpdispatch.py", line 29, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "serversettings.py", line 79, in getpath
  File "C:\Python26\lib\posixpath.py", line 70, in join
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 22: ordinal not in range(128)
Attachments
dvblink-log-20160807-1948.zip
(38.31 KiB) Downloaded 101 times
DVBLink TV Server: v6.0.0 Build 14499. QNAP TS-453 Pro (FW: 4.3.3.0238 Build 20170703)
DVBLink TV Clients: Plex, iPhone, iPad and AppleTV 4
mm98
 
Posts: 27
Joined: Fri Jul 29, 2016 2:54 pm


Re: "Send to" path encoding error

Postby mm98 » Mon Aug 08, 2016 8:55 am

Extra info
The error could possible come from the content of the folder, since the filenames should be shown in the directory selector.

Update
I can confirm that the reason for this error, is the naming "Düné" (special characters). If i rename it to "Dune", Send To directory selection is working. Might be a solution to use UTF-8 encoding.
Attachments
Screenshot_1.png
Screenshot_1.png (16.96 KiB) Viewed 2277 times
DVBLink TV Server: v6.0.0 Build 14499. QNAP TS-453 Pro (FW: 4.3.3.0238 Build 20170703)
DVBLink TV Clients: Plex, iPhone, iPad and AppleTV 4
mm98
 
Posts: 27
Joined: Fri Jul 29, 2016 2:54 pm

Re: "Send to" path encoding error

Postby the_man » Tue Aug 09, 2016 2:42 pm

Thank you for investigation, we will add this issue into our todo list.
NETGEAR RNDU2000; Synology DS112j, DS 212j, DS213+, DS 712+; Western Digital WD ex2; Asustor AS3, RPI2 ...
PCTV 460,461e,292e; TT 4400, 4650CI;DVBSKy S960; DD octopus net; Inverto sat2ip multibox; TBS DVB-C ...
the_man
 
Posts: 4696
Joined: Mon Dec 02, 2013 1:11 pm

Re: "Send to" path encoding error

Postby mm98 » Fri Aug 12, 2016 8:03 am

"Send To" feature is actually completely unusable because of this. I'm from Denmark, and we have special characters in almost every program name.
Example: When the first program has been copied/transcoded to the desired folder, the following programs/schedules will result in a error in WebUI > Settings > Send To window.
DVBLink TV Server: v6.0.0 Build 14499. QNAP TS-453 Pro (FW: 4.3.3.0238 Build 20170703)
DVBLink TV Clients: Plex, iPhone, iPad and AppleTV 4
mm98
 
Posts: 27
Joined: Fri Jul 29, 2016 2:54 pm


Return to DVBLink TV Server for QNAP NAS

Who is online

Users browsing this forum: No registered users and 0 guests