Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
Revert "Fix OpenSubtitles download host #11"
Browse files Browse the repository at this point in the history
* Seems we're back to .org download links ...
* This reverts commit b0d5fbe.
  • Loading branch information
eregon committed Sep 18, 2014
1 parent b164e0b commit 4acce77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/suby/downloader/opensubtitles.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Suby
# Based on https://github.com/byroot/ruby-osdb/blob/master/lib/osdb/server.rb
class Downloader::OpenSubtitles < Downloader
SITE = 'dl.opensubtitles.net'
SITE = 'dl.opensubtitles.org'
FORMAT = :gz
XMLRPC_HOST = 'api.opensubtitles.org'
XMLRPC_PATH = '/xml-rpc'
Expand Down
2 changes: 1 addition & 1 deletion spec/suby/downloader/opensubtitles_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

it 'finds the right download link' do
url = downloader.download_url
url.should match(%r{http(s)?://.*opensubtitles.net/en/download/.*})
url.should match(%r{http(s)?://.*opensubtitles.org/en/download/.*})
end

it "doesn't find anything for bad query" do
Expand Down

0 comments on commit 4acce77

Please sign in to comment.