diff --git a/CHANGES.md b/CHANGES.md
index 13a66f2..5a2de6b 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -1,4 +1,10 @@
-### 0.18.1 (2018-11-28 15:35:00 UTC)
+### 0.18.2 (2018-11-30 21:15:00 UTC)
+
+* Remove AlphaReign torrent provider
+* Change minimise library update calls to Kodi and Plex
+
+
+### 0.18.1 (2018-11-28 15:35:00 UTC)
* Fix manual search button on Daily Schedule
diff --git a/gui/slick/images/providers/alphareign.png b/gui/slick/images/providers/alphareign.png
deleted file mode 100644
index a2816cd..0000000
Binary files a/gui/slick/images/providers/alphareign.png and /dev/null differ
diff --git a/sickbeard/__init__.py b/sickbeard/__init__.py
index 36bb7fe..0fc0a92 100755
--- a/sickbeard/__init__.py
+++ b/sickbeard/__init__.py
@@ -333,6 +333,8 @@ XBMC_HOST = ''
XBMC_USERNAME = None
XBMC_PASSWORD = None
+QUEUE_UPDATE_LIBRARY = []
+
USE_NMJ = False
NMJ_HOST = None
NMJ_DATABASE = None
diff --git a/sickbeard/notifiers/__init__.py b/sickbeard/notifiers/__init__.py
index 4c9c7e0..d1a5935 100644
--- a/sickbeard/notifiers/__init__.py
+++ b/sickbeard/notifiers/__init__.py
@@ -16,6 +16,9 @@
# You should have received a copy of the GNU General Public License
# along with SickGear. If not, see
\n' % result)
- def update_library(self, ep_obj=None, host=None, username=None, password=None, **kwargs):
+ def update_library(self, ep_obj=None, host=None, username=None, password=None, location=None, **kwargs):
"""Handles updating the Plex Media Server host via HTTP API
Plex Media Server currently only supports updating the whole video library and not a specific path.
@@ -186,7 +186,7 @@ class PLEXNotifier(Notifier):
except (ValueError, IndexError) as e:
self._log(u'Error parsing plex.tv response: ' + ex(e))
- file_location = '' if None is ep_obj else ep_obj.location
+ file_location = location if None is not location else '' if None is ep_obj else ep_obj.location
host_validate = self._get_host_list(host, all([token_arg]))
hosts_all = {}
hosts_match = {}
diff --git a/sickbeard/processTV.py b/sickbeard/processTV.py
index b9d0eb4..0713844 100644
--- a/sickbeard/processTV.py
+++ b/sickbeard/processTV.py
@@ -28,7 +28,7 @@ import sys
import time
import sickbeard
-from sickbeard import postProcessor
+from sickbeard import postProcessor, notifiers
from sickbeard import db, helpers, exceptions
from sickbeard import encodingKludge as ek
from sickbeard.exceptions import ex
@@ -416,6 +416,8 @@ class ProcessTVShow(object):
self._buffer('-' * len(text))
self._log_helper(text, log_level)
+ notifiers.notify_update_library(ep_obj=None, flush_q=True)
+
if self.any_vid_processed:
if not self.files_failed:
_bottom_line(u'Successfully processed.', logger.MESSAGE)
diff --git a/sickbeard/providers/__init__.py b/sickbeard/providers/__init__.py
index c54729c..0af9b39 100755
--- a/sickbeard/providers/__init__.py
+++ b/sickbeard/providers/__init__.py
@@ -30,7 +30,7 @@ __all__ = [
# usenet
'omgwtfnzbs',
# torrent
- 'alpharatio', 'alphareign', 'bb', 'beyondhd', 'bithdtv', 'blutopia', 'btn',
+ 'alpharatio', 'bb', 'beyondhd', 'bithdtv', 'blutopia', 'btn',
'custom01', 'custom11', 'dh', 'ettv', 'eztv', 'fano', 'filelist', 'funfile', 'grabtheinfo',
'hdbits', 'hdme', 'hdspace', 'hdtorrents', 'horriblesubs',
'immortalseed', 'iptorrents', 'limetorrents', 'magnetdl', 'morethan', 'nebulance', 'ncore', 'nyaa',
@@ -73,7 +73,7 @@ def sortedProviderList():
def makeProviderList():
providers = [x.provider for x in [getProviderModule(y) for y in __all__] if x]
import browser_ua, zlib
- headers = [1449593765]
+ headers = [1449593765, 1597250020]
for p in providers:
if abs(zlib.crc32(p.name)) + 40000400 in headers:
p.headers.update({'User-Agent': browser_ua.get_ua()})
diff --git a/sickbeard/providers/alphareign.py b/sickbeard/providers/alphareign.py
deleted file mode 100644
index af54636..0000000
--- a/sickbeard/providers/alphareign.py
+++ /dev/null
@@ -1,102 +0,0 @@
-# coding=utf-8
-#
-# Author: SickGear
-#
-# This file is part of SickGear.
-#
-# SickGear is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# SickGear is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with SickGear. If not, see