-
Notifications
You must be signed in to change notification settings - Fork 0
/
fixup_files.py
297 lines (288 loc) · 11.8 KB
/
fixup_files.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
import json
user_fixups = {
"File:22pommes.vmod": 'Gaet',
"File:2-BAOR 1-1.vmdx": 'Rfdoane',
"File:Aev31f.vmod": 'Mbeninger',
"File:Arriala.vmod": 'Gaetbe',
"File:At the Gates of Loyang.vmod": 'Soft-bug',
"File:BattleForNormandy 2.vmod": 'Joel_Toppen',
"File:British-USMC.vmdx": 'Rfdoane',
"File:BSG Pyramid.vmod": 'Soft-bug',
"File:Burma v1 2.vmod": 'Kishel',
"File:Burma v1 31.vmod": 'Jeux12sl',
"File:Burma V1.33.vmod": 'Jeux12sl',
"File:Burma v1 34.vmod": 'DaveyJones',
"File:Carcassonne-2.0.vmod": 'ColtsFan76',
"File:Carcassonne-Simple.vmod": 'Sultan',
"File:Circus1.2.vmod": 'Skalla',
"File:Dealer McDope 1.0 .vmod": 'burdick.ip.research',
"File:End of Empire v1 3.vmod": 'Tswider2',
"File:Epic 0 2.vmod": 'Austerity',
"File:Espana1936v12.vmod": 'Norovirus',
"File:Espana1936.vmod": 'Norovirus',
"File:Espinosa v1.1.vmod": 'Taikunkikun',
"File:EuroFront II v1.8.vmod": 'bennyb',
"File:EV-1.01.vmod": 'TeTeT',
"File:EV-1.0.vmod": 'TeTeT',
"File:GBoH-Chandragupta 2.0.vmod": 'Alfonso',
"File:GBoH RAN.vmod": 'Grenadyer',
"File:GhostStories 117.vmod": 'Waddball',
"File:GhostStories 118.vmod": 'Waddball',
"File:IDF.vmdx": 'Rfdoane',
"File:IMPORTANT - readme.txt": 'Rfdoane',
"File:Khaki1.vmod": 'Dmart',
"File:LMaps-2-FRG.vmdx": 'Rfdoane',
"File:LMaps-3-BOAR.vmdx": 'Rfdoane',
"File:LoanoVassal.vmod": 'Bubulle',
"File:Machiavelli.vmod": 'Mycenae',
"File:Manv1b.vmod": 'Mbeninger',
"File:MarcoPolo.vmod": 'Yuyu',
"File:Marengo 0.3.vmod": 'Bsmith',
"File:Maria User Guide.pdf": 'SteveBish',
"File:MBT-IDF.vmod": 'Rfdoane',
"File:Mesopotamia v1 01.vmod": 'Rwein',
"File:Misterio.vmod": 'Yuyu',
"File:Multi.vmod": 'Thorndraco',
"File:Nadir DTP Pack.vmdx": 'Rfdoane',
"File:Naipe en la Ruta de la Selva.vmod": 'Packonn',
"File:Not Go v1.2.vmod": 'Narfanator',
"File:OCOWargamer41a.vmod": 'Mwilding',
"File:OdiseaEspacial.vmod": 'Yuyu',
"File:Offrandes.vmod": 'Gaetbe',
"File:Ogremanual.zip": 'Zass',
"File:OGRE.vmod": 'Zass',
"File:Op Felix.vmod": 'Jmlima',
"File:OpM v1 0.vmod": 'Kishel',
"File:Othello-Reversi.vmod": 'Aidendouglass',
"File:Outlaws.vmod": 'Jerry_Tresman',
"File:Overthetop 0.11.zip": 'Josh_Laverty',
"File:Overthetop 0.12.vmod": 'Josh_Laverty',
"File:Over the top rules v011.pdf": 'Josh_Laverty',
"File:Pacific Victory v1 1 1.vmod": 'Fbedard24',
"File:PaxRomana4.1.vmod": 'Kcoombs',
"File:Playing Cards.vmod": 'Tadufre',
"File:Pocketrockets.vmod": 'Gaetbe',
"File:Price of Freedom v1.0.vmod": 'Kcoombs',
"File:Princes of the Renaissance-0.2.vmod": 'Quicksabre',
"File:Project Discovery.vmod": 'Srmansfield',
"File:PrussiasDefiantStand-v5.vmod": 'Shilinski',
"File:PTA Vassal Sept 17 2008.vmod": 'Brennenreece',
"File:Quintet v1 0.vmod": 'Brian448',
"File:Raceday.vmod": 'Deaneubanks',
"File:Race for berlin 1.1.vmod": 'Francois_Xavier_Euze',
"File:RedDragonInn v1 6.vmod": 'Neumannium',
"File:Revolutionary Road B2C R1.01.vmod": 'Jardic',
"File:Rommel-Desert-v6.vmod": 'shilinski',
"File:Rommel-Desert-v7.vmod": 'shilinski',
"File:Royal Tank Corp v1.vmod": 'Dirk_Heinz',
"File:RustleMania v0.2.1.vmod": 'Kcoombs',
"File:Silentdeath OD 1.02.vmod": 'Dave_Faucher',
"File:SOS version history.zip": 'Brent_Easton',
"File:Spanish-Eagles-Vassal-1.0.vmod": 'Kcoombs',
"File:Starmada AE.vmod": 'MadSeason',
"File:Starmada Vassal Playing Guide.pdf": 'MadSeason',
"File:Starmada.vmod": 'Jefferyschutt',
"File:Starvation Island Ver1.vmod": 'Mark_Evans',
"File:Sticks and Stones.vmod": 'Xavier',
"File:StormOverStalingrad v12.vmod": 'Brent_Easton',
"File:StradaRomana.vmod": 'Gaetbe',
"File:Strategos 0 1.vmod": 'IrishBouzouki',
"File:Strategos 0 2.vmod": 'IrishBouzouki',
"File:Succession Wars1.01.vmod": 'Skorpio',
"File:TarotGame.vmod": 'Tarotgames',
"File:Terrain Pack.vmdx": 'Rfdoane',
"File:The Rum Run-0.1.vmod": 'Alex_Coulombe',
"File:Thunder at Cassino 1.2.vmod": 'Kaiman',
"File:Thunder at Cassino.pdf": 'Kaiman',
"File:Thunder at Cassino.vmod": 'Kaiman',
"File:Tpovs 2.0.1.vmod": 'Harm',
"File:Turret MOD.vmdx": 'Richz99',
"File:Tutorial Link.txt": 'Soft-bug',
"File:Urrah!v13.vmod": 'Yangtze',
"File:Vampires Dance.vmod": 'Soft-bug',
"File:Version History.txt": 'Rfdoane',
"File:Victory v0.7.vmod": 'Stailinn',
"File:Wolf.vmod": 'Gaetbe',
"File:World Killer v1.0 09 24 10.vmod": 'Brian448',
"File:YKv2 1.vmod": 'Kishel',
"File:YKv2.vmod": 'Kishel',
"File:Zimp.vmod": 'Soft-bug',
"File:Cannonball Colony.pdf": 'Soft-bug',
"File:Cannonball Colony.vmod": 'Soft-bug',
"File:City of Guilds.vmod": 'Soft-bug',
"File:Commodore.vmod": 'Soft-bug',
"File:Delve Dice Game.vmod": 'Soft-bug',
"File:Dune Express.vmod": 'Soft-bug',
"File:EC decks Package.zip": 'Soft-bug',
"File:Eatg1 4.vmod": 'Kurtmeyer41',
"File:En Garde v1 04.vmod": 'Rwein',
"File:AH ED.vmod": 'Fleanbilly',
"File:KS Galactic Adventures.vmod": 'Mandalorien',
"File:KS Galactic Adventures Manual V1.01 Fr.pdf": 'Mandalorien',
"File:Link.txt": 'Soft-bug',
"File:GE Vassal EN.pdf": 'Soft-bug',
"File:GalacticEmperor.vmod": 'Soft-bug',
"File:Galaxy of D.vmod": 'Soft-bug',
"File:Go.vmod": 'Soft-bug',
"File:Hibernia.vmod": 'Soft-bug',
"File:HT beta 4b.vmod": 'Blankshield',
"File:Huuue.vmod": 'Soft-bug',
"File:Aide de jeu huuue.pdf": 'Soft-bug',
"File:Iliad.vmod": 'Soft-bug',
"File:InfinityVassalModule.0 94.vmod": 'DreamSlayer',
"File:Infinity v0.4.vmod": 'LordJesse',
"File:Kahmate rules.pdf": 'Gaetbe',
"File:Kahmate.vmod": 'Gaetbe',
"File:LeapingLemmings.vmod": 'Gaetbe',
"File:Marche Samarkand.vmod": 'Soft-bug',
"File:Faiseurs Univers.vmod": 'Soft-bug',
"File:Tutorial Video Link.txt": 'Soft-bug',
"File:School Idol Hell.vmod": 'Floesnotal',
"File:North Korea Nuclear Crisis.vmod": 'JulianSC',
"File:Pc Decks.zip": 'Soft-bug',
"File:Panzer Clash.vmod": 'Soft-bug',
"File:Panzers.vmod": 'Soft-bug',
"File:Regatta.vmod": 'Gaetbe',
"File:RichardIII v6.vmod": 'Shilinski',
"File:Sagunto2.vmod": 'Horsa',
"File:SaguntoHelp&Tables.zip": 'Horsa',
"File:Stalins War v19.vmod": 'Pmarjora',
"File:Stalins War v18.vmod": 'Pmarjora',
"File:Stand at mortain.vmod": 'Kjuice',
"File:Dungeoneer-Beta.vmod": 'DInDenver',
"File:Trollland.vmod": 'Gaetbe',
"File:Tutorial Video link.txt": 'Soft-bug',
"File:Cape & Epee.vmod": 'Gaetbe',
"File:Trader.vmod": 'Gaetbe',
"File:Chabyrinthe.vmod": 'Gaetbe',
"File:Senet.vmod": 'Yuyu',
"File:Admiralty.vmod": 'Ichibrothers',
"File:Fal01.vmod": 'Jeibel',
"File:ApocalypseOfSteel.vmod": 'Ruschak',
"File:3W BattleCry!.vmod": 'Cantata',
"File:Salvo-0.2.vmod": 'Ramjack1973',
"File:Salvo.vmod": 'Ramjack1973',
"File:Etosetup.vsav": 'Mbeninger',
"File:Bg2eto.vmod": 'Mbeninger',
"File:Etosetup.vsav": 'Mbeninger',
"File:Bridge.vmod": 'Dcholtx',
"File:Conflict.vmod": 'Brigz',
"File:Dusthalo.vmod": 'Postrodent',
"File:DHrules-new.zip": 'Postrodent',
"File:EOTID.vmod": 'GJK',
"File:AT-Start.vsav": 'GJK',
"File:F\u00e9odalit\u00e9.vmod": 'Mbeninger',
"File:Using the F\u00e9odalit\u00e9 module.pdf": 'Mbeninger',
"File:First Team 11a.vmod": 'Theaney',
"File:First Team rules.pdf": 'Theaney',
"File:First Team p15.pdf": 'Theaney',
"File:THW.vmod": 'ThePup',
"File:Germania.vmod": 'Donegal',
"File:GuadalcanalInfoFiles.zip": 'Charles_McLellan',
"File:+Guad.txt": 'Charles_McLellan',
"File:GuadMaster.vmod": 'Charles_McLellan',
"File:Halebarde&gonfanon.vmod": 'Eforgeot',
"File:H&g start.vlog": 'Eforgeot',
"File:H&g tour part1.vlog": 'Eforgeot',
"File:HFP Wargamer 39b.vmod": 'Mwilding',
"File:Hera and Zeus.vmod": 'Donegal',
"File:Heroclix-02.vmod": 'Roguetrada',
"File:Iberos.vmod": 'Donegal',
"File:Justinian.vmod": 'Donegal',
"File:Khas-Rules.pdf": 'Natural20',
"File:Khas.vmod": 'Natural20',
"File:Klinzha.vmod": 'Joekid',
"File:Trojanwar.vmod": 'Mbeninger',
"File:Troie notes.pdf": 'Mbeninger',
"File:VLOS05.vmod": 'YojimboUsaka',
"File:MagicRealm.vmod": 'PieroErminio.Piotti',
"File:Monsterpocalypse 1.00.vmod": 'Arizzle',
"File:Monsterpocalypse 1.01.vmod": 'Arizzle',
"File:Monsterpocalypse 1.00 Instructions.txt": 'Arizzle',
"File:Monsterpocalypse Success Calculator.zip": 'Arizzle',
"File:Mosbys raiders.vmod": 'Toshikazu',
"File:Pegasus Bridge Mod.vmod": 'Blackhorse',
"File:RaceForTunis.vmod": 'Nadir.elfarra',
"File:Raj.vmod": 'Rk1',
"File:Rswe.vmod": 'Alsandor',
"File:RoadRage1.3.vmod": 'BetaMale',
"File:RoadRage1.4a.vmod": 'BetaMale',
"File:RmR.vmod": 'VassalJason',
"File:VMidway.vmod": 'Toze_Santos',
"File:Vinci.vmod": 'Glocko',
"File:Vjw.vmod": 'Takagi',
"File:Vino.vmod": 'Glocko',
"File:Vmbb.vmod": 'Mbeninger',
"File:Speedcircuit.vmod": 'Skalla',
"File:Targui.vmod": 'Gorodoff',
"File:Alamo.vmod": 'GJK',
"File:Alamo114.vmod": 'GJK',
"File:Rise of the Roman Republic.vmod": 'Kcoombs',
"File:AirPower.vmod": 'Jc222',
"File:TPStalingrad.vmod": 'Toze_Santos',
"File:BtB ver2-01.vmod": 'Alexander331bc',
"File:War of the suns v06.vmod": 'Brent_Easton',
"File:War of the suns v05.vmod": 'Brent_Easton',
"File:SP II v12.vmod": 'Fgbelmon',
"File:Risk2210.vmod": 'Natural20',
"File:Struggle for Europe v2.1.vmod": 'Bsmith',
"File:Perryville19.vmod": 'GJK',
"File:Scenario 1.vsav": 'GJK',
"File:Readme.txt": 'GJK',
"File:Aireaters002.vmod": 'Jimu',
"File:Aireaters006.vmod": 'Jimu',
"File:VG-7thFleet.vmod": 'Jofclark',
"File:DawnPatrol.vmod": 'Gklong01',
"File:DawnPatrol.zip": 'Gklong01',
"File:DawnPatrolv12.vmod": 'Gklong01',
"File:Dreux.vmod": 'Greenhorn',
"File:Dreux setup.vsav": 'Greenhorn',
"File:Dreux readme.txt": 'Greenhorn',
"File:Ivry.vmod": 'Greenhorn',
"File:Ivry setup.vsav": 'Greenhorn',
"File:Ivry readme.txt": 'Greenhorn',
"File:18xx Copyright.txt": 'Akiyoshi.nomura',
"File:18xx.vmod": 'Akiyoshi.nomura',
"File:18xx Readme.txt": 'Akiyoshi.nomura',
"File:18xx History.txt": 'Akiyoshi.nomura',
"File:18VA.vmdx": 'Akiyoshi.nomura',
"File:18US.vmdx": 'Akiyoshi.nomura',
"File:18Scan.vmdx": 'Akiyoshi.nomura',
"File:18GA.vmdx": 'Akiyoshi.nomura',
"File:18EU.vmdx": 'Akiyoshi.nomura',
"File:18AL.vmdx": 'Akiyoshi.nomura',
"File:1889.vmdx": 'Akiyoshi.nomura',
"File:1851.vmdx": 'Akiyoshi.nomura',
"File:1826.vmdx": 'Akiyoshi.nomura',
"File:Skies above the Reich v097.vmod": "Jimpyle",
"File:Red Strike V1.vmod": 'Combatengineer',
"File:Red Strike V1 2.vmod": 'Combatengineer',
"File:RTL Scenario 1 - The Battle of Soltsy.vmod": 'RGrossman',
"File:ITQFIIv1-4.vmod": 'GJK',
"File:ITQF-scenario-5-5-AT-START.vsav": 'GJK',
"File:ITQF2 readme.txt": 'GJK',
"File:ITQF-Gary-Instructions-001.zip": 'GJK',
"File:Vallee2005 11 13.vmod": 'LocoNeko',
"File:La Bataille de Corunnav2.vmod": 'Tormenta',
"File:CY SC 1 2 v1.vmod": 'Grouchysmurf',
"File:Blackbeard-1.11.vmod": 'Donegal',
"File:Bismarck.vmod": 'Jeff_Wise',
"File:PLEASE PLEASE README FIRST!.txt": 'Jeff_Wise',
"File:LOTRC BY D0NK1J0T3 1.1.vmod": 'D0NK1J0T3',
"File:Ahd v03.vmod": 'Wga',
"File:Ahd v02.vmod": 'Wga',
"File:Ahd v01.vmod": 'Wga',
"File:AHD.vmod": 'Wga',
}
def run():
ipath = 'data/files.json'
opath = 'data/files_fixed.json'
with open(ipath, 'r') as f:
p = json.load(f)
for k, v in p.items():
if fixup := user_fixups.get(k, None):
v['user'] = fixup
with open(opath, 'w') as f:
json.dump(p, f, indent=2)
if __name__ == '__main__':
run()