subdl 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/subdl.rb +2 -2
- metadata +1 -1
data/lib/subdl.rb
CHANGED
@@ -34,7 +34,7 @@ class MovieFile
|
|
34
34
|
def initialize filename
|
35
35
|
@filename = filename
|
36
36
|
text = File.basename filename
|
37
|
-
remove_year_from text
|
37
|
+
text = remove_year_from text
|
38
38
|
|
39
39
|
if m = /^(.*)\.S(\d\d)E(\d\d)/.match(text)
|
40
40
|
@show = m[1].gsub '.', ' '
|
@@ -45,7 +45,7 @@ class MovieFile
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def remove_year_from text
|
48
|
-
text.gsub
|
48
|
+
text.gsub /\.20\d\d/, ''
|
49
49
|
end
|
50
50
|
|
51
51
|
def remove_leading_zeros text
|