psp2name/script/redump.scrap

18 lines
841 B
Text
Raw Normal View History

apply {{game_list}} to -
struct Games
2020-02-27 22:15:16 +00:00
title default("n/a") = //table[@class="games"]/tr/td[2]/a/fn:replace(normalize-space(translate(string-join(text(), ' '), '
', ' ')), '"', '""')
version default("1.0") = //table[@class="games"]/tr/td[4]/text()
languages default("") = //table[@class="games"]/tr/td[6]/string-join(img/@title, ';')
edition = //table[@class="games"]/tr/td[5]/fn:normalize-space(translate(text(), '
,',' ;'))
serial = //table[@class="games"]/tr/td[7]/(if (boolean(@title)) then translate(@title, ',', ';') else fn:translate(normalize-space(text()), ' ', '-'))
region = //table[@class="games"]/tr/td[1]/img/string(@src)
end
end
==game_list
title,edition,version,languages,serial,region
{{#Games}}
2020-02-27 21:59:26 +00:00
"{{{title}}}","{{edition}}","{{version}}","{{languages}}","{{{serial}}}","{{{region}}}"
{{/Games}}
==end