Merge pull request #1014 from JackDandy/feature/ChangeTrakt

Change reenable Trakt Notifier to update collections at end of PP.
This commit is contained in:
JackDandy 2017-11-15 17:09:17 +00:00 committed by GitHub
commit b4ca844f60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 1 deletions

View file

@ -135,6 +135,7 @@
* Change try all episode names with 'real', 'repack', 'proper'
* Add tip to search settings/media search about improved matching with optional regex library
* Change use value of "Update shows during hour" in General Settings straight after it is saved instead of after restart
* Change add tips for what to use for Growl notifications on Windows
[develop changelog]
@ -153,6 +154,7 @@
* Fix error after SG is updated and where Slack notifier is not enabled
* Change reduce number of DB calls for extra_info_no_name
* Add parse repack, proper level to recent search flow
* Change reenable Trakt Notifier to update collections at end of PP
### 0.12.37 (2017-11-12 10:35:00 UTC)

View file

@ -1167,7 +1167,7 @@
<div class="component-group-desc">
<img class="notifier-icon" src="$sbRoot/images/notifiers/growl.png" alt="" title="Growl">
<h3><a name="growl" href="<%= anon_url('http://growl.info/') %>" rel="noreferrer" onclick="window.open(this.href, '_blank'); return false;">Growl</a></h3>
<p>Notification system for OS X.</p>
<p>Self-hosted private device to device notification system made for OS X, available on Windows. <a href="http://snarl.fullphat.net/content/download/">Snarl</a> on Windows and <a href="http://www.growlforandroid.com">Growl</a> for Android.</p>
</div>
<fieldset class="component-group-list">
<div class="field-pair">

View file

@ -28,6 +28,13 @@ class TraktNotifier(BaseNotifier):
"""
A "notifier" for trakt.tv which keeps track of what has and hasn't been added to your library.
"""
@classmethod
def is_enabled_library(cls):
if sickbeard.TRAKT_ACCOUNTS:
for tid, locations in sickbeard.TRAKT_UPDATE_COLLECTION.items():
if tid in sickbeard.TRAKT_ACCOUNTS.keys():
return True
return False
def update_library(self, ep_obj=None, **kwargs):