{"action":"created","issue":{"url":"https://api.github.com/repos/SiCKRAGETV/sickrage-issues/issues/1826","labels_url":"https://api.github.com/repos/SiCKRAGETV/sickrage-issues/issues/1826/labels{/name}","comments_url":"https://api.github.com/repos/SiCKRAGETV/sickrage-issues/issues/1826/comments","events_url":"https://api.github.com/repos/SiCKRAGETV/sickrage-issues/issues/1826/events","html_url":"https://github.com/SiCKRAGETV/sickrage-issues/issues/1826","id":88486690,"number":1826,"title":"Episode names with an apostrophe not postprocessing","user":{"login":"dennisjanssen","id":814745,"avatar_url":"https://avatars.githubusercontent.com/u/814745?v=3","gravatar_id":"","url":"https://api.github.com/users/dennisjanssen","html_url":"https://github.com/dennisjanssen","followers_url":"https://api.github.com/users/dennisjanssen/followers","following_url":"https://api.github.com/users/dennisjanssen/following{/other_user}","gists_url":"https://api.github.com/users/dennisjanssen/gists{/gist_id}","starred_url":"https://api.github.com/users/dennisjanssen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dennisjanssen/subscriptions","organizations_url":"https://api.github.com/users/dennisjanssen/orgs","repos_url":"https://api.github.com/users/dennisjanssen/repos","events_url":"https://api.github.com/users/dennisjanssen/events{/privacy}","received_events_url":"https://api.github.com/users/dennisjanssen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SiCKRAGETV/sickrage-issues/labels/1:%20Support%20/%20question","name":"1: Support / question","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-06-15T17:12:58Z","updated_at":"2015-06-15T20:57:11Z","closed_at":null,"body":"When having downloaded an episode with an apostrophe, the post processing seems to mess it up. It did so with a recent OITNB episode, now again with Game of Thrones:\r\n\r\n2015-06-15 19:06:51 WARNING  POSTPROCESSER :: [/media/1TB-DISK/torrents/downloads/Game.of.Thrones.S05E10.HDTV.x264-KILLERS/Game.of.Thrones.S05E10.HDTV.x264-KILLERS.mp4 : Processing failed: Unable to move the files to their new home]\r\n2015-06-15 19:06:51 WARNING  POSTPROCESSER :: Problem(s) during processing, failed the following files/folders:  \r\n2015-06-15 19:06:51 WARNING  POSTPROCESSER :: Processing failed for /media/1TB-DISK/torrents/downloads/Game.of.Thrones.S05E10.HDTV.x264-KILLERS/Game.of.Thrones.S05E10.HDTV.x264-KILLERS.mp4: Unable to move the files to their new home\r\nAAOSError: [Errno 22] Invalid argument: '/media/1TB-DISK/Series/Game of Thrones/Season 5/Game of Thrones - S05E10 - Mother\\xe2\\x80\\x99s Mercy.mp4'\r\nAA    fout = os.open(dst, WRITE_FLAGS)\r\nAA  File \"/home/osmc/sickbeard/lib/shutil_custom/__init__.py\", line 42, in copyfile_custom\r\nAA    result = func(*[ss(x) if isinstance(x, (str, unicode)) else x for x in args], **kwargs)\r\nAA  File \"/home/osmc/sickbeard/sickbeard/encodingKludge.py\", line 73, in ek\r\nAA    ek.ek(shutil.copyfile, srcFile, destFile)\r\nAA  File \"/home/osmc/sickbeard/sickbeard/helpers.py\", line 387, in copyFile\r\nAA    copyFile(srcFile, destFile)\r\nAA  File \"/home/osmc/sickbeard/sickbeard/helpers.py\", line 399, in moveFile\r\nAA    helpers.moveFile(cur_file_path, new_file_path)\r\nAA  File \"/home/osmc/sickbeard/sickbeard/postProcessor.py\", line 341, in _int_move\r\nAATraceback (most recent call last):\r\n2015-06-15 19:06:51 ERROR    POSTPROCESSER :: Unable to move file /media/1TB-DISK/torrents/downloads/Game.of.Thrones.S05E10.HDTV.x264-KILLERS/Game.of.Thrones.S05E10.HDTV.x264-KILLERS.mp4 to /media/1TB-DISK/Series/Game of Thrones/Season 5/Game of Thrones - S05E10 - Mother’s Mercy.mp4: error 22 : Invalid argument\r\n2015-06-15 19:06:50 INFO     POSTPROCESSER :: Release name (game.of.thrones.s05e10.hdtv.x264-killers) found from file (game.of.thrones.s05e10.hdtv.x264-killers.nfo)\r\n2015-06-15 19:06:49 INFO     POSTPROCESSER :: Processing /media/1TB-DISK/torrents/downloads/Game.of.Thrones.S05E10.HDTV.x264-KILLERS/Game.of.Thrones.S05E10.HDTV.x264-KILLERS.mp4 (None)\r\n\r\nAnyone a clue what this might be? Is it something in the code or am I missing an option?"},"comment":{"url":"https://api.github.com/repos/SiCKRAGETV/sickrage-issues/issues/comments/112209254","html_url":"https://github.com/SiCKRAGETV/sickrage-issues/issues/1826#issuecomment-112209254","issue_url":"https://api.github.com/repos/SiCKRAGETV/sickrage-issues/issues/1826","id":112209254,"user":{"login":"dennisjanssen","id":814745,"avatar_url":"https://avatars.githubusercontent.com/u/814745?v=3","gravatar_id":"","url":"https://api.github.com/users/dennisjanssen","html_url":"https://github.com/dennisjanssen","followers_url":"https://api.github.com/users/dennisjanssen/followers","following_url":"https://api.github.com/users/dennisjanssen/following{/other_user}","gists_url":"https://api.github.com/users/dennisjanssen/gists{/gist_id}","starred_url":"https://api.github.com/users/dennisjanssen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dennisjanssen/subscriptions","organizations_url":"https://api.github.com/users/dennisjanssen/orgs","repos_url":"https://api.github.com/users/dennisjanssen/repos","events_url":"https://api.github.com/users/dennisjanssen/events{/privacy}","received_events_url":"https://api.github.com/users/dennisjanssen/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T20:57:11Z","updated_at":"2015-06-15T20:57:11Z","body":"Now I'm looking at it, it's run from root. But the locales for root seem to be okay:\r\nroot@osmc:/# locale\r\nLANG=en_US.UTF-8\r\nLANGUAGE=en_US.UTF-8\r\nLC_CTYPE=\"en_US.UTF-8\"\r\nLC_NUMERIC=\"en_US.UTF-8\"\r\nLC_TIME=\"en_US.UTF-8\"\r\nLC_COLLATE=\"en_US.UTF-8\"\r\nLC_MONETARY=\"en_US.UTF-8\"\r\nLC_MESSAGES=\"en_US.UTF-8\"\r\nLC_PAPER=\"en_US.UTF-8\"\r\nLC_NAME=\"en_US.UTF-8\"\r\nLC_ADDRESS=\"en_US.UTF-8\"\r\nLC_TELEPHONE=\"en_US.UTF-8\"\r\nLC_MEASUREMENT=\"en_US.UTF-8\"\r\nLC_IDENTIFICATION=\"en_US.UTF-8\"\r\nLC_ALL=en_US.UTF-8"}}