mirror of
https://github.com/JohnDoee/deluge-streaming/
synced 2026-07-01 07:31:17 -07:00
added 2/3 egg create script and updated readme
This commit is contained in:
14
README.md
14
README.md
@@ -1,7 +1,7 @@
|
|||||||
# Streaming Plugin
|
# Streaming Plugin
|
||||||
https://github.com/JohnDoee/deluge-streaming
|
https://github.com/JohnDoee/deluge-streaming
|
||||||
|
|
||||||
(c)2016 by Anders Jensen <johndoee@tidalstream.org>
|
(c)2019 by Anders Jensen <johndoee@tidalstream.org>
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
||||||
@@ -48,6 +48,13 @@ The _allow remote_ option is to allow remote add and stream of torrents.
|
|||||||
* [ ] Better feedback when using API
|
* [ ] Better feedback when using API
|
||||||
* [ ] Fix problems when removing torrent from Deluge (sea of errors)
|
* [ ] Fix problems when removing torrent from Deluge (sea of errors)
|
||||||
|
|
||||||
|
# Important Deluge 2 information
|
||||||
|
|
||||||
|
While developing the Deluge 2 version of this plugin I hit a few problems that might be visible for you too.
|
||||||
|
|
||||||
|
* When shutting down Deluge an exception / error happens every time, this bug is reported.
|
||||||
|
* Sometimes the Web UI does not load plugins correctly, try restarting Deluge and refresh your browser if this happens.
|
||||||
|
|
||||||
# HTTP API Usage
|
# HTTP API Usage
|
||||||
|
|
||||||
## Prerequisite
|
## Prerequisite
|
||||||
@@ -100,6 +107,11 @@ List of URL GET Arguments
|
|||||||
|
|
||||||
# Version Info
|
# Version Info
|
||||||
|
|
||||||
|
## Version 0.11.0
|
||||||
|
* Initial support for Deluge 2 / Python 3
|
||||||
|
* Added support for aggressive piece prioritization when it should not be necessary.
|
||||||
|
* Fixed bug related to paused torrent with no data downloaded.
|
||||||
|
|
||||||
## Version 0.10.5
|
## Version 0.10.5
|
||||||
* Added support for serving files inline
|
* Added support for serving files inline
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
python3 -m venv .env-egg
|
|
||||||
.env-egg/bin/pip install -U thomas
|
|
||||||
ln -s .env-egg/lib/python*/site-packages/thomas .
|
|
||||||
ln -s .env-egg/lib/python*/site-packages/rarfile.py .
|
|
||||||
ln -s .env-egg/lib/python*/site-packages/six.py .
|
|
||||||
ln -s .env-egg/lib/python*/site-packages/rfc6266.py .
|
|
||||||
ln -s .env-egg/lib/python*/site-packages/lepl .
|
|
||||||
ln -s .env-egg/lib/python*/site-packages/pytz .
|
|
||||||
.env-egg/bin/python setup.py bdist_egg
|
|
||||||
9
create-egg2.sh
Executable file
9
create-egg2.sh
Executable file
@@ -0,0 +1,9 @@
|
|||||||
|
virtualenv .env-egg2
|
||||||
|
.env-egg2/bin/pip install -U thomas
|
||||||
|
ln -s .env-egg2/lib/python*/site-packages/thomas .
|
||||||
|
ln -s .env-egg2/lib/python*/site-packages/rarfile.py .
|
||||||
|
ln -s .env-egg2/lib/python*/site-packages/six.py .
|
||||||
|
ln -s .env-egg2/lib/python*/site-packages/rfc6266.py .
|
||||||
|
ln -s .env-egg2/lib/python*/site-packages/lepl .
|
||||||
|
ln -s .env-egg2/lib/python*/site-packages/pytz .
|
||||||
|
.env-egg2/bin/python setup.py bdist_egg
|
||||||
9
create-egg3.sh
Executable file
9
create-egg3.sh
Executable file
@@ -0,0 +1,9 @@
|
|||||||
|
python3 -m venv .env-egg3
|
||||||
|
.env-egg3/bin/pip install -U thomas
|
||||||
|
ln -s .env-egg3/lib/python*/site-packages/thomas .
|
||||||
|
ln -s .env-egg3/lib/python*/site-packages/rarfile.py .
|
||||||
|
ln -s .env-egg3/lib/python*/site-packages/six.py .
|
||||||
|
ln -s .env-egg3/lib/python*/site-packages/rfc6266.py .
|
||||||
|
ln -s .env-egg3/lib/python*/site-packages/lepl .
|
||||||
|
ln -s .env-egg3/lib/python*/site-packages/pytz .
|
||||||
|
.env-egg3/bin/python setup.py bdist_egg
|
||||||
@@ -43,7 +43,7 @@ import sys
|
|||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
from gi.repository import Gtk
|
from gi.repository import Gtk
|
||||||
from gi.repository.Gtk import Menu, MenuItem, SeparatorMenuItem
|
from gi.repository.Gtk import MenuItem, SeparatorMenuItem
|
||||||
|
|
||||||
import deluge.component as component
|
import deluge.component as component
|
||||||
from deluge.plugins.pluginbase import Gtk3PluginBase
|
from deluge.plugins.pluginbase import Gtk3PluginBase
|
||||||
@@ -224,7 +224,7 @@ class Gtk3UI(Gtk3PluginBase):
|
|||||||
threads.deferToThread(execute_url, url)
|
threads.deferToThread(execute_url, url)
|
||||||
else:
|
else:
|
||||||
def on_dialog_callback(response):
|
def on_dialog_callback(response):
|
||||||
if response == gtk.RESPONSE_YES:
|
if response == Gtk.ResponseType.YES:
|
||||||
threads.deferToThread(execute_url, url)
|
threads.deferToThread(execute_url, url)
|
||||||
|
|
||||||
dialogs.YesNoDialog('Stream ready', 'Do you want to play the video?').run().addCallback(on_dialog_callback)
|
dialogs.YesNoDialog('Stream ready', 'Do you want to play the video?').run().addCallback(on_dialog_callback)
|
||||||
|
|||||||
Reference in New Issue
Block a user