pirate-autosub 0.3 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/Manifest +12 -0
  2. data/Rakefile +1 -1
  3. data/autosub.gemspec +1 -1
  4. data/lib/inspector.rb +6 -5
  5. metadata +1 -1
@@ -0,0 +1,12 @@
1
+ asset/failure.png
2
+ asset/srt.png
3
+ autosub.gemspec
4
+ bin/autosub
5
+ lib/episode.rb
6
+ lib/inspector.rb
7
+ lib/sites/podnapisi.rb
8
+ lib/sites/seriessub.rb
9
+ lib/sites/tvsubtitle.rb
10
+ Manifest
11
+ Rakefile
12
+ README.markdown
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"
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{autosub}
5
- s.version = "0.3"
5
+ s.version = "0.3.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Pirate"]
@@ -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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pirate-autosub
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.3"
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pirate