{"action":"opened","issue":{"url":"https://api.github.com/repos/byroot/ruby-osdb/issues/23","labels_url":"https://api.github.com/repos/byroot/ruby-osdb/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/byroot/ruby-osdb/issues/23/comments","events_url":"https://api.github.com/repos/byroot/ruby-osdb/issues/23/events","html_url":"https://github.com/byroot/ruby-osdb/issues/23","id":64692232,"number":23,"title":"Trying to save subtitle on wrong place when directory has same extension","user":{"login":"mtrovo","id":108123,"avatar_url":"https://avatars.githubusercontent.com/u/108123?v=3","gravatar_id":"","url":"https://api.github.com/users/mtrovo","html_url":"https://github.com/mtrovo","followers_url":"https://api.github.com/users/mtrovo/followers","following_url":"https://api.github.com/users/mtrovo/following{/other_user}","gists_url":"https://api.github.com/users/mtrovo/gists{/gist_id}","starred_url":"https://api.github.com/users/mtrovo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtrovo/subscriptions","organizations_url":"https://api.github.com/users/mtrovo/orgs","repos_url":"https://api.github.com/users/mtrovo/repos","events_url":"https://api.github.com/users/mtrovo/events{/privacy}","received_events_url":"https://api.github.com/users/mtrovo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-27T04:39:17Z","updated_at":"2015-03-27T04:39:17Z","closed_at":null,"body":"I'm trying to fetch subtitles for a path that looks like `directory.avi/movie.avi` and instead of saving the subtitle on `directory.avi/movie.srt` the application tries the path `directory.srt/movie.srt`, which doesn't exist on my machine and exits with an error.\r\n\r\n```\r\nErrno::ENOENT: No such file or directory @ rb_sysopen - directory.srt/movie.srt:\r\n/home/mtrovo/.rvm/gems/ruby-2.2.0/gems/osdb-0.2.0/bin/getsub:149:in `initialize'\r\n/home/mtrovo/.rvm/gems/ruby-2.2.0/gems/osdb-0.2.0/bin/getsub:149:in `open'\r\n/home/mtrovo/.rvm/gems/ruby-2.2.0/gems/osdb-0.2.0/bin/getsub:149:in `download_sub!'\r\n/home/mtrovo/.rvm/gems/ruby-2.2.0/gems/osdb-0.2.0/bin/getsub:63:in `block in run!'\r\n/home/mtrovo/.rvm/gems/ruby-2.2.0/gems/osdb-0.2.0/bin/getsub:53:in `each'\r\n/home/mtrovo/.rvm/gems/ruby-2.2.0/gems/osdb-0.2.0/bin/getsub:53:in `run!'\r\n/home/mtrovo/.rvm/gems/ruby-2.2.0/gems/osdb-0.2.0/bin/getsub:157:in `<top (required)>'\r\n/home/mtrovo/.rvm/gems/ruby-2.2.0/bin/getsub:23:in `load'\r\n/home/mtrovo/.rvm/gems/ruby-2.2.0/bin/getsub:23:in `<main>'\r\n/home/mtrovo/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `eval'\r\n/home/mtrovo/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `<main>'\r\n```"}}