Merge branch 'master' into modernize-dev-process

This commit is contained in:
Georges-Antoine Assi
2023-05-09 11:44:33 -04:00
12 changed files with 67 additions and 11 deletions

View File

@@ -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)
<br>
# v1.8.1 (_27-04-2023_)
## Added

View File

@@ -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 | ✅ |

View File

@@ -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 ###

View File

@@ -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

View File

@@ -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="")

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 KiB

View File

@@ -1,6 +1,6 @@
<template>
<thead>
<v-row no-gutter>
<v-row no-gutters>
<v-col>
<v-list-item>
<v-row class="text-subtitle-2 align-center">
@@ -17,9 +17,9 @@
</v-list-item>
</v-col>
<v-col cols="3" xs="3" sm="1" md="1" lg="1" class="d-flex justify-center align-center mr-4">
<v-btn size="x-small" variant="text"/>
<v-btn size="x-small" variant="text"/>
<v-btn size="x-small" variant="text"/>
<v-btn size="x-small" variant="text" disabled/>
<v-btn size="x-small" variant="text" disabled/>
<v-btn size="x-small" variant="text" disabled/>
</v-col>
</v-row>
</thead>

View File

@@ -245,14 +245,14 @@ onMounted(() => {
</v-row>
</v-toolbar>
<v-card-text class="pl-2 pt-1 pr-2 scroll bg-secondary">
<v-row class="justify-center loader-searching" v-show="searching">
<v-card-text class="pa-1 scroll bg-secondary">
<v-row class="justify-center loader-searching" v-show="searching" no-gutters>
<v-progress-circular :width="2" :size="40" color="rommAccent1" indeterminate/>
</v-row>
<v-row class="justify-center no-results-searching" v-show="!searching && matchedRoms.length==0">
<v-row class="justify-center no-results-searching" v-show="!searching && matchedRoms.length==0" no-gutters>
<span>No results found</span>
</v-row>
<v-row class="pl-2 pr-2 pb-1 mt-0">
<v-row no-gutters>
<v-col class="pa-1" cols="4" xs="4" sm="3" md="3" lg="2" v-show="!searching" v-for="rom in matchedRoms" :key="rom.file_name">
<v-hover v-slot="{isHovering, props}">
<v-card @click="updateRom(updatedData=rom)" v-bind="props" :class="{'on-hover': isHovering}" :elevation="isHovering ? 20 : 3">