diff --git a/seedtime/core.py b/seedtime/core.py index 7475d96..d00a952 100644 --- a/seedtime/core.py +++ b/seedtime/core.py @@ -72,7 +72,7 @@ def enable(self): def start_looping(self): log.warning('seedtime loop starting') - self.looping_call.start(5) + self.looping_call.start(10) def disable(self): self.plugin.deregister_status_field("seed_stop_time") @@ -85,11 +85,9 @@ def update(self): def update_checker(self): """Check if any torrents have reached their stop seed time.""" for torrent in component.get("Core").torrentmanager.torrents.values(): - if not torrent.torrent_id in self.torrent_stop_times: + if not (torrent.state == "Seeding" and torrent.torrent_id in self.torrent_stop_times): continue stop_time = self.torrent_stop_times[torrent.torrent_id] - log.debug('seedtime stop time %s' % stop_time) - log.debug('seedtime torrent seeding time %r' % torrent.get_status(['seeding_time'])) if torrent.get_status(['seeding_time'])['seeding_time'] > stop_time * 3600.0 * 24.0: if self.config['remove_torrent']: self.torrent_manager.remove(torrent.torrent_id) diff --git a/setup.py b/setup.py index c7f9077..e6a1573 100644 --- a/setup.py +++ b/setup.py @@ -42,10 +42,10 @@ __plugin_name__ = "SeedTime" __author__ = "Chase Sterling" __author_email__ = "chase.sterling@gmail.com" -__version__ = "0.4" +__version__ = "0.5" __url__ = "" __license__ = "GPLv3" -__description__ = "" +__description__ = "Automatically pause or remove torrents after specified amount of seeding." __long_description__ = """""" __pkg_data__ = {__plugin_name__.lower(): ["template/*", "data/*"]}