rembo10 / headphones

Automatic music downloader for SABnzbd
GNU General Public License v3.0
3.4k stars 600 forks source link

Error: 'ascii' codec can't encode character - adding nzb with "®" character #1706

Closed Morphy99 closed 10 years ago

Morphy99 commented 10 years ago

"Error: 'ascii' codec can't encode character u'\xae' in position 135: ordinal not in range(128)" Getting this error when trying to add this nzb: https://www.usenet-crawler.com/details/62eb89bc8fc4fc3490d38eb7a12db180/Above%20&%20Beyond%20-%20Group%20Therapy%20(2011)%20mor%C2%AE

basilfx commented 10 years ago

Do you have the full log/exception trace?

Morphy99 commented 10 years ago

For some reason the log I'm copying over is cut short, in nano I can see it all. This is the bit that should be relevant:

11-Jun-2014 18:13:21 - INFO    :: Thread-231 : Checking if /media/NAS-1/Incoming/NZB/Complete/Music/Above exists
11-Jun-2014 18:13:21 - ERROR   :: CP Server Thread-8 : Request timed out.
11-Jun-2014 18:14:06 - INFO    :: CP Server Thread-10 : Marking album: 07e60701-8403-4196-a238-4438a1393619 as wanted...
11-Jun-2014 18:14:06 - INFO    :: CP Server Thread-10 : Searching for "Above & Beyond - Group Therapy" since it was marked as wanted
11-Jun-2014 18:14:06 - INFO    :: CP Server Thread-10 : Parsing results from Headphones Indexer
11-Jun-2014 18:14:07 - ERROR   :: CP Server Thread-10 : Request raise HTTP error with status code: 401
11-Jun-2014 18:14:07 - INFO    :: CP Server Thread-10 : Parsing results from https://www.usenet-crawler.com/
11-Jun-2014 18:14:07 - INFO    :: CP Server Thread-10 : Found Above & Beyond - Group Therapy (2011) mor®. Size: 599.0 MB
11-Jun-2014 18:14:07 - INFO    :: CP Server Thread-10 : Parsing results from https://01100111011001010110010101101011.info/
11-Jun-2014 18:14:08 - INFO    :: CP Server Thread-10 : Found Above & Beyond - Group Therapy (2011) mor-«. Size: 599.0 MB
11-Jun-2014 18:14:08 - INFO    :: CP Server Thread-10 : Making sure we can download the best result
11-Jun-2014 18:14:09 - INFO    :: CP Server Thread-10 : Found best result from https://www.usenet-crawler.com/: <a href="https://www.usenet-crawler.com/get$
11-Jun-2014 18:14:09 - ERROR   :: CP Server Thread-10 : Error: 'ascii' codec can't encode character u'\xae' in position 137: ordinal not in range(128)
11-Jun-2014 18:14:09 - INFO    :: CP Server Thread-10 : Search for Wanted albums complete"

I'm using headphones through the audo addon for openelec btw, so not sure if it's due to that.

SuHwak commented 10 years ago

Similar issue as been opened here: https://github.com/rembo10/headphones/issues/1695

piejanssens commented 10 years ago

@AdeHub Any idea by which statement this error was produced?

AdeHub commented 10 years ago

Fixed in develop