Merge branch 'release/0.4.1'

This commit is contained in:
JohnDoee
2015-07-19 21:37:44 +02:00
3 changed files with 12 additions and 6 deletions

View File

@@ -41,7 +41,10 @@ The _allow remote_ option is to allow remote add and stream of torrents.
# Version Info
## Version 0.3.0
## Version 0.4.1
* Fixed bug with old Deluge versions
## Version 0.4.0
* Added WebUI support
* Improved scheduling algorithm

View File

@@ -42,7 +42,7 @@ from setuptools import setup
__plugin_name__ = "Streaming"
__author__ = "John Doee"
__author_email__ = "johndoee@tidalstream.org"
__version__ = "0.4.0"
__version__ = "0.4.1"
__url__ = "https://github.com/JohnDoee/deluge-streaming"
__license__ = "GPLv3"
__description__ = "Enables streaming of files while downloading them."

View File

@@ -479,10 +479,13 @@ class Core(CorePluginBase):
self.site = server.Site(self.resource)
session = component.get("Core").session
settings = session.get_settings()
settings['prioritize_partial_pieces'] = True
session.set_settings(settings)
try:
session = component.get("Core").session
settings = session.get_settings()
settings['prioritize_partial_pieces'] = True
session.set_settings(settings)
except AttributeError:
logger.warning('Unable to exclude partial pieces')
self.torrent_handlers = {}