serienrenamer 0.0.10 → 0.0.11

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.
data/bin/serienrenamer CHANGED
@@ -121,7 +121,7 @@ begin
121
121
  end
122
122
 
123
123
  begin
124
- epi = Serienrenamer::Episode.new(entry)
124
+ epi = Serienrenamer::Episode.new(entry, true, config[:illegal_words])
125
125
  if options[:series]
126
126
  epi.series = options[:series]
127
127
  end
data/lib/serienrenamer.rb CHANGED
@@ -3,7 +3,7 @@ $:.unshift(File.dirname(__FILE__)) unless
3
3
 
4
4
 
5
5
  module Serienrenamer
6
- VERSION = '0.0.10'
6
+ VERSION = '0.0.11'
7
7
 
8
8
  require 'serienrenamer/episode.rb'
9
9
  require 'serienrenamer/information_store.rb'
@@ -27,18 +27,18 @@ module Serienrenamer
27
27
 
28
28
  # trash words that are removed from the episodename
29
29
  @@TRASH_WORDS = %w(
30
- German Dubbed DVDRip HDTVRip XviD ITG TVR inspired HDRip
31
- AMBiTiOUS RSG SiGHT SATRip WS TVS RiP READ GERMAN dTV aTV
32
- iNTERNAL CRoW MSE c0nFuSed UTOPiA scum EXPiRED BDRiP HDTV
33
- iTunesHD 720p x264 h264 CRiSP euHD WEBRiP ZZGtv ARCHiV DD20
34
- Prim3time Nfo Repack SiMPTY BLURAYRiP BluRay DELiCiOUS Synced
35
- UNDELiCiOUS fBi CiD iTunesHDRip RedSeven OiNK idTV DL DD51 AC3
30
+ German Dubbed DVDRip HDTVRip XviD ITG TVR inspired HDRip AMBiTiOUS
31
+ RSG SiGHT SATRip WS TVS RiP READ GERMAN dTV aTV iNTERNAL CRoW MSE
32
+ c0nFuSed UTOPiA scum EXPiRED BDRiP HDTV iTunesHD 720p x264 h264
33
+ CRiSP euHD WEBRiP ZZGtv ARCHiV DD20 Prim3time Nfo Repack SiMPTY
34
+ BLURAYRiP BluRay DELiCiOUS Synced UNDELiCiOUS fBi CiD iTunesHDRip
35
+ RedSeven OiNK idTV DL DD51 AC3 1080p
36
36
  )
37
37
 
38
38
  # Constructor for the Episode-Class, which takes an episode as
39
39
  # argument and extracts as much as information from the file
40
40
  # that it can.
41
- def initialize(episodepath, episodename_needed=true)
41
+ def initialize(episodepath, episodename_needed=true, trash_words=[])
42
42
 
43
43
  raise ArgumentError, 'no episodepath provided' unless episodepath
44
44
 
@@ -51,6 +51,9 @@ module Serienrenamer
51
51
  raise ArgumentError, 'no videofile found'
52
52
  end
53
53
 
54
+ # merge trash-words from caller with standard trash words
55
+ @@TRASH_WORDS = @@TRASH_WORDS.zip(trash_words).flatten.compact
56
+
54
57
  @source_directory = nil
55
58
 
56
59
  # normalize information for dirs/files
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serienrenamer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
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-04-15 00:00:00.000000000 Z
12
+ date: 2012-09-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: wlapi
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  version: '0'
145
145
  requirements: []
146
146
  rubyforge_project:
147
- rubygems_version: 1.8.21
147
+ rubygems_version: 1.8.24
148
148
  signing_key:
149
149
  specification_version: 3
150
150
  summary: Ruby Script that brings your series into an appropriate format like \"S01E01
@@ -159,3 +159,4 @@ test_files:
159
159
  - test/test_plugin_textfile.rb
160
160
  - test/test_plugin_wikipedia.rb
161
161
  - test/test_serienjunkies_org.rb
162
+ has_rdoc: