diff --git a/content/games/gameboycolor/sylvester-tweety-breakfast-on-the-run.md b/content/games/gameboycolor/sylvester-tweety-breakfast-on-the-run.md index dc9e6c1..48efb93 100644 --- a/content/games/gameboycolor/sylvester-tweety-breakfast-on-the-run.md +++ b/content/games/gameboycolor/sylvester-tweety-breakfast-on-the-run.md @@ -1,7 +1,7 @@ --- title: "Sylvester & Tweety: Breakfast on the Run" date: 2022-04-13 -score: 4 +score: 3 howlongtobeat_id: 28627 howlongtobeat_hrs: 3 game_name: 'Looney Tunes: Twouble' diff --git a/content/games/switch/dexter-stardust.md b/content/games/switch/dexter-stardust.md index dbaff76..679f6fa 100644 --- a/content/games/switch/dexter-stardust.md +++ b/content/games/switch/dexter-stardust.md @@ -2,11 +2,10 @@ title: "Dexter Stardust: Adventures In Outer Space" date: 2022-07-25 score: 4 +howlongtobeat_id: 110341 howlongtobeat_hrs: 6 -howlongtobeat_id: -1 game_name: "Dexter Stardust" game_genre: "Adventure" -image: "/games/switch/dexter-stardust/dexter.jpg" game_release_year: 2022 game_developer: 'Dexter Team Games' tags: diff --git a/extras/end-of-year-poster.py b/extras/end-of-year-poster.py new file mode 100644 index 0000000..e845044 --- /dev/null +++ b/extras/end-of-year-poster.py @@ -0,0 +1,29 @@ + +import glob +import re +import os + +def is_in_year(year, content): + return re.search(r"date:\s?\"?" + str(year) + "-", content) is not None + +def end_of_year(year): + games = [] + for name in glob.glob('../content/games/**/*.md'): + if not '/_index.md' in name: + with open(name) as file: + content = file.read() + + if is_in_year(year, content): + parts = name.split('/') + games.append("../static/games/" + parts[-2] + "/" + parts[-1].replace(".md", "") + "/" + "cover.jpg") + + return games + +def montage(coverlist, year): + cmd = "montage " + " ".join(coverlist) + " -geometry +0+0 -tile 8x5 -resize 170x200! collage-" + str(year) + ".jpg" + os.system(cmd) + +os.system("rm -rf *.jpg") +games_list = end_of_year(2021) +montage(games_list, 2021) +print(" -- done, see collage-[year].jpg") diff --git a/static/games/switch/dexter-stardust/cover.jpg b/static/games/switch/dexter-stardust/cover.jpg new file mode 100644 index 0000000..5e3f89d Binary files /dev/null and b/static/games/switch/dexter-stardust/cover.jpg differ diff --git a/static/games/switch/dexter-stardust/dexter.jpg b/static/games/switch/dexter-stardust/dexter.jpg deleted file mode 100644 index 94d0a3c..0000000 Binary files a/static/games/switch/dexter-stardust/dexter.jpg and /dev/null differ diff --git a/static/games/switch/spy-fox-in-dry-cereal/cover.jpg b/static/games/switch/spy-fox-in-dry-cereal/cover.jpg index bbf8594..8cf06db 100644 Binary files a/static/games/switch/spy-fox-in-dry-cereal/cover.jpg and b/static/games/switch/spy-fox-in-dry-cereal/cover.jpg differ