script.module.libtorrent/README.md

17 lines
515 B
Markdown
Raw Normal View History

2015-07-11 23:49:53 +03:00
Python-Libtorrent for Kodi
==================
script.module.libtorrent is a Kodi module that makes easy import of python-libtorrent for you. Example of usage is Torrenter v2 at https://github.com/DiMartinoXBMC/plugin.video.torrenter
- Forum: http://forum.kodi.tv/showthread.php?tid=214366
Usage
2015-07-11 23:52:35 +03:00
---------------
2015-07-11 23:52:09 +03:00
2015-07-11 23:55:10 +03:00
Add module in requires of your addon.xml::
2015-07-11 23:49:53 +03:00
2015-07-11 23:54:22 +03:00
<import addon="script.module.libtorrent"/>
2015-07-11 23:49:53 +03:00
2015-07-11 23:55:10 +03:00
Use it in any python file::
2015-07-11 23:49:53 +03:00
2015-07-11 23:54:22 +03:00
from python_libtorrent import get_libtorrent
libtorrent=get_libtorrent()