Created a first service skeleton to download torrent in the background
This commit is contained in:
parent
f0697780ce
commit
c9a0d5df8c
|
@ -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>
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue