DiMartinoXBMC / script.module.libtorrent

python-libtorrent for Kodi
Other
15 stars 15 forks source link

Where is liblibtorrent.so? #16

Open doko-desuka opened 4 years ago

doko-desuka commented 4 years ago

Hi,
I'm looking at your library downloading code: https://github.com/DiMartinoXBMC/script.module.libtorrent/blob/master/python_libtorrent/python_libtorrent/functions.py#L88-L99

On Android, it will try to fetch a file called 'liblibtorrent.so': https://github.com/DiMartinoXBMC/script.module.libtorrent/blob/master/python_libtorrent/platform_pulsar.py#L56-L57

But such file does not exist in your repository.

Can you explain?

doko-desuka commented 4 years ago

Please correct me if I'm wrong.
According to this code, liblibtorrent.so doesn't exist in the repo because it is a copy of libtorrent.so:

https://github.com/DiMartinoXBMC/script.module.libtorrent/blob/2e66934fd2b1396abfa25a46324181a649255d09/python_libtorrent/python_libtorrent/functions.py#L82-L100

So the code takes care of creating a file liblibtorrent.so when it's run.