From bcb60ed218c848b34da9ff90b884c13ba5f3af75 Mon Sep 17 00:00:00 2001
From: Fabio Manganiello <blacklight86@gmail.com>
Date: Tue, 19 Feb 2019 10:42:51 +0100
Subject: [PATCH] Minimum torrent download size before streaming: 10->15 MB

---
 platypush/plugins/media/webtorrent.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/platypush/plugins/media/webtorrent.py b/platypush/plugins/media/webtorrent.py
index f9713be73..bd322af33 100644
--- a/platypush/plugins/media/webtorrent.py
+++ b/platypush/plugins/media/webtorrent.py
@@ -42,8 +42,8 @@ class MediaWebtorrentPlugin(MediaPlugin):
     _supported_media_plugins = {'media.mplayer', 'media.omxplayer',
                                 'media.mpv', 'media.webtorrent'}
 
-    # Download at least 10 MBs before starting streaming
-    _download_size_before_streaming = 10 * 2**20
+    # Download at least 15 MBs before starting streaming
+    _download_size_before_streaming = 15 * 2**20
 
     _web_stream_ready_timeout = 120