koying / SPMC

fork of xbmc/kodi
Other
632 stars 257 forks source link

[Error] Torrent clients -Libtorrent #1033

Open tiku100 opened 7 years ago

tiku100 commented 7 years ago

Hello everyone!

First of all, thanks so much, koying, for your work. I've been using SPMC for the past 3 weeks since I finally bought a Xiaomi Mi box 3. It runs way much smoother than the official Kodi :)

However, I have encounterd an issue that is really frustating me (mostly because I am used to send magnet links form my computer to SPMC/Kodi).

I've tried a lot of torrent clients (KMediaTorrent, XMBCTorrent, Torrenter, YATP, etc) and none of them are working. The error seems to come from the libtorrent library. First of all I thought the error could be related to Python, but i tried SPMC 17a8 with no luck.

The picture attached seems to show the source of the problem, as I previously said: the libtorrent library for Android.

Do you know how can we move forward on solving this matter?

Many thanks in advance!

img_20170902_232222

koying commented 7 years ago

Where/How is "python-libtorrent" installed? Log welcome

koying commented 7 years ago

And how do you build/install libtorrent for Android in the first place...

tiku100 commented 7 years ago

Hello koying!

First of all, thanks for your answers (and, btw, sorry for my English. I'm trying my best) :)

I guess I'm making a lot of mistakes with this issue... Let's begin:

Firstly, I simply installed several of the torrent clients I mentioned previously (KmediaTorrent, XMBCTorrent, Torrenter, etc) and, as usual, they automatically installed its dependencies. Then, when I realized that none of them were working, I began to investigate and discovered the libtorrent error (when trying to execute python-libtorrent from My Addons list) and found on the Internet that the library is ¿different? when talking about Android TV... but I was never able to find the right one for the Mi Box :(

I tested many libtorrent versions (from 0.6.x to 1.1.1x via zip files) and nothing happened, the error was still appearing... So I decided to wrote here in order to get som answers trying to bother as little as possible...

If you want, of course I can attach a log file (do you need the log being generated with the standard Kodi/SPMC log addon, or do you prefer another way? Should I try to replicate the error first of all?

Thanks so much for all, koying (and thanks for your patiente).

:)

tiku100 commented 7 years ago

Hello again, koying!

I've tried to upload mi log file with the usual add-on and it returned an error, so I directly have navigate to .spmc/temp and pasted my log file on pastebin :)

Seeing more carefully the log, I also see a torrent2http error. BTW, the error has been replicated with a random magnet link... should I edit the media file name? If I have to, I will edit the file quickly, of course :)

https://pastebin.com/10fVW9sR

Thanks again, koyig :)

tiku100 commented 7 years ago

Hello again!

I was curious and, after reading and reading, I decided to test this issue on the official Kodi 17.4 for Android (I was reluctant to install it due to hardware acceleration and more). To my surprise, the python-libtorrent import worked and all the problems with the torrent client dissapeared: they all run without a problem and I can even send magnet links from my PC to the Mi box with Kodi.

In order to test more scenarios, I deleted the two SPMCs (16.7.1 and 17.4a8) on my Mi Box and made a clean installation of SPMC 16.6.0... libtorrent import failed again (tested with the same version that worked with Kodi 17.4: python-libtorrent 1.1.1b)

Hope this helps :)