Created a first service skeleton to download torrent in the background

This commit is contained in:
Cyrille Bollu 2018-07-26 11:52:04 +02:00
parent f0697780ce
commit c9a0d5df8c
2 changed files with 12 additions and 0 deletions

View File

@ -6,6 +6,8 @@
<extension point="xbmc.python.pluginsource" library="peertube.py">
<provides>video</provides>
</extension>
<extension point="xbmc.service" library="service.py"/>
</extension>
<extension point="xbmc.addon.metadata">
<summary lang="en_GB">Plugin for PeerTube</summary>
<description lang="en_GB">PeerTube is a federated open source alternative to YouTube</description>

10
service.py Normal file
View File

@ -0,0 +1,10 @@
import time
import xbmc
if __name__ == '__main__':
monitor = xbmc.Monitor()
while not monitor.abortRequested():
if monitor.waitForAbort(1):
# Abort was requested while waiting. We must exit
break