diff --git a/CHANGELOG.md b/CHANGELOG.md index 082acbd69..42c0e150d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,18 @@ +# v1.8.2 (_09-05-2023_) + +## Added + - Atari 2600 support added. Solves [#224](https://github.com/zurdi15/romm/issues/224) + - Atari 7800 support added. Solves [#226](https://github.com/zurdi15/romm/issues/226) + - Atari 5200 support added. Solves [#225](https://github.com/zurdi15/romm/issues/225) + - Sega 32X support added. Solves [#223](https://github.com/zurdi15/romm/issues/223) + - Nintendo Virtual Boy support added. Solves [#222](https://github.com/zurdi15/romm/issues/222) + +## Fixed + - Fixed potentially malformed urls for covers and screenshots from IGDB. Solves [#216](https://github.com/zurdi15/romm/issues/216) + - Fixed potentially scan fail with some games with large names. Solves [#229](https://github.com/zurdi15/romm/issues/229) + +
+ # v1.8.1 (_27-04-2023_) ## Added diff --git a/README.md b/README.md index 486353923..8726c2c5c 100644 --- a/README.md +++ b/README.md @@ -136,6 +136,9 @@ This will change over the time, adding games metadata for more platforms. Make s | amiga | Amiga | ✅ | | arcade | Arcade | ✅ | | atari | atari | ❌ | +| atari2600 | Atari 2600 | ✅ | +| atari5200 | Atari 5200 | ✅ | +| atari7800 | Atari 7800 | ✅ | | coleco | coleco | ❌ | | c64 | Commodore C64/128/MAX | ✅ | | cpc | cpc | ❌ | @@ -181,6 +184,7 @@ This will change over the time, adding games metadata for more platforms. Make s | psp | PlayStation Portable | ✅ | | psvita | PlayStation Vita | ✅ | | saturn | Sega Saturn | ✅ | +| sega32 | Sega 32X | ✅ | | scummvm | scummvm | ❌ | | segacd | Sega CD | ✅ | | segasgone | segasgone | ❌ | @@ -190,6 +194,7 @@ This will change over the time, adding games metadata for more platforms. Make s | snes | Super Nintendo Entertainment System | ✅ | | supervision | supervision | ❌ | | switch | Nintendo Switch | ✅ | +| virtualboy | Virtual Boy | ✅ | | wii | Wii | ✅ | | win | PC (Microsoft Windows) | ✅ | | wiiu | Wii U | ✅ | diff --git a/backend/alembic/versions/1.8.2_.py b/backend/alembic/versions/1.8.2_.py new file mode 100644 index 000000000..52e8020ad --- /dev/null +++ b/backend/alembic/versions/1.8.2_.py @@ -0,0 +1,30 @@ +"""update to 1.8.2 + +Revision ID: 1.8.2 +Revises: 1.8.1 +Create Date: 2023-05-09 00:00:19.143526 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = '1.8.2' +down_revision = '1.8.1' +branch_labels = None +depends_on = None + + +def upgrade() -> None: + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table("roms") as batch_op: + batch_op.alter_column('r_slug', type_=sa.String(length=400), existing_type=sa.String(length=100)) + # ### end Alembic commands ### + + +def downgrade() -> None: + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table("roms") as batch_op: + batch_op.alter_column('r_slug', type_=sa.String(length=100), existing_type=sa.String(length=400)) + # ### end Alembic commands ### diff --git a/backend/handler/igdb_handler.py b/backend/handler/igdb_handler.py index 821f39080..fe8342ff7 100644 --- a/backend/handler/igdb_handler.py +++ b/backend/handler/igdb_handler.py @@ -44,19 +44,25 @@ class IGDBHandler(): return {} + @staticmethod + def _normalize_cover_url(url: str) -> str: + url = f"https:{url.replace('https:', '')}" + return url + + def _search_cover(self, rom_id: str) -> str: try: res: dict = requests.post(self.covers_url, headers=self.headers, data=f"fields url; where game={rom_id};").json()[0] except IndexError: return "" - return f"https:{res['url']}" if 'url' in res.keys() else "" + return self._normalize_cover_url(res['url']) if 'url' in res.keys() else "" def _search_screenshots(self, rom_id: str) -> list: res: dict = requests.post(self.screenshots_url, headers=self.headers, data=f"fields url; where game={rom_id}; limit 5;").json() - return [f"https:{r['url']}".replace('t_thumb', 't_original') for r in res if 'url' in r.keys()] + return [self._normalize_cover_url(r['url']).replace('t_thumb', 't_original') for r in res if 'url' in r.keys()] @check_twitch_token diff --git a/backend/models/rom.py b/backend/models/rom.py index dc70aa4f7..1539f6966 100644 --- a/backend/models/rom.py +++ b/backend/models/rom.py @@ -24,7 +24,7 @@ class Rom(BaseModel): file_size_units = Column(String(length=10), default="") r_name = Column(String(length=350), default="") - r_slug = Column(String(length=100), default="") + r_slug = Column(String(length=400), default="") summary = Column(Text, default="") diff --git a/frontend/assets/platforms/atari2600.ico b/frontend/assets/platforms/atari2600.ico new file mode 100644 index 000000000..3629bd06c Binary files /dev/null and b/frontend/assets/platforms/atari2600.ico differ diff --git a/frontend/assets/platforms/atari5200.ico b/frontend/assets/platforms/atari5200.ico new file mode 100644 index 000000000..2f0fb327a Binary files /dev/null and b/frontend/assets/platforms/atari5200.ico differ diff --git a/frontend/assets/platforms/atari7800.ico b/frontend/assets/platforms/atari7800.ico new file mode 100644 index 000000000..5f785fb62 Binary files /dev/null and b/frontend/assets/platforms/atari7800.ico differ diff --git a/frontend/assets/platforms/sega32.ico b/frontend/assets/platforms/sega32.ico new file mode 100644 index 000000000..7305e85c0 Binary files /dev/null and b/frontend/assets/platforms/sega32.ico differ diff --git a/frontend/assets/platforms/virtualboy.ico b/frontend/assets/platforms/virtualboy.ico new file mode 100644 index 000000000..cd8c263d8 Binary files /dev/null and b/frontend/assets/platforms/virtualboy.ico differ diff --git a/frontend/src/components/GameGallery/ListItem/Header.vue b/frontend/src/components/GameGallery/ListItem/Header.vue index b87d88e12..7d02ec626 100644 --- a/frontend/src/components/GameGallery/ListItem/Header.vue +++ b/frontend/src/components/GameGallery/ListItem/Header.vue @@ -1,6 +1,6 @@