{"action":"created","issue":{"url":"https://api.github.com/repos/clinton-hall/nzbToMedia/issues/894","labels_url":"https://api.github.com/repos/clinton-hall/nzbToMedia/issues/894/labels{/name}","comments_url":"https://api.github.com/repos/clinton-hall/nzbToMedia/issues/894/comments","events_url":"https://api.github.com/repos/clinton-hall/nzbToMedia/issues/894/events","html_url":"https://github.com/clinton-hall/nzbToMedia/issues/894","id":119369709,"number":894,"title":"TorrentToMedia cleans directory after processing.","user":{"login":"bradamon","id":14953126,"avatar_url":"https://avatars.githubusercontent.com/u/14953126?v=3","gravatar_id":"","url":"https://api.github.com/users/bradamon","html_url":"https://github.com/bradamon","followers_url":"https://api.github.com/users/bradamon/followers","following_url":"https://api.github.com/users/bradamon/following{/other_user}","gists_url":"https://api.github.com/users/bradamon/gists{/gist_id}","starred_url":"https://api.github.com/users/bradamon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradamon/subscriptions","organizations_url":"https://api.github.com/users/bradamon/orgs","repos_url":"https://api.github.com/users/bradamon/repos","events_url":"https://api.github.com/users/bradamon/events{/privacy}","received_events_url":"https://api.github.com/users/bradamon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/clinton-hall/nzbToMedia/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2015-11-29T16:41:05Z","updated_at":"2015-12-20T17:46:56Z","closed_at":"2015-12-11T11:29:20Z","body":"I am using sickrage with deluge on Windows 8.1. All latest versions and python 2.7.9  32 bits. On deluge I use the execute plugin, so when a torrent is finished, it calls torrenttomedia.py. I am trying the nighty version of nzbtomedia (1cd64053b0da1d351bb6af392e1ebb904c6b6ce2).\r\n\r\nThe problem is that when a torrent finishes, the pocessing folder is deleted after the creating of symlink, so i cannot seed the file anymore. The lines \"delete_on\" and force_clean are deactivated. Also in sickrage i deactivated every option about deleting folder or files.\r\n[autoprocessmedia.txt](https://github.com/clinton-hall/nzbToMedia/files/46661/autoprocessmedia.txt)\r\n\r\nThe issue can be seen in nzbtomedia.log (here is thel ogs:  \r\n[cleandir issue.txt](https://github.com/clinton-hall/nzbToMedia/files/46662/cleandir.issue.txt)\r\n\r\n(...)\r\n2015-11-29 16:49:28 DEBUG   ::MAIN: Starting torrent Better.Call.Saul.S01E03.720p.HDTV.X264-DIMENSION[rarbg] in deluge\r\n2015-11-29 16:49:33 INFO    ::CLEANDIRS: Directory F:\\Torrents\\complete\\processed\\sickrage\\Better.Call.Saul.S01E03.720p.HDTV has been processed, removing ...\r\n2015-11-29 16:49:33 INFO    ::MAIN: The C:\\users\\bradamon\\AppData\\Roaming\\deluge\\nzbToMedia\\TorrentToMedia.py script completed successfully.\r\n\r\nI am sure that the option \"delete_on = 0\" should tells the script to not delete the folder but its not working. In fact, no matter what i write after \"delete_on =\"  and it  keeps removing directories. \r\n\r\nTell me if you need more info. Thank you very much, you are doing a fantastic job.\r\n\r\nRegards,\r\n\r\nBradamon\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/clinton-hall/nzbToMedia/issues/comments/166140600","html_url":"https://github.com/clinton-hall/nzbToMedia/issues/894#issuecomment-166140600","issue_url":"https://api.github.com/repos/clinton-hall/nzbToMedia/issues/894","id":166140600,"user":{"login":"bradamon","id":14953126,"avatar_url":"https://avatars.githubusercontent.com/u/14953126?v=3","gravatar_id":"","url":"https://api.github.com/users/bradamon","html_url":"https://github.com/bradamon","followers_url":"https://api.github.com/users/bradamon/followers","following_url":"https://api.github.com/users/bradamon/following{/other_user}","gists_url":"https://api.github.com/users/bradamon/gists{/gist_id}","starred_url":"https://api.github.com/users/bradamon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradamon/subscriptions","organizations_url":"https://api.github.com/users/bradamon/orgs","repos_url":"https://api.github.com/users/bradamon/repos","events_url":"https://api.github.com/users/bradamon/events{/privacy}","received_events_url":"https://api.github.com/users/bradamon/received_events","type":"User","site_admin":false},"created_at":"2015-12-20T17:46:56Z","updated_at":"2015-12-20T17:46:56Z","body":"I found problems with the new nighty branch and SickRage. When TorrentToMedia calls sickrage postprocess, it turns back an error and ends stuck (i have to manually restart sickrage to make it run again): http://pastebin.com/Rc6KmrXQ\r\nSymlinked file is created at torrent downloaded directory, linked to a file at OutpurDirectory, instead of linked to end point at final media location (due to an error you can see at log above)\r\n\r\nHowever, it works perfectly with CouchPotato, and the chain of links are as expected. Deluge now can seed the symlinked files linked to final media location: http://pastebin.com/U1yCnnCi\r\n(the only thing it didnt do is to resume the CP torrent after processing).\r\n\r\nThanks very much,\r\n\r\n\r\n"}}