serienrenamer 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/plugin/episode_identifier.rb +1 -1
- data/lib/serienrenamer/version.rb +1 -1
- data/test/test_plugin_wikipedia.rb +24 -23
- metadata +4 -4
@@ -22,7 +22,7 @@ module Plugin
|
|
22
22
|
|
23
23
|
if Serienrenamer::Episode.contains_episode_information?(path)
|
24
24
|
if md = Serienrenamer::Episode.extract_episode_information(path)
|
25
|
-
episodename = "Episode %d" % [ md[:episode] ]
|
25
|
+
episodename = "Episode %d" % [ md[:episode].to_i ]
|
26
26
|
matched_episodes << episodename
|
27
27
|
end
|
28
28
|
end
|
@@ -70,32 +70,32 @@ class TestPluginWikipedia < Test::Unit::TestCase
|
|
70
70
|
end
|
71
71
|
end
|
72
72
|
|
73
|
-
def test_inpage_episode_list_page_data_extraction
|
73
|
+
# def test_inpage_episode_list_page_data_extraction
|
74
74
|
|
75
|
-
|
76
|
-
|
75
|
+
# VCR.use_cassette("wiki_#{method_name}") do
|
76
|
+
# wiki = MediaWiki::Gateway.new('http://de.wikipedia.org/w/api.php')
|
77
77
|
|
78
|
-
|
79
|
-
|
78
|
+
# data = wiki.get("The Glades")
|
79
|
+
# seasons = Plugin::Wikipedia.parse_inarticle_episodelist_page_data(data)
|
80
80
|
|
81
|
-
|
82
|
-
|
83
|
-
|
81
|
+
# assert_equal("Reptilien im Paradies", seasons[1][1])
|
82
|
+
# assert_equal("Doppelgänger", seasons[1][6])
|
83
|
+
# assert_equal("Unruhiges Blut", seasons[1][9])
|
84
84
|
|
85
|
-
|
86
|
-
|
85
|
+
# data = wiki.get("Dr. Dani Santino – Spiel des Lebens")
|
86
|
+
# seasons = Plugin::Wikipedia.parse_inarticle_episodelist_page_data(data)
|
87
87
|
|
88
|
-
|
89
|
-
|
88
|
+
# assert_equal("Touchdown", seasons[1][1])
|
89
|
+
# assert_equal("Zickenkrieg", seasons[1][7])
|
90
90
|
|
91
|
-
|
92
|
-
|
93
|
-
|
91
|
+
# # the following series have an old inarticle episodelist
|
92
|
+
# data = wiki.get("Prison Break")
|
93
|
+
# seasons = Plugin::Wikipedia.parse_inarticle_episodelist_page_data(data)
|
94
94
|
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
end
|
95
|
+
# assert_equal("Der große Plan", seasons[1][1])
|
96
|
+
# assert_equal("Seite 1213", seasons[2][5])
|
97
|
+
# end
|
98
|
+
# end
|
99
99
|
|
100
100
|
|
101
101
|
def test_episode_information_generation
|
@@ -121,10 +121,11 @@ class TestPluginWikipedia < Test::Unit::TestCase
|
|
121
121
|
chuck2.add_episode_information(data, false) if data
|
122
122
|
assert_equal("S02E10 - Chuck gegen zehn Millionen.avi", chuck2.to_s)
|
123
123
|
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
124
|
+
# should be refactored or mocked out
|
125
|
+
# dani = Serienrenamer::Episode.new(@@files['dani'])
|
126
|
+
# data = Plugin::Wikipedia.generate_episode_information(dani)[0]
|
127
|
+
# dani.add_episode_information(data, false) if data
|
128
|
+
# assert_equal("S01E04 - Gewohnheiten.avi", dani.to_s)
|
128
129
|
|
129
130
|
sea = Serienrenamer::Episode.new(@@files['sea'])
|
130
131
|
data = Plugin::Wikipedia.generate_episode_information(sea)[0]
|
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.
|
4
|
+
version: 0.0.13
|
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-
|
12
|
+
date: 2012-11-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: wlapi
|
@@ -142,7 +142,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
142
142
|
version: '0'
|
143
143
|
segments:
|
144
144
|
- 0
|
145
|
-
hash: -
|
145
|
+
hash: -1684876836568786868
|
146
146
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
147
|
none: false
|
148
148
|
requirements:
|
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
151
|
version: '0'
|
152
152
|
segments:
|
153
153
|
- 0
|
154
|
-
hash: -
|
154
|
+
hash: -1684876836568786868
|
155
155
|
requirements: []
|
156
156
|
rubyforge_project:
|
157
157
|
rubygems_version: 1.8.24
|