pirate-autosub 0.3 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest +12 -0
- data/Rakefile +1 -1
- data/autosub.gemspec +1 -1
- data/lib/inspector.rb +6 -5
- metadata +1 -1
data/Manifest
ADDED
data/Rakefile
CHANGED
@@ -3,7 +3,7 @@ require 'rubygems'
|
|
3
3
|
require 'rake'
|
4
4
|
require 'echoe'
|
5
5
|
|
6
|
-
Echoe.new('autosub', '0.3') do |p|
|
6
|
+
Echoe.new('autosub', '0.3.1') do |p|
|
7
7
|
p.description = "Ruby tool to automatically download subtitles (srt) inside your TV Shows folder"
|
8
8
|
p.url = "http://github.com/pirate/autosub"
|
9
9
|
p.author = "Pirate"
|
data/autosub.gemspec
CHANGED
data/lib/inspector.rb
CHANGED
@@ -3,6 +3,7 @@ require File.join(File.dirname(__FILE__), '..', 'lib', 'sites', 'seriessub')
|
|
3
3
|
require File.join(File.dirname(__FILE__), '..', 'lib', 'sites', 'tvsubtitle')
|
4
4
|
require File.join(File.dirname(__FILE__), '..', 'lib', 'sites', 'podnapisi')
|
5
5
|
require 'logger'
|
6
|
+
require "pathname"
|
6
7
|
|
7
8
|
class Inspector
|
8
9
|
|
@@ -28,11 +29,6 @@ class Inspector
|
|
28
29
|
$stdout.print "Found #{@episodes.select { |e| e.need_srt?(@langs) }.size} episode(s) who need(s) srt\n"
|
29
30
|
|
30
31
|
# Find new srt
|
31
|
-
begin
|
32
|
-
Podnapisi.new(self)
|
33
|
-
rescue => e
|
34
|
-
log.fatal "Problem with Podnapisi: #{e}"
|
35
|
-
end
|
36
32
|
begin
|
37
33
|
TVSubtitle.new(self)
|
38
34
|
rescue => e
|
@@ -43,6 +39,11 @@ class Inspector
|
|
43
39
|
rescue => e
|
44
40
|
log.fatal "Problem with SeriesSub: #{e}"
|
45
41
|
end
|
42
|
+
begin
|
43
|
+
Podnapisi.new(self)
|
44
|
+
rescue => e
|
45
|
+
log.fatal "Problem with Podnapisi: #{e}"
|
46
|
+
end
|
46
47
|
end
|
47
48
|
|
48
49
|
def growl_episode(episode, lang)
|