Skip to content

Commit

Permalink
Fix error setting seedtime for new torrents
Browse files Browse the repository at this point in the history
  • Loading branch information
gazpachoking committed Mar 8, 2014
1 parent fe46d3c commit b139e6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion seedtime/deluge/plugins/seedtime/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ def update_checker(self):
torrent.pause()

## Plugin hooks ##
def post_torrent_add(self, torrent_id):
def post_torrent_add(self, torrent_id, from_state):
if from_state:
return
if not self.torrent_manager.session_started:
return
if self.config["apply_stop_time"]:
Expand Down
2 changes: 1 addition & 1 deletion seedtime/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
__plugin_name__ = "SeedTime"
__author__ = "Chase Sterling"
__author_email__ = "[email protected]"
__version__ = "1.0.dev1"
__version__ = "1.0.dev2"
__url__ = ""
__license__ = "GPLv3"
__description__ = "Allows pausing or removing torrents after seeding for a certain time."
Expand Down

0 comments on commit b139e6d

Please sign in to comment.