{"action":"closed","issue":{"url":"https://api.github.com/repos/Sonarr/Sonarr/issues/801","labels_url":"https://api.github.com/repos/Sonarr/Sonarr/issues/801/labels{/name}","comments_url":"https://api.github.com/repos/Sonarr/Sonarr/issues/801/comments","events_url":"https://api.github.com/repos/Sonarr/Sonarr/issues/801/events","html_url":"https://github.com/Sonarr/Sonarr/issues/801","id":106553816,"number":801,"title":"Cutoff Unmet episodes are downloaded when the existing file was already removed","user":{"login":"Tjiet","id":6305901,"avatar_url":"https://avatars.githubusercontent.com/u/6305901?v=3","gravatar_id":"","url":"https://api.github.com/users/Tjiet","html_url":"https://github.com/Tjiet","followers_url":"https://api.github.com/users/Tjiet/followers","following_url":"https://api.github.com/users/Tjiet/following{/other_user}","gists_url":"https://api.github.com/users/Tjiet/gists{/gist_id}","starred_url":"https://api.github.com/users/Tjiet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tjiet/subscriptions","organizations_url":"https://api.github.com/users/Tjiet/orgs","repos_url":"https://api.github.com/users/Tjiet/repos","events_url":"https://api.github.com/users/Tjiet/events{/privacy}","received_events_url":"https://api.github.com/users/Tjiet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-15T13:18:16Z","updated_at":"2015-09-15T15:16:06Z","closed_at":"2015-09-15T15:16:06Z","body":"Using a Media profile as follows:\r\n\r\nName:\r\nHD\r\n\r\nQualities:\r\n1st. WEBDL-1080p\r\n2nd. HDTV-1080p\r\n3rd. WEBDL-720p\r\n4th. HDTV-720p\r\n\r\n1. An episode is downloaded in the HDTV-720p quality, the episode is watched on Plex.\r\n2. The file is deleted within the Plex app (file deleted from filesystem)\r\n3. The Cutoff checker does a download of quality 1, 2 or 3 (whichever comes first/available)\r\n4. A new file is placed on the filesystem, thus making the episode unwatched again.\r\n\r\nSolution:\r\nBefore processing the episode cutoff it needs to check if the file is deleted (filescan) this way when the episode is watched it is marked as watched and deleted in Sonarr.\r\n\r\nThis happens when some series get other qualities before the file scanner runs.\r\n"}}