diff --git a/setup.sh b/setup.sh index 4741e96..3e8441f 100644 --- a/setup.sh +++ b/setup.sh @@ -590,6 +590,10 @@ def export_pdf(): img_url = f"https://cdn.cloudflare.steamstatic.com/steam/apps/{game.steam_appid}/header.jpg" img_data = io.BytesIO(requests.get(img_url, timeout=5).content) img = Image(img_data, width=3*cm, height=img_height) + elif game.url and 'gog.com' in game.url: + try: + img_path = os.path.join(app.root_path, 'static', 'gog_logo.png') + img = Image(img_path, width=3*cm, height=img_height) except Exception: img = Paragraph('', styles['Normal']) @@ -1108,6 +1112,9 @@ cat < templates/index.html {% if game.steam_appid %} Steam Header + {% elif game.url and 'gog.com' in game.url %} + GOG Logo {% endif %} {{ game.name }} @@ -1598,7 +1605,7 @@ CSS_END echo -e "\n\033[1;32m✅ Setup done! Seems to be okay!\033[0m" echo -e "Have a look in your .env" echo -e "nano .env" -echo -e "\n\033[1;32m✔️ After you are done start the system with:\033[0m" +echo -e "\n\033[1;32m✅ After you are done start the system with:\033[0m" echo -e "cd steam-gift-manager" echo -e "docker-compose build --no-cache && docker-compose up -d" echo -e "\nGenerate translations: ./translate.sh" diff --git a/steam-gift-manager/static/gog_logo.png b/steam-gift-manager/static/gog_logo.png new file mode 100644 index 0000000..eaade02 Binary files /dev/null and b/steam-gift-manager/static/gog_logo.png differ