Private GIT

Skip to content
Snippets Groups Projects
Commit f17e53b1 authored by Fernando's avatar Fernando
Browse files

Fix multiple snatches when 'snatch notification' fails

This maybe the cause of the of "Unable to send Torrent: Return code" as we succeeded sending torrent to client BUT SR didn't had knowledge of that and next time will try to send again, creating the empty/None return code

```
2015-10-20 23:31:38 INFO     SEARCHQUEUE-DAILY-SEARCH :: Downloading *******.S01E01.1080p.HDTV.X264-DIMENSION from Rarbg
2015-10-20 23:31:38 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: Calling Transmission Client
2015-10-20 23:31:43 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: Transmission: Response to POST request is {"arguments":{},"result":"success"}
2015-10-20 23:32:14 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: Traceback (most recent call last):
  File "/home/osmc/SickRage/sickbeard/search_queue.py", line 145, in run
    self.success = search.snatchEpisode(result)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
timeout: timed out

2015-10-20 23:41:51 INFO     SEARCHQUEUE-DAILY-SEARCH :: Downloading *******.S01E01.1080p.HDTV.X264-DIMENSION from Rarbg
2015-10-20 23:31:38 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: Calling Transmission Client
2015-10-20 23:41:51 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: Transmission: Response to POST request is {"arguments":{},"result":"success"}
2015-10-20 23:42:21 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: Traceback (most recent call last):
  File "/home/osmc/SickRage/sickbeard/search_queue.py", line 145, in run
    self.success = search.snatchEpisode(result)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
timeout: timed out

2015-10-20 23:51:43 INFO     SEARCHQUEUE-DAILY-SEARCH :: Downloading *******.S01E01.1080p.HDTV.X264-DIMENSION from Rarbg
2015-10-20 23:51:43 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: Calling Transmission Client
2015-10-20 23:51:43 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: Transmission: Response to POST request is {"arguments":{},"result":"success"}
2015-10-20 23:51:45 INFO     SEARCHQUEUE-DAILY-SEARCH :: ***: Notification sent to *****
```
parent 6309378c
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment