subdl 0.0.5 → 0.0.6
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/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
|