subtitulos_downloader 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -63,6 +63,10 @@ module SubtitulosDownloader
63
63
  ep_doc = Nokogiri::HTML(open(@provider_link,
64
64
  "User-Agent" => @user_agent,
65
65
  "Referer" => "#{@base_uri}/show/#{show_sub[:id_show]}" ), nil, 'UTF-8')
66
+ if not ep_doc
67
+ @translators = -1
68
+ return @translators
69
+ end
66
70
  ep_doc.encoding = 'utf-8'
67
71
  split = @direct_link.split('/')
68
72
  sub_id = [split.pop, split.pop].reverse.join('/')
@@ -129,9 +133,11 @@ module SubtitulosDownloader
129
133
  old_name = show_episode.show_name
130
134
  show_episode.show_name = 'Louie' if show_episode.show_name == 'Louie (2010)'
131
135
  show_episode.show_name = 'Castle' if show_episode.show_name == 'Castle (2009)'
136
+ show_episode.show_name = 'Legit' if show_episode.show_name == 'Legit (2013)'
132
137
  show_episode.show_name = 'The Newsroom' if show_episode.show_name == 'The Newsroom (2012)'
133
138
  show_episode.show_name = 'The Office' if show_episode.show_name == 'The Office (US)' or show_episode.show_name == 'The Office (1995)'
134
139
  show_episode.show_name = 'Spartacus: Blood and Sand' if show_episode.show_name =~ /Spartacus/i
140
+ show_episode.show_name = 'House of Cards (2013)' if show_episode.show_name == 'House of Cards (US)'
135
141
  @shows_doc.css("#contenido a").each do |show_subs|
136
142
  show_name = show_subs.text
137
143
  show_url = show_subs['href']
@@ -1,3 +1,3 @@
1
1
  module SubtitulosDownloader
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: subtitulos_downloader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-28 00:00:00.000000000 Z
12
+ date: 2013-04-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -163,7 +163,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
163
163
  version: '0'
164
164
  segments:
165
165
  - 0
166
- hash: -93796529028502819
166
+ hash: 2198416149679042213
167
167
  required_rubygems_version: !ruby/object:Gem::Requirement
168
168
  none: false
169
169
  requirements:
@@ -172,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
172
  version: '0'
173
173
  segments:
174
174
  - 0
175
- hash: -93796529028502819
175
+ hash: 2198416149679042213
176
176
  requirements: []
177
177
  rubyforge_project: subtitulos_downloader
178
178
  rubygems_version: 1.8.24