re-add date_added field from Grouvee export

This commit is contained in:
Ben Goldsworthy 2024-02-03 16:03:15 +00:00
parent 1f5760073f
commit 4a16cb8490
4 changed files with 27639 additions and 27103 deletions

View file

@ -5,7 +5,8 @@
"Platforms": "PC",
"Developers": "Kojima Productions",
"Date Released": "2019-11-08",
"GiantBomb ID": "54232"
"GiantBomb ID": "54232",
"date_added": "2019-12-04T21:27:08Z"
},
{
"Title": "Ancestors: The Humankind Odyssey",
@ -13,7 +14,8 @@
"Date Started": "2023-08-08",
"Developers": "Panache Digital Games",
"Date Released": "2019-08-27",
"GiantBomb ID": "49527"
"GiantBomb ID": "49527",
"date_added": "2020-05-24T18:26:59Z"
},
{
"Title": "TIS-100",
@ -21,6 +23,7 @@
"Date Started": "2016-12-24",
"Developers": "Zachtronics Industries",
"Date Released": "2015-07-20",
"GiantBomb ID": "49901"
"GiantBomb ID": "49901",
"date_added": "2020-01-06T12:41:38Z"
}
]

File diff suppressed because it is too large Load diff

View file

@ -3,37 +3,36 @@
"Title": "Halo 2600",
"Developers": "",
"Date Released": "2010-07-31",
"GiantBomb ID": "32258"
"GiantBomb ID": "32258",
"date_added": "2013-07-03T14:48:07Z"
},
{
"Title": "Fear and Hunger",
"Developers": "Miro Haverinen",
"Date Released": "2018-12-11",
"GiantBomb ID": ""
"GiantBomb ID": "71763"
},
{
"Title": "Northern Journey",
"Developers": "Slid Studio",
"Date Released": "2021-08-18",
"GiantBomb ID": ""
"Date Released": "2021-08-18"
},
{
"Title": "A Good Gardener",
"Developers": "Turnfollow",
"Date Released": "",
"GiantBomb ID": ""
"GiantBomb ID": "51757"
},
{
"Title": "Before the Green Moon",
"Developers": "Turnfollow",
"Date Released": "2023-03-14",
"GiantBomb ID": ""
"Date Released": "2023-03-14"
},
{
"Title": "Inscryption",
"Developers": "Daniel Mullins Games",
"Date Released": "2021-10-19",
"GiantBomb ID": "https://www.giantbomb.com/inscryption/3030-82965/"
"GiantBomb ID": "82965"
},
{
"Title": "King of Dragon Pass",
@ -480,7 +479,7 @@
"GiantBomb ID": "16844"
},
{
"Title": "CROSS†CHANNEL",
"Title": "CROSS\u2020CHANNEL",
"Developers": "FlyingShine, Regista",
"Date Released": "2003-09-26",
"GiantBomb ID": "32147"
@ -880,7 +879,7 @@
"GiantBomb ID": "23543"
},
{
"Title": "Dudebro™ — My Shit Is Fucked Up So I Got to Shoot/Slice You II: Its Straight-Up Dawg Time",
"Title": "Dudebro\u2122 \u2014 My Shit Is Fucked Up So I Got to Shoot/Slice You II: It\u2019s Straight-Up Dawg Time",
"Developers": "Grimoire Assembly Forge",
"Date Released": "",
"GiantBomb ID": "29993"
@ -1318,7 +1317,7 @@
"GiantBomb ID": "35693"
},
{
"Title": "Déjà Vu: A Nightmare Comes True",
"Title": "D\u00e9j\u00e0 Vu: A Nightmare Comes True",
"Series": "D\\u00e9j\\u00e0 Vu, MacVenture",
"Developers": "ICOM Simulations, Inc.",
"Date Released": "1985",
@ -1333,8 +1332,7 @@
{
"Title": "Haunted Cities Volume 2",
"Developers": "Kitty Horrorshow",
"Date Released": "2017-10-31",
"GiantBomb ID": ""
"Date Released": "2017-10-31"
},
{
"Title": "PixelJunk Eden",
@ -2392,7 +2390,7 @@
"GiantBomb ID": "18742"
},
{
"Title": "Hate Plus: ~Mutes Golden Days~",
"Title": "Hate Plus: ~Mute\u2019s Golden Days~",
"Developers": "Christine Love",
"Date Released": "2013-08-19",
"GiantBomb ID": "42478"
@ -2525,7 +2523,7 @@
"GiantBomb ID": "15236"
},
{
"Title": "Pokémon Black/White Version 2",
"Title": "Pok\u00e9mon Black/White Version 2",
"Series": "Pok\\u00e9mon",
"Developers": "Game Freak, Inc.",
"Date Released": "2012-10-07",
@ -2997,7 +2995,7 @@
"GiantBomb ID": "62202"
},
{
"Title": "TrackMania² Canyon",
"Title": "TrackMania\u00b2 Canyon",
"Series": "TrackMania",
"Developers": "Nadeo",
"Date Released": "2011-09-14",
@ -4436,7 +4434,7 @@
"GiantBomb ID": "1420"
},
{
"Title": "Bientôt l'été",
"Title": "Bient\u00f4t l'\u00e9t\u00e9",
"Developers": "Tale of Tales BVBA",
"Date Released": "2013-02-06",
"GiantBomb ID": "41515"
@ -4912,7 +4910,7 @@
"Platforms": "PC",
"Developers": " 10tons Ltd",
"Date Released": "2020-11-06",
"GiantBomb ID": ""
"GiantBomb ID": "85250"
},
{
"Title": "Syphon Filter 2",
@ -5016,7 +5014,7 @@
"GiantBomb ID": "4372"
},
{
"Title": "ōdi∙um",
"Title": "\u014ddi\u2219um",
"Series": "Gorky",
"Developers": "Hyperion Entertainment, Metropolis Software House, TopWare Interactive",
"Date Released": "1999-11-30",
@ -5057,7 +5055,7 @@
"GiantBomb ID": "29299"
},
{
"Title": "Viva Piñata: Trouble in Paradise",
"Title": "Viva Pi\u00f1ata: Trouble in Paradise",
"Series": "Viva Pi\\u00f1ata",
"Developers": "Rare, Ltd.",
"Date Released": "2008-09-02",
@ -5236,7 +5234,7 @@
"GiantBomb ID": "20105"
},
{
"Title": "Sharin no Kuni, Himawari no Shōjo",
"Title": "Sharin no Kuni, Himawari no Sh\u014djo",
"Developers": "Akabei Soft",
"Date Released": "2005-11-25",
"GiantBomb ID": "33196"
@ -7424,7 +7422,7 @@
"GiantBomb ID": "24015"
},
{
"Title": "Pokémon FireRed/LeafGreen",
"Title": "Pok\u00e9mon FireRed/LeafGreen",
"Series": "Pok\\u00e9mon",
"Developers": "Creatures, Inc., Game Freak, Inc.",
"Date Released": "2004-09-07",
@ -7780,7 +7778,7 @@
"GiantBomb ID": "10081"
},
{
"Title": "Viva Piñata",
"Title": "Viva Pi\u00f1ata",
"Series": "Viva Pi\\u00f1ata",
"Developers": "Rare, Ltd.",
"Date Released": "2006-11-09",
@ -7834,7 +7832,7 @@
"GiantBomb ID": "9290"
},
{
"Title": "Chäos",
"Title": "Ch\u00e4os",
"Platforms": "Wish List: {date_added: 2013-06-22T21:58:00Z, url: https://www.grouvee.com/user/1002-544c34b8c8/shelves/4969-wish-list/}",
"Series": "Adventure",
"Developers": "Chaos;Head, Science Adventure",
@ -7927,8 +7925,7 @@
{
"Title": "Things We Lost in the Flood",
"Developers": "Awkward Silence Games",
"Date Released": "2019-06-19",
"GiantBomb ID": ""
"Date Released": "2019-06-19"
},
{
"Title": "Twisted: The Game Show",
@ -8155,7 +8152,7 @@
"GiantBomb ID": "26112"
},
{
"Title": "Pokémon HeartGold/SoulSilver",
"Title": "Pok\u00e9mon HeartGold/SoulSilver",
"Series": "Pok\\u00e9mon",
"Developers": "Game Freak, Inc.",
"Date Released": "2009-09-12",
@ -8542,8 +8539,7 @@
{
"Title": "Haunted Cities",
"Developers": "Kitty Horrorshow",
"Date Released": "2016-05-06",
"GiantBomb ID": ""
"Date Released": "2016-05-06"
},
{
"Title": "Worms World Party",
@ -8986,7 +8982,7 @@
"Title": "The Space Between",
"Developers": "Christoph Frey",
"Date Released": "2019-04-06",
"GiantBomb ID": ""
"GiantBomb ID": "74413"
},
{
"Title": "John Woo Presents Stranglehold",
@ -9084,7 +9080,7 @@
"Platforms": "PC",
"Developers": "",
"Date Released": "2021-01-04",
"GiantBomb ID": ""
"GiantBomb ID": "81879"
},
{
"Title": "Theocracy",
@ -10366,7 +10362,7 @@
"GiantBomb ID": "235"
},
{
"Title": "Assassin's Creed: Altaïr's Chronicles",
"Title": "Assassin's Creed: Alta\u00efr's Chronicles",
"Series": "Assassin's Creed",
"Developers": "Gameloft S.A.",
"Date Released": "2008-02-05",
@ -10561,8 +10557,7 @@
"Title": "PataNoir",
"Platforms": "PC",
"Developers": "",
"Date Released": "2016-06-01",
"GiantBomb ID": ""
"Date Released": "2016-06-01"
},
{
"Title": "Midnight Club 3: DUB Edition Remix",
@ -11154,7 +11149,7 @@
"GiantBomb ID": "77201"
},
{
"Title": "Brain Age²: More Training in Minutes a Day!",
"Title": "Brain Age\u00b2: More Training in Minutes a Day!",
"Series": "Brain Age, Touch! Generations",
"Developers": "Nintendo SDD Software Development Group, Nintendo SPD Group No.2",
"Date Released": "2005-12-29",
@ -12686,7 +12681,7 @@
"GiantBomb ID": "16762"
},
{
"Title": "Adventure Time: Hey Ice King! Whyd you steal our garbage?!!",
"Title": "Adventure Time: Hey Ice King! Why\u2019d you steal our garbage?!!",
"Series": "Adventure Time, Cartoon Network",
"Developers": "WayForward Technologies",
"Date Released": "2012-11-20",
@ -13661,7 +13656,7 @@
"GiantBomb ID": "31188"
},
{
"Title": "ARTé: Mecenas",
"Title": "ART\u00e9: Mecenas",
"Developers": "Triseum",
"Date Released": "2016-06-01",
"GiantBomb ID": "61359"
@ -14058,7 +14053,7 @@
"GiantBomb ID": "10692"
},
{
"Title": "Xenosaga: Episode II - Jenseits von Gut und Böse",
"Title": "Xenosaga: Episode II - Jenseits von Gut und B\u00f6se",
"Series": "Xeno, Xenosaga",
"Developers": "Monolith Software, Inc.",
"Date Released": "2005-02-15",
@ -15141,7 +15136,7 @@
"GiantBomb ID": "11602"
},
{
"Title": "Pokémon Snap",
"Title": "Pok\u00e9mon Snap",
"Series": "Pok\\u00e9mon, Pok\\u00e9mon Snap",
"Developers": "HAL Laboratory, Inc., Pax Softonica",
"Date Released": "1999-03-21",
@ -15647,7 +15642,7 @@
"GiantBomb ID": "5764"
},
{
"Title": "Pokémon Emerald",
"Title": "Pok\u00e9mon Emerald",
"Series": "Pok\\u00e9mon",
"Developers": "Game Freak, Inc.",
"Date Released": "2004-09-16",
@ -16170,7 +16165,7 @@
"GiantBomb ID": "11023"
},
{
"Title": "Pokémon Crystal",
"Title": "Pok\u00e9mon Crystal",
"Series": "Pok\\u00e9mon",
"Developers": "Game Freak, Inc.",
"Date Released": "2000-12-14",
@ -16277,7 +16272,7 @@
"GiantBomb ID": "20155"
},
{
"Title": "Please, Dont Touch Anything",
"Title": "Please, Don\u2019t Touch Anything",
"Developers": "Four Quarters",
"Date Released": "2015-03-26",
"GiantBomb ID": "49275"
@ -16351,7 +16346,7 @@
"GiantBomb ID": "38900"
},
{
"Title": "Déjà Vu II: Lost in Las Vegas",
"Title": "D\u00e9j\u00e0 Vu II: Lost in Las Vegas",
"Series": "D\\u00e9j\\u00e0 Vu, MacVenture",
"Developers": "ICOM Simulations, Inc.",
"Date Released": "1988",
@ -16820,7 +16815,7 @@
"GiantBomb ID": "17690"
},
{
"Title": "Linda³ Again",
"Title": "Linda\u00b3 Again",
"Developers": "Alfa System, MARS Corporation",
"Date Released": "1997-09-25",
"GiantBomb ID": "35981"
@ -17508,7 +17503,7 @@
"GiantBomb ID": "14615"
},
{
"Title": "Pokémon Platinum",
"Title": "Pok\u00e9mon Platinum",
"Series": "Pok\\u00e9mon",
"Developers": "Game Freak, Inc.",
"Date Released": "2008-09-13",
@ -17676,7 +17671,7 @@
"GiantBomb ID": "25651"
},
{
"Title": "Pokémon Black/White",
"Title": "Pok\u00e9mon Black/White",
"Series": "Pok\\u00e9mon",
"Developers": "Game Freak, Inc.",
"Date Released": "2011-03-06",
@ -19305,7 +19300,7 @@
"GiantBomb ID": "306"
},
{
"Title": "Imabikisō",
"Title": "Imabikis\u014d",
"Series": "Sound Novel",
"Developers": "Chunsoft",
"Date Released": "2007-10-25",
@ -19583,7 +19578,7 @@
"GiantBomb ID": "25961"
},
{
"Title": kami",
"Title": "\u014ckami",
"Platforms": "PlayStation 2",
"Series": "\\u014ckami",
"Developers": "Clover Studio, Hexa Drive, Imagica Digitalscape Co., Ltd., Ready at Dawn Studios, LLC",
@ -21651,7 +21646,7 @@
"GiantBomb ID": "24415"
},
{
"Title": "X³: Reunion",
"Title": "X\u00b3: Reunion",
"Platforms": "PC",
"Series": "X",
"Developers": "Egosoft",

View file

@ -0,0 +1,61 @@
import json
with open(f"./scripts/grouvee.json", "r", encoding="utf-8") as log_file:
orig_log_items = json.load(log_file)
for log in ["log", "current", "wishlist"]:
print(f"Processing {log}")
with open(f"./data/games/{log}.json", "r", encoding="utf-8") as log_file:
log_items = json.load(log_file)
for i, item in enumerate(log_items):
print(f"Processing {item['Title']}...")
if "GiantBomb ID" in item:
orig_item = [""]
if "" != item["GiantBomb ID"]:
orig_item = [
orig_item
for orig_item in orig_log_items
if orig_item["giantbomb_id"] == int(item["GiantBomb ID"])
]
elif "" == item["GiantBomb ID"]:
orig_item = [
orig_item
for orig_item in orig_log_items
if orig_item["name"] == item["Title"]
]
if [] == orig_item:
print(f"No item {item['Title']} found in original log!")
log_items[i] = item
break
elif 1 < len(orig_item):
raise Exception(f"Multiple items returned for {item['Title']}!")
else:
orig_item = orig_item[0]
if "Wish List" in orig_item["shelves"]:
item["date_added"] = orig_item["shelves"]["Wish List"]["date_added"]
elif "Backlog" in orig_item["shelves"]:
item["date_added"] = orig_item["shelves"]["Backlog"]["date_added"]
elif "Played" in orig_item["shelves"] and "log" == log:
item["date_added"] = orig_item["shelves"]["Played"]["date_added"]
else:
print(f"No date_added for {item['Title']}!")
log_items[i] = item
print(f"Finished processing {item['Title']}.")
with open(f"./data/games/{log}.json", "w", encoding="utf-8") as log_file:
json.dump(log_items, log_file, indent=4)
print(f"Finished processing {log}.")