Fix XBMCtorrent Spanish character

Quick Fix XBMCtorrent Can’t Get Inside Movies / TV-Shows List [edited]

XBMCtorrent is a fantastic Kodi addon which lets you watch movies and TV-shows streamed right into your machine using torrent protocol. Recently users of the addon have started to get a “script failed!” Error which can be fixed quite easily.

Quick Fix

Importnat!
XBMCtorrent is no more being developed / maintained, please see XBMCtorrent Has Ceased Being Developed, Meet Pulsar – Its Successor for more details and a replacement addon.

If you’re not yet familiar with XBMCtorrent, please check out the article which introduces the App and tells you how you can install it on Kodi. If you like watching movies and TV-shows – you must check out this addon

You may recall that not long ago, another post here on iWillFolo was also dealing with “Script failed!” error and was also focusing on a specific XBMCtorrent error [Errno 97].

However this time we’re having a totally different kind of issue and so does its fix is.

What’s the Problem?

Apparently there’s a new error caused by an unidentified character, which is actually a letter in Spanish ó (- my bet it’s the new Autómata movie that suddenly caused it) that can’t be read correctly by the addon.

Actually, if you want to dig a bit deeper, then you’ll discover that the fault doesn’t belong to XBMCtorrent addon itself but to the Python programming language (version 2.X) upon which it relies.

Nevertheless, there seems to be a very simple way to fix this issue, the only problem is you need to know where to look. Don’t worry that’s what I’m here for :)

Fix XBMCtorrent KeyError: u’\xf3′

In order to fix this error, all you have to do is edit one single line of one single file and that’s it.

But first, if you’re unsure whether you suffer from this issue or not, check out the ‘Finding the Error’ section here to make sure that you are.

Now, as for the fix here’s what you need to do:

Search and open a file named: urls.py inside the XBMCtorrent addon folder, in Linux the path to it is usually –

/home/<USER-NAME>/.xbmc/addons/plugin.video.xbmctorrent/resources/site-packages/xbmcswift2/urls.py

Go to line 110 where it says: items[key] = quote_plus(val)

and change it into: items[key] = quote_plus((val).encode('utf-8'))

Edit urls_py file

Note the brackets added around the entire (val).encode(‘utf-8’) section.

It would be best if you simply delete, then copy paste the whole line, just so you make sure you don’t have any typing mistakes which are crucial in this case.

Save the file, restart Kodi and you’re done!

Edit: if this fix hasn’t work for you, you may want to try my other XBMCtorrent bugfixes: Unable to connect to YIFY Torrents, Fixing XBMCtorrent [Errno 97].

Or, you may want to try XBMCtorrent addon fork called KMediatorrent.

COMMENTS (beta)

?
Add your comment here...
5
devil Apr '15
how to use this tutorial for andriod? plz help
1
Liron Apr '15 devil
Hi devil , you may find the file inside Android by going inside: Android/data/org.xbmc.kodi/files/.kodi (note, it may be called xbmc instead of kodi - depends on the version you have installed). Anyhow, I'd suggest you give kmediatorrent a try...
4
Gót Chân Achilles Feb '15
Hi. Today, xbmc have a problem on Yify. I can't see any movie fetched. Pls fix it, maybe the yts.re is changed something that effected to Xbmctorrent addons
1
I know it's 2 months late, still, for what it's worth: Quick Fix XBMCtorrent / Stream Kodi addon: Unable to connect to YIFY Torrents
3
Yaffi Shalom Nov '14
Thanks
2
Ambient_Noise Nov '14
Nope, still having the same issue, any other ideas?
1
Jakob Nov '14
Thanks