{"action":"created","issue":{"url":"https://api.github.com/repos/mdhiggins/sickbeard_mp4_automator/issues/336","labels_url":"https://api.github.com/repos/mdhiggins/sickbeard_mp4_automator/issues/336/labels{/name}","comments_url":"https://api.github.com/repos/mdhiggins/sickbeard_mp4_automator/issues/336/comments","events_url":"https://api.github.com/repos/mdhiggins/sickbeard_mp4_automator/issues/336/events","html_url":"https://github.com/mdhiggins/sickbeard_mp4_automator/issues/336","id":109838745,"number":336,"title":"sonarr not moving file after script is run","user":{"login":"ptowns188","id":14946670,"avatar_url":"https://avatars.githubusercontent.com/u/14946670?v=3","gravatar_id":"","url":"https://api.github.com/users/ptowns188","html_url":"https://github.com/ptowns188","followers_url":"https://api.github.com/users/ptowns188/followers","following_url":"https://api.github.com/users/ptowns188/following{/other_user}","gists_url":"https://api.github.com/users/ptowns188/gists{/gist_id}","starred_url":"https://api.github.com/users/ptowns188/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptowns188/subscriptions","organizations_url":"https://api.github.com/users/ptowns188/orgs","repos_url":"https://api.github.com/users/ptowns188/repos","events_url":"https://api.github.com/users/ptowns188/events{/privacy}","received_events_url":"https://api.github.com/users/ptowns188/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":25,"created_at":"2015-10-05T16:41:48Z","updated_at":"2015-10-06T22:29:30Z","closed_at":null,"body":"2015-10-05 18:29:26 - delugePostProcess - INFO - Passing /home/plex/deluge/complete/temp_dir directory to Sonarr.\r\n2015-10-05 18:29:26 - autoprocess.sonarr - INFO - Sonarr notifier started.\r\n2015-10-05 18:29:26 - autoprocess.sonarr - DEBUG - Sonarr host: localhost.\r\n2015-10-05 18:29:26 - autoprocess.sonarr - DEBUG - Sonarr port: 8989.\r\n2015-10-05 18:29:26 - autoprocess.sonarr - DEBUG - Sonarr apikey: KEY\r\n2015-10-05 18:29:26 - autoprocess.sonarr - DEBUG - Sonarr protocol: http://.\r\n2015-10-05 18:29:26 - autoprocess.sonarr - DEBUG - URL 'http://localhost:8989/api/command' with payload '{'path': '/home/plex/deluge/complete/temp_dir', 'name': 'downloadedepisodesscan'}.'\r\n2015-10-05 18:29:26 - autoprocess.sonarr - INFO - Requesting Sonarr to scan directory '/home/plex/deluge/complete/temp_dir'.\r\n2015-10-05 18:29:26 - urllib3.connectionpool - INFO - Starting new HTTP connection (1): localhost\r\n2015-10-05 18:29:26 - urllib3.connectionpool - DEBUG - Setting read timeout to None\r\n2015-10-05 18:29:26 - urllib3.connectionpool - DEBUG - \"POST /api/command HTTP/1.1\" 201 None\r\n2015-10-05 18:29:26 - autoprocess.sonarr - INFO - Sonarr response: queued.\r\n2015-10-05 18:29:26 - delugePostProcess - ERROR - Unable to delete temporary directory.\r\nTraceback (most recent call last):\r\n  File \"/home/plex/mp4/delugePostProcess.py\", line 114, in <module>\r\n    os.rmdir(delete_dir)\r\nOSError: [Errno 39] Directory not empty: '/home/plex/deluge/complete/temp_dir'\r\n\r\nas the title says, after script runs the file and passes back to sonarr nothing happens\r\n\r\nanyone help?"},"comment":{"url":"https://api.github.com/repos/mdhiggins/sickbeard_mp4_automator/issues/comments/146020411","html_url":"https://github.com/mdhiggins/sickbeard_mp4_automator/issues/336#issuecomment-146020411","issue_url":"https://api.github.com/repos/mdhiggins/sickbeard_mp4_automator/issues/336","id":146020411,"user":{"login":"mdhiggins","id":3608298,"avatar_url":"https://avatars.githubusercontent.com/u/3608298?v=3","gravatar_id":"","url":"https://api.github.com/users/mdhiggins","html_url":"https://github.com/mdhiggins","followers_url":"https://api.github.com/users/mdhiggins/followers","following_url":"https://api.github.com/users/mdhiggins/following{/other_user}","gists_url":"https://api.github.com/users/mdhiggins/gists{/gist_id}","starred_url":"https://api.github.com/users/mdhiggins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdhiggins/subscriptions","organizations_url":"https://api.github.com/users/mdhiggins/orgs","repos_url":"https://api.github.com/users/mdhiggins/repos","events_url":"https://api.github.com/users/mdhiggins/events{/privacy}","received_events_url":"https://api.github.com/users/mdhiggins/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T22:29:30Z","updated_at":"2015-10-06T22:29:30Z","body":"Not really because the show name isn't known to the downloader. You could guess it based on the file name but that's unreliable. If you're running a dev version of Sonarr you can simply disable the post-processing from deluge, enable the \"Completed Download Handling\" within Sonarr which will let it automatically track and act on torrents without any script required, then setup the new beta version of the Sonarr post processing script #286 found here, and just let the converison/tagging be done after Sonarr moves everything."}}