Merge branch 'master' into romm-1114

This commit is contained in:
Georges-Antoine Assi
2024-09-21 12:30:39 -04:00
58 changed files with 1293 additions and 630 deletions

BIN
.github/resources/romm_complete.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

View File

@@ -2,7 +2,7 @@
<!-- trunk-ignore(markdownlint/MD041) -->
<div align="center">
<img src=".github/resources/romm_complete.svg" height="220px" width="auto" alt="romm logo">
<img src=".github/resources/romm_complete.png" height="220px" width="auto" alt="romm logo">
<h3 style="font-size: 25px;">
A beautiful, powerful, self-hosted rom manager.

View File

@@ -8,7 +8,7 @@ from models.assets import Save, Screenshot, State # noqa
from models.base import BaseModel
from models.firmware import Firmware # noqa
from models.platform import Platform # noqa
from models.rom import Rom # noqa
from models.rom import Rom, SiblingRom # noqa
from models.user import User # noqa
from sqlalchemy import create_engine
@@ -33,6 +33,14 @@ target_metadata = BaseModel.metadata
# ... etc.
# Ignore specific models when running migrations
def include_object(object, name, type_, reflected, compare_to):
if type_ == "table" and name in [SiblingRom.__tablename__]: # Virtual table
return False
return True
def run_migrations_offline() -> None:
"""Run migrations in 'offline' mode.
@@ -53,6 +61,7 @@ def run_migrations_offline() -> None:
literal_binds=True,
dialect_opts={"paramstyle": "named"},
compare_type=True,
include_object=include_object,
)
with context.begin_transaction():
@@ -75,6 +84,7 @@ def run_migrations_online() -> None:
target_metadata=target_metadata,
render_as_batch=True,
compare_type=True,
include_object=include_object,
)
with context.begin_transaction():

View File

@@ -0,0 +1,84 @@
"""empty message
Revision ID: 0026_romuser_status_fields
Revises: 0025_roms_hashes
Create Date: 2024-08-29 15:52:56.031850
"""
import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = "0026_romuser_status_fields"
down_revision = "0025_roms_hashes"
branch_labels = None
depends_on = None
def upgrade() -> None:
with op.batch_alter_table("collections", schema=None) as batch_op:
batch_op.alter_column(
"path_cover_l",
existing_type=mysql.VARCHAR(length=1000),
type_=sa.Text(),
existing_nullable=True,
)
batch_op.alter_column(
"path_cover_s",
existing_type=mysql.VARCHAR(length=1000),
type_=sa.Text(),
existing_nullable=True,
)
with op.batch_alter_table("rom_user", schema=None) as batch_op:
batch_op.add_column(
sa.Column("last_played", sa.DateTime(timezone=True), nullable=True)
)
batch_op.add_column(sa.Column("backlogged", sa.Boolean(), nullable=False))
batch_op.add_column(sa.Column("now_playing", sa.Boolean(), nullable=False))
batch_op.add_column(sa.Column("hidden", sa.Boolean(), nullable=False))
batch_op.add_column(sa.Column("rating", sa.Integer(), nullable=False))
batch_op.add_column(sa.Column("difficulty", sa.Integer(), nullable=False))
batch_op.add_column(sa.Column("completion", sa.Integer(), nullable=False))
batch_op.add_column(
sa.Column(
"status",
sa.Enum(
"INCOMPLETE",
"FINISHED",
"COMPLETED_100",
"RETIRED",
"NEVER_PLAYING",
name="romuserstatus",
),
nullable=True,
)
)
def downgrade() -> None:
with op.batch_alter_table("rom_user", schema=None) as batch_op:
batch_op.drop_column("status")
batch_op.drop_column("completion")
batch_op.drop_column("difficulty")
batch_op.drop_column("rating")
batch_op.drop_column("hidden")
batch_op.drop_column("now_playing")
batch_op.drop_column("backlogged")
batch_op.drop_column("last_played")
with op.batch_alter_table("collections", schema=None) as batch_op:
batch_op.alter_column(
"path_cover_s",
existing_type=sa.Text(),
type_=mysql.VARCHAR(length=1000),
existing_nullable=True,
)
batch_op.alter_column(
"path_cover_l",
existing_type=sa.Text(),
type_=mysql.VARCHAR(length=1000),
existing_nullable=True,
)

View File

@@ -1,4 +1,4 @@
from datetime import datetime, timedelta
from datetime import datetime, timedelta, timezone
from typing import Annotated, Final
from endpoints.forms.identity import OAuth2RequestForm
@@ -161,9 +161,8 @@ def login(
request.session.update({"iss": "romm:auth", "sub": user.username})
# Update last login and active times
db_user_handler.update_user(
user.id, {"last_login": datetime.now(), "last_active": datetime.now()}
)
now = datetime.now(timezone.utc)
db_user_handler.update_user(user.id, {"last_login": now, "last_active": now})
return {"msg": "Successfully logged in"}

View File

@@ -1,4 +1,4 @@
from datetime import datetime
from datetime import datetime, timezone
from decorators.auth import protected_route
from endpoints.responses import MessageResponse
@@ -69,6 +69,7 @@ def get_supported_platforms(request: Request) -> list[PlatformSchema]:
db_platforms_map = {p.name: p.id for p in db_platforms}
for platform in IGDB_PLATFORM_LIST:
now = datetime.now(timezone.utc)
sup_plat = {
"id": -1,
"name": platform["name"],
@@ -77,8 +78,8 @@ def get_supported_platforms(request: Request) -> list[PlatformSchema]:
"logo_path": "",
"roms": [],
"rom_count": 0,
"created_at": datetime.now(),
"updated_at": datetime.now(),
"created_at": now,
"updated_at": now,
}
if platform["name"] in db_platforms_map:

View File

@@ -1,7 +1,7 @@
from __future__ import annotations
import re
from datetime import datetime
from datetime import datetime, timezone
from typing import NotRequired, TypedDict, get_type_hints
from endpoints.responses.assets import SaveSchema, ScreenshotSchema, StateSchema
@@ -9,8 +9,8 @@ from endpoints.responses.collection import CollectionSchema
from fastapi import Request
from handler.metadata.igdb_handler import IGDBMetadata
from handler.metadata.moby_handler import MobyMetadata
from models.rom import Rom, RomFile
from pydantic import BaseModel, Field, computed_field
from models.rom import Rom, RomFile, RomUserStatus
from pydantic import BaseModel, computed_field
SORT_COMPARE_REGEX = re.compile(r"^([Tt]he|[Aa]|[Aa]nd)\s")
@@ -26,6 +26,28 @@ RomMobyMetadata = TypedDict( # type: ignore[misc]
)
def rom_user_schema_factory() -> RomUserSchema:
now = datetime.now(timezone.utc)
return RomUserSchema(
id=-1,
user_id=-1,
rom_id=-1,
created_at=now,
updated_at=now,
note_raw_markdown="",
note_is_public=False,
is_main_sibling=False,
backlogged=False,
now_playing=False,
hidden=False,
rating=0,
difficulty=0,
completion=0,
status=None,
user__username="",
)
class RomUserSchema(BaseModel):
id: int
user_id: int
@@ -35,18 +57,26 @@ class RomUserSchema(BaseModel):
note_raw_markdown: str
note_is_public: bool
is_main_sibling: bool
backlogged: bool
now_playing: bool
hidden: bool
rating: int
difficulty: int
completion: int
status: RomUserStatus | None
user__username: str
class Config:
from_attributes = True
@classmethod
def for_user(cls, user_id: int, db_rom: Rom) -> RomUserSchema | None:
def for_user(cls, user_id: int, db_rom: Rom) -> RomUserSchema:
for n in db_rom.rom_users:
if n.user_id == user_id:
return cls.model_validate(n)
return None
# Return a dummy RomUserSchema if the user + rom combination doesn't exist
return rom_user_schema_factory()
@classmethod
def notes_for_user(cls, user_id: int, db_rom: Rom) -> list[UserNotesSchema]:
@@ -85,6 +115,7 @@ class RomSchema(BaseModel):
# Metadata fields
first_release_date: int | None
youtube_video_id: str | None
alternative_names: list[str]
genres: list[str]
franchises: list[str]
@@ -131,52 +162,52 @@ class RomSchema(BaseModel):
class SimpleRomSchema(RomSchema):
sibling_roms: list[RomSchema] = Field(default_factory=list)
rom_user: RomUserSchema | None = Field(default=None)
sibling_roms: list[RomSchema]
rom_user: RomUserSchema
@classmethod
def from_orm_with_request(cls, db_rom: Rom, request: Request) -> SimpleRomSchema:
rom = cls.model_validate(db_rom)
def from_orm_with_request(
cls, db_rom: Rom, request: Request
) -> SimpleRomSchema | None:
user_id = request.user.id
rom.rom_user = RomUserSchema.for_user(user_id, db_rom)
db_rom.rom_user = RomUserSchema.for_user(user_id, db_rom)
return rom
return cls.model_validate(db_rom)
class DetailedRomSchema(RomSchema):
merged_screenshots: list[str]
sibling_roms: list[RomSchema] = Field(default_factory=list)
rom_user: RomUserSchema | None = Field(default=None)
user_saves: list[SaveSchema] = Field(default_factory=list)
user_states: list[StateSchema] = Field(default_factory=list)
user_screenshots: list[ScreenshotSchema] = Field(default_factory=list)
user_notes: list[UserNotesSchema] = Field(default_factory=list)
user_collections: list[CollectionSchema] = Field(default_factory=list)
sibling_roms: list[RomSchema]
rom_user: RomUserSchema
user_saves: list[SaveSchema]
user_states: list[StateSchema]
user_screenshots: list[ScreenshotSchema]
user_notes: list[UserNotesSchema]
user_collections: list[CollectionSchema]
@classmethod
def from_orm_with_request(cls, db_rom: Rom, request: Request) -> DetailedRomSchema:
rom = cls.model_validate(db_rom)
user_id = request.user.id
rom.rom_user = RomUserSchema.for_user(user_id, db_rom)
rom.user_notes = RomUserSchema.notes_for_user(user_id, db_rom)
rom.user_saves = [
db_rom.rom_user = RomUserSchema.for_user(user_id, db_rom)
db_rom.user_notes = RomUserSchema.notes_for_user(user_id, db_rom)
db_rom.user_saves = [
SaveSchema.model_validate(s) for s in db_rom.saves if s.user_id == user_id
]
rom.user_states = [
db_rom.user_states = [
StateSchema.model_validate(s) for s in db_rom.states if s.user_id == user_id
]
rom.user_screenshots = [
db_rom.user_screenshots = [
ScreenshotSchema.model_validate(s)
for s in db_rom.screenshots
if s.user_id == user_id
]
rom.user_collections = CollectionSchema.for_user(
db_rom.user_collections = CollectionSchema.for_user(
user_id, db_rom.get_collections()
)
return rom
return cls.model_validate(db_rom)
class UserNotesSchema(TypedDict):

View File

@@ -126,7 +126,8 @@ def get_roms(
limit=limit,
)
return [SimpleRomSchema.from_orm_with_request(rom, request) for rom in roms]
roms = [SimpleRomSchema.from_orm_with_request(rom, request) for rom in roms]
return [rom for rom in roms if rom]
@protected_route(
@@ -539,12 +540,36 @@ async def update_rom_user(request: Request, id: int) -> RomUserSchema:
id, request.user.id
) or db_rom_handler.add_rom_user(id, request.user.id)
cleaned_data = {
"note_raw_markdown": data.get(
"note_raw_markdown", db_rom_user.note_raw_markdown
),
"note_is_public": data.get("note_is_public", db_rom_user.note_is_public),
"is_main_sibling": data.get("is_main_sibling", db_rom_user.is_main_sibling),
}
cleaned_data = {}
if "note_raw_markdown" in data:
cleaned_data.update({"note_raw_markdown": data.get("note_raw_markdown")})
if "note_is_public" in data:
cleaned_data.update({"note_is_public": data.get("note_is_public")})
if "is_main_sibling" in data:
cleaned_data.update({"is_main_sibling": data.get("is_main_sibling")})
if "backlogged" in data:
cleaned_data.update({"backlogged": data.get("backlogged")})
if "now_playing" in data:
cleaned_data.update({"now_playing": data.get("now_playing")})
if "hidden" in data:
cleaned_data.update({"hidden": data.get("hidden")})
if "rating" in data:
cleaned_data.update({"rating": data.get("rating")})
if "difficulty" in data:
cleaned_data.update({"difficulty": data.get("difficulty")})
if "completion" in data:
cleaned_data.update({"completion": data.get("completion")})
if "status" in data:
cleaned_data.update({"status": data.get("status")})
return db_rom_handler.update_rom_user(db_rom_user.id, cleaned_data)

View File

@@ -1,6 +1,9 @@
from datetime import datetime, timezone
from decorators.auth import protected_route
from endpoints.responses import MessageResponse
from endpoints.responses.assets import SaveSchema, UploadedSavesResponse
from exceptions.endpoint_exceptions import RomNotFoundInDatabaseException
from fastapi import File, HTTPException, Request, UploadFile, status
from handler.database import db_rom_handler, db_save_handler, db_screenshot_handler
from handler.filesystem import fs_asset_handler
@@ -19,6 +22,9 @@ def add_saves(
emulator: str | None = None,
) -> UploadedSavesResponse:
rom = db_rom_handler.get_rom(rom_id)
if not rom:
raise RomNotFoundInDatabaseException(rom_id)
current_user = request.user
log.info(f"Uploading saves to {rom.name}")
@@ -57,7 +63,19 @@ def add_saves(
scanned_save.emulator = emulator
db_save_handler.add_save(scanned_save)
# Set the last played time for the current user
rom_user = db_rom_handler.get_rom_user(rom.id, current_user.id)
if not rom_user:
rom_user = db_rom_handler.add_rom_user(rom.id, current_user.id)
db_rom_handler.update_rom_user(
rom_user.id, {"last_played": datetime.now(timezone.utc)}
)
# Refetch the rom to get updated saves
rom = db_rom_handler.get_rom(rom_id)
if not rom:
raise RomNotFoundInDatabaseException(rom_id)
return {
"uploaded": len(saves),
"saves": [s for s in rom.saves if s.user_id == current_user.id],
@@ -94,6 +112,16 @@ async def update_save(request: Request, id: int) -> SaveSchema:
fs_asset_handler.write_file(file=file, path=db_save.file_path)
db_save_handler.update_save(db_save.id, {"file_size_bytes": file.size})
# Set the last played time for the current user
current_user = request.user
rom_user = db_rom_handler.get_rom_user(db_save.rom_id, current_user.id)
if not rom_user:
rom_user = db_rom_handler.add_rom_user(db_save.rom_id, current_user.id)
db_rom_handler.update_rom_user(
rom_user.id, {"last_played": datetime.now(timezone.utc)}
)
# Refetch the save to get updated fields
db_save = db_save_handler.get_save(id)
return db_save

View File

@@ -1,6 +1,9 @@
from datetime import datetime, timezone
from decorators.auth import protected_route
from endpoints.responses import MessageResponse
from endpoints.responses.assets import StateSchema, UploadedStatesResponse
from exceptions.endpoint_exceptions import RomNotFoundInDatabaseException
from fastapi import File, HTTPException, Request, UploadFile, status
from handler.database import db_rom_handler, db_screenshot_handler, db_state_handler
from handler.filesystem import fs_asset_handler
@@ -19,6 +22,9 @@ def add_states(
emulator: str | None = None,
) -> UploadedStatesResponse:
rom = db_rom_handler.get_rom(rom_id)
if not rom:
raise RomNotFoundInDatabaseException(rom_id)
current_user = request.user
log.info(f"Uploading states to {rom.name}")
@@ -57,6 +63,14 @@ def add_states(
scanned_state.emulator = emulator
db_state_handler.add_state(scanned_state)
# Set the last played time for the current user
rom_user = db_rom_handler.get_rom_user(rom.id, current_user.id)
if not rom_user:
rom_user = db_rom_handler.add_rom_user(rom.id, current_user.id)
db_rom_handler.update_rom_user(
rom_user.id, {"last_played": datetime.now(timezone.utc)}
)
rom = db_rom_handler.get_rom(rom_id)
return {
"uploaded": len(states),
@@ -94,6 +108,15 @@ async def update_state(request: Request, id: int) -> StateSchema:
fs_asset_handler.write_file(file=file, path=db_state.file_path)
db_state_handler.update_state(db_state.id, {"file_size_bytes": file.size})
# Set the last played time for the current user
current_user = request.user
rom_user = db_rom_handler.get_rom_user(db_state.rom_id, current_user.id)
if not rom_user:
rom_user = db_rom_handler.add_rom_user(db_state.rom_id, current_user.id)
db_rom_handler.update_rom_user(
rom_user.id, {"last_played": datetime.now(timezone.utc)}
)
db_state = db_state_handler.get_state(id)
return db_state

View File

@@ -58,6 +58,7 @@ def test_update_rom(rename_file_mock, get_rom_by_id_mock, client, access_token,
"dlcs": "[]",
"companies": '[{"id": 203227, "company": {"id": 70, "name": "Nintendo"}}, {"id": 203307, "company": {"id": 766, "name": "Retro Studios"}}]',
"first_release_date": 1675814400,
"youtube_video_id": "dQw4w9WgXcQ",
"remasters": "[]",
"remakes": "[]",
"expanded_games": "[]",

View File

@@ -1,4 +1,4 @@
from datetime import datetime, timedelta
from datetime import datetime, timedelta, timezone
from typing import Final
from config import ROMM_AUTH_SECRET_KEY
@@ -106,9 +106,11 @@ class OAuthHandler:
to_encode = data.copy()
if expires_delta:
expire = datetime.utcnow() + expires_delta
expire = datetime.now(timezone.utc) + expires_delta
else:
expire = datetime.utcnow() + timedelta(minutes=DEFAULT_OAUTH_TOKEN_EXPIRY)
expire = datetime.now(timezone.utc) + timedelta(
minutes=DEFAULT_OAUTH_TOKEN_EXPIRY
)
to_encode.update({"exp": expire})

View File

@@ -226,7 +226,7 @@ class DBRomsHandler(DBBaseHandler):
rom_user = self.get_rom_user_by_id(id)
if data["is_main_sibling"]:
if data.get("is_main_sibling", False):
rom = self.get_rom(rom_user.rom_id)
session.execute(

View File

@@ -62,6 +62,7 @@ class IGDBMetadata(TypedDict):
total_rating: str
aggregated_rating: str
first_release_date: int | None
youtube_video_id: str | None
genres: list[str]
franchises: list[str]
alternative_names: list[str]
@@ -89,9 +90,12 @@ class IGDBRom(TypedDict):
igdb_metadata: NotRequired[IGDBMetadata]
def extract_metadata_from_igdb_rom(rom: dict) -> IGDBMetadata:
def extract_metadata_from_igdb_rom(
rom: dict, video_id: str | None = None
) -> IGDBMetadata:
return IGDBMetadata(
{
"youtube_video_id": video_id,
"total_rating": str(round(rom.get("total_rating", 0.0), 2)),
"aggregated_rating": str(round(rom.get("aggregated_rating", 0.0), 2)),
"first_release_date": rom.get("first_release_date", None),
@@ -197,6 +201,7 @@ class IGDBBaseHandler(MetadataHandler):
self.games_fields = GAMES_FIELDS
self.search_endpoint = f"{self.BASE_URL}/search"
self.search_fields = SEARCH_FIELDS
self.video_endpoint = f"{self.BASE_URL}/game_videos"
self.pagination_limit = 200
self.twitch_auth = TwitchAuth()
self.headers = {
@@ -214,7 +219,6 @@ class IGDBBaseHandler(MetadataHandler):
return wrapper
# trunk-ignore(ruff/ASYNC109): timeout is used for request
async def _request(self, url: str, data: str, timeout: int = 120) -> list:
httpx_client = ctx_httpx_client.get()
try:
@@ -436,6 +440,13 @@ class IGDBBaseHandler(MetadataHandler):
if not rom:
return fallback_rom
# Get the video ID for the game
video_ids = await self._request(
self.video_endpoint,
f'fields video_id; where game={rom["id"]};',
)
video_id = pydash.get(video_ids, "[0].video_id", None)
return IGDBRom(
igdb_id=rom["id"],
slug=rom["slug"],
@@ -450,7 +461,7 @@ class IGDBBaseHandler(MetadataHandler):
)
for s in rom.get("screenshots", [])
],
igdb_metadata=extract_metadata_from_igdb_rom(rom),
igdb_metadata=extract_metadata_from_igdb_rom(rom, video_id),
)
@check_twitch_token
@@ -467,6 +478,13 @@ class IGDBBaseHandler(MetadataHandler):
if not rom:
return IGDBRom(igdb_id=None)
# Get the video ID for the game
video_ids = await self._request(
self.video_endpoint,
f'fields video_id; where game={rom["id"]};',
)
video_id = pydash.get(video_ids, "[0].video_id", None)
return IGDBRom(
igdb_id=rom["id"],
slug=rom["slug"],
@@ -481,7 +499,7 @@ class IGDBBaseHandler(MetadataHandler):
)
for s in rom.get("screenshots", [])
],
igdb_metadata=extract_metadata_from_igdb_rom(rom),
igdb_metadata=extract_metadata_from_igdb_rom(rom, video_id),
)
@check_twitch_token

View File

@@ -46,7 +46,7 @@ def __get_sync_cache() -> Redis:
return FakeRedis(version=7)
log.info(f"Connecting to redis in {sys.argv[0]}...")
log.info(f"Connecting to sync redis in {sys.argv[0]}...")
# A separate client that auto-decodes responses is needed
client = Redis(
host=REDIS_HOST,
@@ -56,7 +56,7 @@ def __get_sync_cache() -> Redis:
db=REDIS_DB,
decode_responses=True,
)
log.info(f"Redis connection established in {sys.argv[0]}!")
log.info(f"Redis sync connection established in {sys.argv[0]}!")
return client
@@ -67,7 +67,7 @@ def __get_async_cache() -> AsyncRedis:
return FakeAsyncRedis(version=7)
log.info(f"Connecting to redis in {sys.argv[0]}...")
log.info(f"Connecting to async redis in {sys.argv[0]}...")
# A separate client that auto-decodes responses is needed
client = AsyncRedis(
host=REDIS_HOST,
@@ -77,7 +77,7 @@ def __get_async_cache() -> AsyncRedis:
db=REDIS_DB,
decode_responses=True,
)
log.info(f"Redis connection established in {sys.argv[0]}!")
log.info(f"Redis async connection established in {sys.argv[0]}!")
return client

View File

@@ -17,6 +17,8 @@ from models.platform import Platform
from models.rom import Rom
from models.user import User
NON_HASHABLE_PLATFORMS = ["pc", "win", "mac", "linux"]
class ScanType(Enum):
NEW_PLATFORMS = "new_platforms"
@@ -232,8 +234,14 @@ async def scan_rom(
# Calculating hashes is expensive, so we only do it if necessary
if not rom or scan_type == ScanType.COMPLETE or scan_type == ScanType.HASHES:
rom_hashes = fs_rom_handler.get_rom_hashes(rom_attrs["file_name"], roms_path)
rom_attrs.update(**rom_hashes)
# Skip hashing games for platforms that don't have a hash database
if platform.slug in NON_HASHABLE_PLATFORMS:
rom_attrs.update({"crc_hash": "", "md5_hash": "", "sha1_hash": ""})
else:
rom_hashes = fs_rom_handler.get_rom_hashes(
rom_attrs["file_name"], roms_path
)
rom_attrs.update(**rom_hashes)
# If no metadata scan is required
if scan_type == ScanType.HASHES:

View File

@@ -2,20 +2,22 @@ interactions:
- request:
body: fields id,name; where slug="n64"; limit 200;
headers:
Accept:
accept:
- application/json
Accept-Encoding:
- gzip, deflate
Authorization:
accept-encoding:
- gzip, deflate, br
authorization:
- Bearer test_token
Client-ID:
client-id:
- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection:
connection:
- keep-alive
Content-Length:
content-length:
- "44"
User-Agent:
- python-requests/2.32.3
host:
- api.igdb.com
user-agent:
- python-httpx/0.27.0
method: POST
uri: https://api.igdb.com/v4/platforms
response:
@@ -31,7 +33,7 @@ interactions:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8954456aa9091cd4-BUD
- 8c0446041af7aaa4-YYZ
Connection:
- keep-alive
Content-Length:
@@ -39,12 +41,12 @@ interactions:
Content-Type:
- application/json
Date:
- Mon, 17 Jun 2024 16:03:42 GMT
- Mon, 09 Sep 2024 04:00:49 GMT
Server:
- cloudflare
Set-Cookie:
- __cf_bm=TvCGrl03utW_uL8ydwhyI2KREebWDuL9NcblPAZjIVc-1718640222-1.0.1.1-yM_GpZQqO_WEMOMA82bCwwcw3Ddz1tIG_zFCr5_nMOG2vFadF1EwBeSzvs98sEbRmyphK8DEyhtIt1Di1oom1A;
path=/; expires=Mon, 17-Jun-24 16:33:42 GMT; domain=.igdb.com; HttpOnly; Secure;
- __cf_bm=sjY4VydC64JVy6pLLWORdQkqzHqfYTnRj_1BVvezT2k-1725854449-1.0.1.1-DYMlZ3H_61d3oZPkzh6KHGWvadSErGTz6TuNMVdsJHi1yzTvuwmls_iMvj3h9OQh7ijf1lzdn_yrDncMlSRVCw;
path=/; expires=Mon, 09-Sep-24 04:30:49 GMT; domain=.igdb.com; HttpOnly; Secure;
SameSite=None
Strict-Transport-Security:
- max-age=31536000; includeSubDomains; preload
@@ -53,41 +55,43 @@ interactions:
alt-svc:
- h3=":443"; ma=86400
via:
- 1.1 5dbbe1c6db9a003131a63be8ded250a4.cloudfront.net (CloudFront)
- 1.1 a44cf9ed8a499212c53e0b8f57aa31f4.cloudfront.net (CloudFront)
x-amz-apigw-id:
- ZhOuyGawPHcEmUQ=
- d0blxEVdPHcEiJg=
x-amz-cf-id:
- yXBecbRzM674HMnCZIaYWsqUiSWlrtmBw8CPPIlBhScuigVg6P9xjg==
- LdihAJTohkx0uxEl9Ooa9XmczflSSEvLX6FDjmrnIozW2AM4E6_ZIQ==
x-amz-cf-pop:
- FRA56-P8
- YTO50-P1
x-amzn-errortype:
- AccessDeniedException
x-amzn-requestid:
- 3e53a3ee-5c90-491e-9672-c7a048bd596b
- 55e8e242-e61c-4060-9ccf-53dce6802560
x-cache:
- Error from cloudfront
status:
code: 401
message: Unauthorized
- request:
body: null
body: ""
headers:
Accept:
accept:
- "*/*"
Accept-Encoding:
- gzip, deflate
Connection:
accept-encoding:
- gzip, deflate, br
connection:
- keep-alive
Content-Length:
content-length:
- "0"
User-Agent:
- python-requests/2.32.3
host:
- id.twitch.tv
user-agent:
- python-httpx/0.27.0
method: POST
uri: https://id.twitch.tv/oauth2/token?client_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&client_secret=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&grant_type=client_credentials
response:
body:
string:
'{"access_token":"emaxpf4c7rlbt30js8iif0el0nygp8","expires_in":5647699,"token_type":"bearer"}
'{"access_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","expires_in":5663717,"token_type":"bearer"}
'
headers:
@@ -100,53 +104,56 @@ interactions:
Content-Type:
- application/json
Date:
- Mon, 17 Jun 2024 16:03:43 GMT
- Mon, 09 Sep 2024 04:00:50 GMT
Server:
- nginx
X-Ctxlog-Logid:
- 1-66705e5f-11952900765a988e7c6e449b
- 1-66de72f1-7530704306b7aeaf271de9b0
status:
code: 200
message: OK
- request:
body: fields id,name; where slug="n64"; limit 200;
headers:
Accept:
accept:
- application/json
Accept-Encoding:
- gzip, deflate
Authorization:
- Bearer emaxpf4c7rlbt30js8iif0el0nygp8
Client-ID:
accept-encoding:
- gzip, deflate, br
authorization:
- Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
client-id:
- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection:
connection:
- keep-alive
Content-Length:
content-length:
- "44"
User-Agent:
- python-requests/2.32.3
cookie:
- __cf_bm=sjY4VydC64JVy6pLLWORdQkqzHqfYTnRj_1BVvezT2k-1725854449-1.0.1.1-DYMlZ3H_61d3oZPkzh6KHGWvadSErGTz6TuNMVdsJHi1yzTvuwmls_iMvj3h9OQh7ijf1lzdn_yrDncMlSRVCw
host:
- api.igdb.com
user-agent:
- python-httpx/0.27.0
method: POST
uri: https://api.igdb.com/v4/platforms
response:
body:
string: "[\n {\n \"id\": 4,\n \"name\": \"Nintendo 64\"\n }\n]"
string: !!binary |
IcQAACDwn7d+Jb39LJqgBKGYYCMITtFMUaRRNFANngFoDWViCO97KqOy/E4fhxRl8K0ZAw==
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 895445746e561cd8-BUD
- 8c044609dfd4aaa4-YYZ
Connection:
- keep-alive
Content-Encoding:
- br
Content-Type:
- application/json
Date:
- Mon, 17 Jun 2024 16:03:44 GMT
- Mon, 09 Sep 2024 04:00:50 GMT
Server:
- cloudflare
Set-Cookie:
- __cf_bm=aTy_gWfTO4HWMKGVEyqkLYevxkHNwBf3NYbxA7cEV9k-1718640224-1.0.1.1-i4sqDvwxyTxgpX9IqeuQMc0D8InY3tHxTRxho221fuit1Vq0siMm7cXNEM2aMmblInMFmo8BYxqZ5zGZsXtMdQ;
path=/; expires=Mon, 17-Jun-24 16:33:44 GMT; domain=.igdb.com; HttpOnly; Secure;
SameSite=None
Strict-Transport-Security:
- max-age=31536000; includeSubDomains; preload
Transfer-Encoding:
@@ -156,43 +163,47 @@ interactions:
alt-svc:
- h3=":443"; ma=86400
via:
- 1.1 1e0f88a39289286be3e03ff93487da80.cloudfront.net (CloudFront)
- 1.1 20f9576431d2962bf870247ded502538.cloudfront.net (CloudFront)
x-amz-apigw-id:
- ZhOvAEWYPHcEDOQ=
- d0bl6FZDvHcEIow=
x-amz-cf-id:
- 4t1ulbfMmOP0s2nEgG6Yu1ftGtPiPaC9-sHNM8DHtumIZZFNJth-YA==
- s199US7PmuBSeMqMyENeM3JCZwzvSBxdSNB2f9wyLixAIrx8KCewMA==
x-amz-cf-pop:
- FRA56-P8
- YTO50-P1
x-amzn-remapped-content-length:
- "50"
x-amzn-remapped-date:
- Mon, 17 Jun 2024 16:03:43 GMT
- Mon, 09 Sep 2024 04:00:50 GMT
x-amzn-requestid:
- cc9ed3b6-4195-4b6a-922c-d5d0c4227ad2
- a544b73f-7c1c-4a6f-8099-3fac7e0c40f8
x-cache:
- Miss from cloudfront
x-count:
- "1"
x-pool:
- slow
status:
code: 200
message: OK
- request:
body: fields id,name; where slug=""; limit 200;
headers:
Accept:
accept:
- application/json
Accept-Encoding:
- gzip, deflate
Authorization:
accept-encoding:
- gzip, deflate, br
authorization:
- Bearer test_token
Client-ID:
client-id:
- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection:
connection:
- keep-alive
Content-Length:
content-length:
- "41"
User-Agent:
- python-requests/2.32.3
host:
- api.igdb.com
user-agent:
- python-httpx/0.27.0
method: POST
uri: https://api.igdb.com/v4/platforms
response:
@@ -208,7 +219,7 @@ interactions:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 895445784eff68b5-BUD
- 8c04460c5e77aaf4-YYZ
Connection:
- keep-alive
Content-Length:
@@ -216,12 +227,12 @@ interactions:
Content-Type:
- application/json
Date:
- Mon, 17 Jun 2024 16:03:45 GMT
- Mon, 09 Sep 2024 04:00:50 GMT
Server:
- cloudflare
Set-Cookie:
- __cf_bm=gUD7CGHbbRYNhfkH1sA.kS.0XmsBiw0TQXfRJrwuU84-1718640225-1.0.1.1-_OSqpovtQghNqxSoTeCrl4cAC7Tdz_OS2CdC0TFwyAxqwnzDnBTymRXbdaURYyuWXFV5WB2N0lVG4ALl8vuOgA;
path=/; expires=Mon, 17-Jun-24 16:33:45 GMT; domain=.igdb.com; HttpOnly; Secure;
- __cf_bm=Jat24qPjsOoVAfI1A37h2_49j.42qFUxjOdafz_lIOw-1725854450-1.0.1.1-SjDrIXIhTVSb28y.p3eyNCLUgBvBYspDnmFqZjfd1kL5gJfNteebA87hjxDiEOLMcRQJvqaxZvkve6zRc63TiQ;
path=/; expires=Mon, 09-Sep-24 04:30:50 GMT; domain=.igdb.com; HttpOnly; Secure;
SameSite=None
Strict-Transport-Security:
- max-age=31536000; includeSubDomains; preload
@@ -230,41 +241,43 @@ interactions:
alt-svc:
- h3=":443"; ma=86400
via:
- 1.1 b7c8b552077b93dc0acaa0b82d11fa62.cloudfront.net (CloudFront)
- 1.1 490c6f54e6cd81b80f07ff6be833267e.cloudfront.net (CloudFront)
x-amz-apigw-id:
- ZhOvHGJ0vHcEplg=
- d0bl9HwcPHcEFug=
x-amz-cf-id:
- fPRgpDjIs5s9lyV72fdkwgAO945qmzkiO4cAyzWvZJ9dONgbOq5MbA==
- iIeGPppNzBbXatePVMUfbeXPILwUgaz05mckVGYtkiRzCxFp2IfhJQ==
x-amz-cf-pop:
- FRA56-P8
- YTO50-P1
x-amzn-errortype:
- AccessDeniedException
x-amzn-requestid:
- 5710ca40-1b77-45d8-9283-554460deb589
- 544a89f3-81e8-40c0-ac90-2b26b8c397db
x-cache:
- Error from cloudfront
status:
code: 401
message: Unauthorized
- request:
body: null
body: ""
headers:
Accept:
accept:
- "*/*"
Accept-Encoding:
- gzip, deflate
Connection:
accept-encoding:
- gzip, deflate, br
connection:
- keep-alive
Content-Length:
content-length:
- "0"
User-Agent:
- python-requests/2.32.3
host:
- id.twitch.tv
user-agent:
- python-httpx/0.27.0
method: POST
uri: https://id.twitch.tv/oauth2/token?client_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&client_secret=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&grant_type=client_credentials
response:
body:
string:
'{"access_token":"wuxsvs55uzd59noni1vq1w4gez1tok","expires_in":4961287,"token_type":"bearer"}
'{"access_token":"2gqi94oorguwsrvn55s325mxth1t30","expires_in":5390596,"token_type":"bearer"}
'
headers:
@@ -277,31 +290,35 @@ interactions:
Content-Type:
- application/json
Date:
- Mon, 17 Jun 2024 16:03:46 GMT
- Mon, 09 Sep 2024 04:00:51 GMT
Server:
- nginx
X-Ctxlog-Logid:
- 1-66705e61-11a882db1ddf5a8237265f6c
- 1-66de72f3-7c84f02a46fd560c2c982304
status:
code: 200
message: OK
- request:
body: fields id,name; where slug=""; limit 200;
headers:
Accept:
accept:
- application/json
Accept-Encoding:
- gzip, deflate
Authorization:
- Bearer wuxsvs55uzd59noni1vq1w4gez1tok
Client-ID:
accept-encoding:
- gzip, deflate, br
authorization:
- Bearer 2gqi94oorguwsrvn55s325mxth1t30
client-id:
- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection:
connection:
- keep-alive
Content-Length:
content-length:
- "41"
User-Agent:
- python-requests/2.32.3
cookie:
- __cf_bm=Jat24qPjsOoVAfI1A37h2_49j.42qFUxjOdafz_lIOw-1725854450-1.0.1.1-SjDrIXIhTVSb28y.p3eyNCLUgBvBYspDnmFqZjfd1kL5gJfNteebA87hjxDiEOLMcRQJvqaxZvkve6zRc63TiQ
host:
- api.igdb.com
user-agent:
- python-httpx/0.27.0
method: POST
uri: https://api.igdb.com/v4/platforms
response:
@@ -311,7 +328,7 @@ interactions:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 89544585e87ac1cd-BUD
- 8c044611b9d9aaf4-YYZ
Connection:
- keep-alive
Content-Length:
@@ -319,13 +336,9 @@ interactions:
Content-Type:
- application/json
Date:
- Mon, 17 Jun 2024 16:03:46 GMT
- Mon, 09 Sep 2024 04:00:51 GMT
Server:
- cloudflare
Set-Cookie:
- __cf_bm=S4zvm8n8CODJny82N8B3HjbghVvZa0Q9bLy7VNAvMyY-1718640226-1.0.1.1-uhZ4jsj7Z.6_BbMm0tpbfxdhEOaRbFW3fRIuE1GVbmRNhocfmJ7CCC9mVAPId09S7wpABF2iB3dumAA5WIjrKg;
path=/; expires=Mon, 17-Jun-24 16:33:46 GMT; domain=.igdb.com; HttpOnly; Secure;
SameSite=None
Strict-Transport-Security:
- max-age=31536000; includeSubDomains; preload
X-Content-Type-Options:
@@ -333,43 +346,49 @@ interactions:
alt-svc:
- h3=":443"; ma=86400
via:
- 1.1 1e0f88a39289286be3e03ff93487da80.cloudfront.net (CloudFront)
- 1.1 490c6f54e6cd81b80f07ff6be833267e.cloudfront.net (CloudFront)
x-amz-apigw-id:
- ZhOvaFXKPHcEZoQ=
- d0bmHH5yPHcEb1Q=
x-amz-cf-id:
- kOZy7iLktTLH5LpuANbdlBMeEep_bKCLDhQPuj6TSs_rMTlLIrDXPw==
- OgxUiXjH-N9qICjt0piT6tRYtTm5h-gf55rDirrC5ZQ_93is5L8ScA==
x-amz-cf-pop:
- FRA56-P8
- YTO50-P1
x-amzn-remapped-content-length:
- "2"
x-amzn-remapped-date:
- Mon, 17 Jun 2024 16:03:46 GMT
- Mon, 09 Sep 2024 04:00:51 GMT
x-amzn-requestid:
- e895522e-7ed5-48af-8f7e-80263c41c55e
- 68b59619-9f77-4d4c-81b2-969d547b53a1
x-cache:
- Miss from cloudfront
x-count:
- "0"
x-pool:
- slow
status:
code: 200
message: OK
- request:
body: fields id,name; where slug=""; limit 200;
headers:
Accept:
accept:
- application/json
Accept-Encoding:
- gzip, deflate
Authorization:
- Bearer wuxsvs55uzd59noni1vq1w4gez1tok
Client-ID:
accept-encoding:
- gzip, deflate, br
authorization:
- Bearer 2gqi94oorguwsrvn55s325mxth1t30
client-id:
- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection:
connection:
- keep-alive
Content-Length:
content-length:
- "41"
User-Agent:
- python-requests/2.32.3
cookie:
- __cf_bm=Jat24qPjsOoVAfI1A37h2_49j.42qFUxjOdafz_lIOw-1725854450-1.0.1.1-SjDrIXIhTVSb28y.p3eyNCLUgBvBYspDnmFqZjfd1kL5gJfNteebA87hjxDiEOLMcRQJvqaxZvkve6zRc63TiQ
host:
- api.igdb.com
user-agent:
- python-httpx/0.27.0
method: POST
uri: https://api.igdb.com/v4/platform_versions
response:
@@ -379,7 +398,7 @@ interactions:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 895445884fe66847-BUD
- 8c0446145c3aaaf4-YYZ
Connection:
- keep-alive
Content-Length:
@@ -387,13 +406,9 @@ interactions:
Content-Type:
- application/json
Date:
- Mon, 17 Jun 2024 16:03:46 GMT
- Mon, 09 Sep 2024 04:00:52 GMT
Server:
- cloudflare
Set-Cookie:
- __cf_bm=EsMSXikvSpKrFPTBAB6_OBLnqkecPuhdU994JBnpSyQ-1718640226-1.0.1.1-SuDA1nw3BEJ3qc20ZSY.IqU8RM3KPapCYk.UmO3EJaDi1i34KSo5uMf3g.14pUm7WTMJNzMsJl0NLxRzgCdX.w;
path=/; expires=Mon, 17-Jun-24 16:33:46 GMT; domain=.igdb.com; HttpOnly; Secure;
SameSite=None
Strict-Transport-Security:
- max-age=31536000; includeSubDomains; preload
X-Content-Type-Options:
@@ -401,23 +416,25 @@ interactions:
alt-svc:
- h3=":443"; ma=86400
via:
- 1.1 1e0f88a39289286be3e03ff93487da80.cloudfront.net (CloudFront)
- 1.1 490c6f54e6cd81b80f07ff6be833267e.cloudfront.net (CloudFront)
x-amz-apigw-id:
- ZhOvdGS4PHcEk9g=
- d0bmLFGePHcET9Q=
x-amz-cf-id:
- 6iAscp4gUnYmobcPfyOuZQwMGZ0YUu8eahhnsGhTZGXq7h4GcVUNcQ==
- ZZYXxenlmY8Jo8YEVxUfLPZtoN_MynqsJE5vj2PweWkqx7I0mty8Xg==
x-amz-cf-pop:
- FRA56-P8
- YTO50-P1
x-amzn-remapped-content-length:
- "2"
x-amzn-remapped-date:
- Mon, 17 Jun 2024 16:03:46 GMT
- Mon, 09 Sep 2024 04:00:52 GMT
x-amzn-requestid:
- fb152fd2-097c-4685-a6a2-89ca39583612
- dfab708b-c79c-4bad-b649-1d56870fe813
x-cache:
- Miss from cloudfront
x-count:
- "0"
x-pool:
- slow
status:
code: 200
message: OK

View File

@@ -4,20 +4,22 @@ interactions:
search "Paper Mario"; fields id,name,slug,summary,total_rating,aggregated_rating,first_release_date,artworks.url,cover.url,screenshots.url,platforms.id,platforms.name,alternative_names.name,genres.name,franchise.name,franchises.name,collections.name,game_modes.name,involved_companies.company.name,expansions.id,expansions.slug,expansions.name,expansions.cover.url,expanded_games.id,expanded_games.slug,expanded_games.name,expanded_games.cover.url,dlcs.id,dlcs.name,dlcs.slug,dlcs.cover.url,remakes.id,remakes.slug,remakes.name,remakes.cover.url,remasters.id,remasters.slug,remasters.name,remasters.cover.url,ports.id,ports.slug,ports.name,ports.cover.url,similar_games.id,similar_games.slug,similar_games.name,similar_games.cover.url;
where platforms=[4] & (category=0 | category=10); limit 200;
headers:
Accept:
accept:
- application/json
Accept-Encoding:
- gzip, deflate
Authorization:
accept-encoding:
- gzip, deflate, br
authorization:
- Bearer test_token
Client-ID:
client-id:
- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection:
connection:
- keep-alive
Content-Length:
content-length:
- "796"
User-Agent:
- python-requests/2.32.0
host:
- api.igdb.com
user-agent:
- python-httpx/0.27.0
method: POST
uri: https://api.igdb.com/v4/games
response:
@@ -33,7 +35,7 @@ interactions:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8a4509ef2f06ab0c-YYZ
- 8c0445b39b8dabd6-YYZ
Connection:
- keep-alive
Content-Length:
@@ -41,12 +43,12 @@ interactions:
Content-Type:
- application/json
Date:
- Tue, 16 Jul 2024 21:20:53 GMT
- Mon, 09 Sep 2024 04:00:36 GMT
Server:
- cloudflare
Set-Cookie:
- __cf_bm=K63xoXgTxGJm.n8D27NJG_ly4hN5z2J6yYDTzgLbD80-1721164853-1.0.1.1-p2nx3KwSJSjeNAWPDw0cRQAUg6YHgO_Y3Z0jYU6sB2Yr5fkj8Db6FRqWdlVSS5EN_6KieLIwqUxDUg4J45h50g;
path=/; expires=Tue, 16-Jul-24 21:50:53 GMT; domain=.igdb.com; HttpOnly; Secure;
- __cf_bm=ZTkzLY1Wz3Lq3KdkQQpVj0yhgTOXkbAP9lPgbSV.fTY-1725854436-1.0.1.1-.UtTECTjipcRDIa3.6ZWDiOQNj0q9mHlDSCB2265Xcox2wuSZ6hHVY_mke1BBtuYQIMilhWlObkmR7PM1tX6RQ;
path=/; expires=Mon, 09-Sep-24 04:30:36 GMT; domain=.igdb.com; HttpOnly; Secure;
SameSite=None
Strict-Transport-Security:
- max-age=31536000; includeSubDomains; preload
@@ -55,41 +57,43 @@ interactions:
alt-svc:
- h3=":443"; ma=86400
via:
- 1.1 1acedc07a77a02e11785c2290515f2e4.cloudfront.net (CloudFront)
- 1.1 1005873908b937da8d6e408eda0fb9e0.cloudfront.net (CloudFront)
x-amz-apigw-id:
- bBiYcG8dvHcEJyg=
- d0bjwHzrPHcEtQg=
x-amz-cf-id:
- 5BP2CkODtFEThqTb1WSzRtjpsi2tscDJRx4NmPXzCpmEQod5maIjnQ==
- Sf46nvswLwbFt_dJ5Ve5KvqLFp-odcsTS64D_cjG6rDGktuFotMRNw==
x-amz-cf-pop:
- ORD51-C2
- YTO50-P1
x-amzn-errortype:
- AccessDeniedException
x-amzn-requestid:
- b6b00df1-1438-4aa1-bda3-0cd0f7c23296
- fe684a1e-715f-47ce-9b11-a000f167acbd
x-cache:
- Error from cloudfront
status:
code: 401
message: Unauthorized
- request:
body: null
body: ""
headers:
Accept:
accept:
- "*/*"
Accept-Encoding:
- gzip, deflate
Connection:
accept-encoding:
- gzip, deflate, br
connection:
- keep-alive
Content-Length:
content-length:
- "0"
User-Agent:
- python-requests/2.32.0
host:
- id.twitch.tv
user-agent:
- python-httpx/0.27.0
method: POST
uri: https://id.twitch.tv/oauth2/token?client_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&client_secret=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&grant_type=client_credentials
response:
body:
string:
'{"access_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","expires_in":5624809,"token_type":"bearer"}
'{"access_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","expires_in":4930334,"token_type":"bearer"}
'
headers:
@@ -102,11 +106,11 @@ interactions:
Content-Type:
- application/json
Date:
- Tue, 16 Jul 2024 21:20:54 GMT
- Mon, 09 Sep 2024 04:00:37 GMT
Server:
- nginx
X-Ctxlog-Logid:
- 1-6696e436-783213912ac0e5067f1e9592
- 1-66de72e5-20e8932a7697667d209b366f
status:
code: 200
message: OK
@@ -115,120 +119,73 @@ interactions:
search "Paper Mario"; fields id,name,slug,summary,total_rating,aggregated_rating,first_release_date,artworks.url,cover.url,screenshots.url,platforms.id,platforms.name,alternative_names.name,genres.name,franchise.name,franchises.name,collections.name,game_modes.name,involved_companies.company.name,expansions.id,expansions.slug,expansions.name,expansions.cover.url,expanded_games.id,expanded_games.slug,expanded_games.name,expanded_games.cover.url,dlcs.id,dlcs.name,dlcs.slug,dlcs.cover.url,remakes.id,remakes.slug,remakes.name,remakes.cover.url,remasters.id,remasters.slug,remasters.name,remasters.cover.url,ports.id,ports.slug,ports.name,ports.cover.url,similar_games.id,similar_games.slug,similar_games.name,similar_games.cover.url;
where platforms=[4] & (category=0 | category=10); limit 200;
headers:
Accept:
accept:
- application/json
Accept-Encoding:
- gzip, deflate
Authorization:
accept-encoding:
- gzip, deflate, br
authorization:
- Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Client-ID:
client-id:
- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection:
connection:
- keep-alive
Content-Length:
content-length:
- "796"
User-Agent:
- python-requests/2.32.0
cookie:
- __cf_bm=ZTkzLY1Wz3Lq3KdkQQpVj0yhgTOXkbAP9lPgbSV.fTY-1725854436-1.0.1.1-.UtTECTjipcRDIa3.6ZWDiOQNj0q9mHlDSCB2265Xcox2wuSZ6hHVY_mke1BBtuYQIMilhWlObkmR7PM1tX6RQ
host:
- api.igdb.com
user-agent:
- python-httpx/0.27.0
method: POST
uri: https://api.igdb.com/v4/games
response:
body:
string:
"[\n {\n \"id\": 3340,\n \"aggregated_rating\": 90.0,\n \"alternative_names\":
[\n {\n \"id\": 39105,\n \"name\": \"Zhi Pian Mario\"\n
\ },\n {\n \"id\": 51791,\n \"name\": \"\u30DE\u30EA\u30AA\u30B9\u30C8\u30FC\u30EA\u30FC\"\n
\ },\n {\n \"id\": 51792,\n \"name\": \"\u7EB8\u7247\u9A6C\u91CC\u5965\"\n
\ },\n {\n \"id\": 78718,\n \"name\": \"Mario Story\"\n
\ },\n {\n \"id\": 88088,\n \"name\": \"Super Mario
RPG 2\"\n },\n {\n \"id\": 119107,\n \"name\": \"\u7EB8\u7247\u9A6C\u529B\u6B27\"\n
\ },\n {\n \"id\": 137285,\n \"name\": \"\uD398\uC774\uD37C
\uB9C8\uB9AC\uC624\"\n }\n ],\n \"artworks\": [\n {\n \"id\":
73649,\n \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/ar1ktt.jpg\"\n
\ }\n ],\n \"cover\": {\n \"id\": 80830,\n \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/co1qda.jpg\"\n
\ },\n \"first_release_date\": 965952000,\n \"franchises\": [\n {\n
\ \"id\": 845,\n \"name\": \"Mario\"\n }\n ],\n \"game_modes\":
[\n {\n \"id\": 1,\n \"name\": \"Single player\"\n }\n
\ ],\n \"genres\": [\n {\n \"id\": 12,\n \"name\":
\"Role-playing (RPG)\"\n },\n {\n \"id\": 16,\n \"name\":
\"Turn-based strategy (TBS)\"\n },\n {\n \"id\": 31,\n \"name\":
\"Adventure\"\n }\n ],\n \"involved_companies\": [\n {\n \"id\":
148214,\n \"company\": {\n \"id\": 70,\n \"name\":
\"Nintendo\"\n }\n },\n {\n \"id\": 225578,\n \"company\":
{\n \"id\": 5163,\n \"name\": \"iQue\"\n }\n },\n
\ {\n \"id\": 225579,\n \"company\": {\n \"id\":
812,\n \"name\": \"Gradiente\"\n }\n },\n {\n \"id\":
264416,\n \"company\": {\n \"id\": 25077,\n \"name\":
\"Intelligent Systems\"\n }\n }\n ],\n \"name\": \"Paper
Mario\",\n \"platforms\": [\n {\n \"id\": 4,\n \"name\":
\"Nintendo 64\"\n },\n {\n \"id\": 5,\n \"name\":
\"Wii\"\n },\n {\n \"id\": 41,\n \"name\": \"Wii U\"\n
\ }\n ],\n \"screenshots\": [\n {\n \"id\": 24167,\n
\ \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/a5r3k2lf3lgvifrycqeg.jpg\"\n
\ },\n {\n \"id\": 24168,\n \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/hdxgs9nruycvrzcgvseu.jpg\"\n
\ },\n {\n \"id\": 24169,\n \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/ig9ainu9fershqdinox1.jpg\"\n
\ },\n {\n \"id\": 24170,\n \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/jz66se3deczeta6hd4ys.jpg\"\n
\ },\n {\n \"id\": 24171,\n \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/kjnf90jnud6njmwto3th.jpg\"\n
\ }\n ],\n \"similar_games\": [\n {\n \"id\": 358,\n
\ \"cover\": {\n \"id\": 312995,\n \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/co6pib.jpg\"\n
\ },\n \"name\": \"Super Mario Bros.\",\n \"slug\": \"super-mario-bros\"\n
\ },\n {\n \"id\": 660,\n \"cover\": {\n \"id\":
357155,\n \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/co7nkz.jpg\"\n
\ },\n \"name\": \"Darkstone\",\n \"slug\": \"darkstone\"\n
\ },\n {\n \"id\": 1026,\n \"cover\": {\n \"id\":
181427,\n \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/co3vzn.jpg\"\n
\ },\n \"name\": \"The Legend of Zelda: A Link to the Past\",\n
\ \"slug\": \"the-legend-of-zelda-a-link-to-the-past\"\n },\n {\n
\ \"id\": 1035,\n \"cover\": {\n \"id\": 170804,\n \"url\":
\"//images.igdb.com/igdb/image/upload/t_thumb/co3nsk.jpg\"\n },\n \"name\":
\"The Legend of Zelda: The Minish Cap\",\n \"slug\": \"the-legend-of-zelda-the-minish-cap\"\n
\ },\n {\n \"id\": 1068,\n \"cover\": {\n \"id\":
358989,\n \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/co7ozx.jpg\"\n
\ },\n \"name\": \"Super Mario Bros. 3\",\n \"slug\":
\"super-mario-bros-3\"\n },\n {\n \"id\": 1280,\n \"cover\":
{\n \"id\": 311972,\n \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/co6opw.jpg\"\n
\ },\n \"name\": \"Breath of Fire IV\",\n \"slug\": \"breath-of-fire-iv\"\n
\ },\n {\n \"id\": 2148,\n \"cover\": {\n \"id\":
93043,\n \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/co1zsj.jpg\"\n
\ },\n \"name\": \"Banjo-Kazooie\",\n \"slug\": \"banjo-kazooie\"\n
\ },\n {\n \"id\": 3349,\n \"cover\": {\n \"id\":
100900,\n \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/co25us.jpg\"\n
\ },\n \"name\": \"Paper Mario: The Thousand-Year Door\",\n \"slug\":
\"paper-mario-the-thousand-year-door\"\n },\n {\n \"id\":
3351,\n \"cover\": {\n \"id\": 95596,\n \"url\":
\"//images.igdb.com/igdb/image/upload/t_thumb/co21rg.jpg\"\n },\n \"name\":
\"Mario \\u0026 Luigi: Superstar Saga\",\n \"slug\": \"mario-luigi-superstar-saga\"\n
\ },\n {\n \"id\": 22387,\n \"cover\": {\n \"id\":
137538,\n \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/co2y4i.jpg\"\n
\ },\n \"name\": \"Legrand Legacy\",\n \"slug\": \"legrand-legacy\"\n
\ }\n ],\n \"slug\": \"paper-mario\",\n \"summary\": \"Paper
Mario, a turn-based JRPG entry in the Mario franchise with a paper-based aesthetic
and platforming elements, sees the titular character working his way through
the Mushroom Kingdom\\u0027s diverse locales and biomes, meeting its inhabitants,
fighthing unruly enemies and recruiting an array of companions in order to
once again save Princess Peach from the clutches of the evil Koopa King Bowser.\",\n
\ \"total_rating\": 88.63753217601834,\n \"collections\": [\n {\n
\ \"id\": 240,\n \"name\": \"Super Mario\"\n },\n {\n
\ \"id\": 593,\n \"name\": \"Paper Mario\"\n }\n ]\n
\ }\n]"
string: !!binary |
H4sIAAAAAAAA/61YS28cRRC+51e09hSkHXvej9xiIqKQh0xsQCREq96Z3pnenenedPesM4u44EMC
As6REJwIEShHDoDyb6wQRUn+A9W7Xns3jHcmtiVb9nRX1VdfdVX14+4FhL6CX4Q6NOlcQo7jmt35
N05TQVKsSNITWFGWwnRkbhxN54oIBhMT0mO4IBKm786mFhaXrEaW6XWPB7U8DHfuZBRtU8zQTSwo
7xwKfN09wYxnBZFVY+Zg/5eD/T8OvoGfvw/2Hx3sP9ef+89bGbRrDL7856+X3z589fuzVw+/f/Hk
SaOdIAyssMbOjBbaUVxUjTbC0AzrbOyUYyLmAUK3t68iu9GSZUG4g3W0Xnz307/PnjYbcgI7rFu3
tz8+fvPzn29/eI5eP330+rdnbx7/emRs9vfeIkmE2uNitC43Asd3oyWMUuQaYnOTFjglcoOmSX8j
5sWm/mc+uFmOc46TTdVTWVn0N7GwRkptDMdpvRcxnxABRhfQhwE3Q8dcAJ8GNubW/QQfwx7GsTOg
QqqeIDnBkvQSqCBdOb4XebZpLspnIDCLMyrX1k3o1kV/tVhWmKYg0it4stZqXQntQH3nBI1zXEGo
6m0TJtbbrSul2zwnhjYLAOgiJPAHzWnn19jZLQUz+hDQBEkF/YikFbq4u7XTbM6p43s5mRCmSkHq
uVI24fkEOh9kwBgzup63G9qWuwQyV6qWMu5YODC7y2MLf25RpghLjpZ14dAaXrbteUHYEtazfKcW
mH5SkvcFjVqChssZsYR5VeCEQvjfC9h33ZXEWAdse2YQ1EJfA9Q8p5DLCu1UUpFC1jixkgsL1W18
1Ig7h1OQ12rARbEuO9ya7FusNvLd5j2qRv9zShv13Lq0B0X0aX3Ky1gQwmTG1To2NizC8tZymm7t
CWdk5wMnTyd0IKr4PklXeveJKQDY4dmws+RBKiMmyiqeiGmcTiQpW2OfcZeiaYQpK6MBETK7n1DG
H1htsZe7xmmwh1Pfl8RJSDwlCvtZ4layNbZ1NuzRkA0ic8jKxGfDYk9xR2Un79WSFjTHopc2HSm9
1da3usMvyVl2FHkrveBUW70/pv1lr5didsJhbUtwudFZEpJ5qc/QHamFjEILGX0QalwE3zfbcfUC
yzsHrgEbTZu5XsFwsFOckTqOydFk425v2n4rdlZouXZwdnbOZMqa2e1mBN0gsE8kiA/QHZIn+BK6
jG5QNkKKIwXT21iqOu4wZ+QzVYMPjKlWNbCRg6ahuKFnx1qzOTCO1y4wgRma7jkEhsnRKQOjB29S
RmWGPsTjtkHRY8VMy4hBqzkgfsua98IojM6hDvj0wSlqHjltqt5wmgnbYcvChytfYJ9Dk+PjvWbC
W4JglenV/4gKgq59Vke3PxPSaw3XIWLQSfNWA+foVmwjx3Sds5O1pnLYgixmQ25cx1POaW2n688E
RocCTSQdx43aFbVpRqZ5dpa2V8pmlktn23kx72a8lBiK9QuCBbrCuajjPsbHOa2LWS20KtAyEq3V
HBDParfqnhf55xAPS6TN8ZhX85elCZsTulHSlF5CszqXCsKxg1NcF455IHItbsiFtCG1dGPy204Y
tEsMJ/Cc8BwCUbm0ORDQ6QUsqO74OK7qSOdzCd3ctUT9oe7/+bK4QsmygO/qnSTsIozU8Y3/Y/3w
BVc2USHKZnvvfIGOHlHQHoWOhNEcYK6EiQRJRWOkCSyuavoZguSkAGuyiyQhcmZPUVXCsRPFGRY4
VuCHfrfSwmAe7eEKpAQv02yOXkr44gW6DhIJL2aJEkiUUFg18CbnMc7BsgbuUw4n2S4qCNGPqIgq
CSQy3KcKz3wY0DRTmZ4q4WKSV0CUFPRQW5BYlHSmiBnCQoAn0HgPnyU407YQFwk4DKcSzmKCIN1g
TOIJnFAEhREp0TbBcQbhApe1/3FeqjgDCDClv8mE5ug652M8Y4S2+J4kYnF47SiucH78CByGG4EZ
hI4Z2nA58Gzn6Jktz0mstFdrb5Dm+k20+UYcOetb2DtJeEH/d+8/eNAf8OoWAAA=
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8a4509f43a89abb8-YYZ
- 8c0445b8f82eabd6-YYZ
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Length:
- "1528"
- "1529"
Content-Type:
- application/json
Date:
- Tue, 16 Jul 2024 21:20:54 GMT
- Mon, 09 Sep 2024 04:00:37 GMT
Server:
- cloudflare
Set-Cookie:
- __cf_bm=PsncMQhPTWpR1oHjMpk15qRUP7WbtGRS.NGfZOY65l8-1721164854-1.0.1.1-cYy4SO3EJA2a4jqwmm1x1Zl3Z9o7Y8cIfRAv5mv0GnC8rjX2I1KEmbMp3aurQ3iwuGOS_LwNuMReKOD74TwXbA;
path=/; expires=Tue, 16-Jul-24 21:50:54 GMT; domain=.igdb.com; HttpOnly; Secure;
SameSite=None
Strict-Transport-Security:
- max-age=31536000; includeSubDomains; preload
X-Content-Type-Options:
@@ -236,89 +193,72 @@ interactions:
alt-svc:
- h3=":443"; ma=86400
via:
- 1.1 412b0215b557780a6efcc1651037dc90.cloudfront.net (CloudFront)
- 1.1 1005873908b937da8d6e408eda0fb9e0.cloudfront.net (CloudFront)
x-amz-apigw-id:
- bBiYjGocvHcES9Q=
- d0bj4FrsPHcELQw=
x-amz-cf-id:
- qNRcxGGRlOiahu_AQFHB6TMBbOASu2LA0t9PmPndvxSI4nkv96V3dA==
- nGKmz8x3MAZLbXpwAPNXo2hwQ7UwmchXiWql7aMqWaRVqrjVM60Lmw==
x-amz-cf-pop:
- YTO50-P1
x-amzn-remapped-content-length:
- "1528"
- "1529"
x-amzn-remapped-date:
- Tue, 16 Jul 2024 21:20:54 GMT
- Mon, 09 Sep 2024 04:00:37 GMT
x-amzn-requestid:
- 2659af3f-8bbb-4d7b-9e1c-dc972fc6367f
- 0c112999-f30d-4510-95a9-d61502c7b12b
x-cache:
- Miss from cloudfront
x-count:
- "1"
x-pool:
- slow
status:
code: 200
message: OK
- request:
body:
fields game.id,name; where game.platforms=[4] & (name ~ *"Paper Mario"*
| alternative_name ~ *"Paper Mario"*); limit 200;
body: fields video_id; where game=3340; limit 200;
headers:
Accept:
accept:
- application/json
Accept-Encoding:
- gzip, deflate
Authorization:
accept-encoding:
- gzip, deflate, br
authorization:
- Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Client-ID:
client-id:
- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection:
connection:
- keep-alive
Content-Length:
- "121"
User-Agent:
- python-requests/2.32.0
content-length:
- "44"
cookie:
- __cf_bm=ZTkzLY1Wz3Lq3KdkQQpVj0yhgTOXkbAP9lPgbSV.fTY-1725854436-1.0.1.1-.UtTECTjipcRDIa3.6ZWDiOQNj0q9mHlDSCB2265Xcox2wuSZ6hHVY_mke1BBtuYQIMilhWlObkmR7PM1tX6RQ
host:
- api.igdb.com
user-agent:
- python-httpx/0.27.0
method: POST
uri: https://api.igdb.com/v4/search
uri: https://api.igdb.com/v4/game_videos
response:
body:
string:
"[\n {\n \"id\": 103536,\n \"game\": {\n \"id\": 3340\n
\ },\n \"name\": \"Paper Mario\"\n },\n {\n \"id\": 12331114,\n
\ \"game\": {\n \"id\": 155012\n },\n \"name\": \"Bowser\\u0027s
Dark Story\"\n },\n {\n \"id\": 12409264,\n \"game\": {\n \"id\":
159325\n },\n \"name\": \"Paper Mario Multiplayer\"\n },\n {\n \"id\":
12409477,\n \"game\": {\n \"id\": 159343\n },\n \"name\": \"Paper
Mario Black Pit\"\n },\n {\n \"id\": 12759145,\n \"game\": {\n \"id\":
186399\n },\n \"name\": \"The Paper Mario Christmas Special\"\n },\n
\ {\n \"id\": 12845644,\n \"game\": {\n \"id\": 187873\n },\n
\ \"name\": \"Paper Mario Master Quest\"\n },\n {\n \"id\": 15877679,\n
\ \"game\": {\n \"id\": 240080\n },\n \"name\": \"Paper Mario
All Bosses in the Same Battle\"\n },\n {\n \"id\": 16126540,\n \"game\":
{\n \"id\": 245039\n },\n \"name\": \"Paper Mario Eggstraordinary
Egg Hunt\"\n },\n {\n \"id\": 16583338,\n \"game\": {\n \"id\":
248349\n },\n \"name\": \"Paper Mario Master Quest + Jr\"\n },\n {\n
\ \"id\": 17792734,\n \"game\": {\n \"id\": 257636\n },\n \"name\":
\"Paper Mario TTYD64\"\n },\n {\n \"id\": 18361556,\n \"game\": {\n
\ \"id\": 266504\n },\n \"name\": \"Paper Mario Dark Star Edition\"\n
\ },\n {\n \"id\": 18454017,\n \"game\": {\n \"id\": 268692\n
\ },\n \"name\": \"Paper Mario Pro Mode\"\n },\n {\n \"id\": 20937038,\n
\ \"game\": {\n \"id\": 304045\n },\n \"name\": \"Paper Mario
Randomizer\"\n }\n]"
string: !!binary |
IYADACBmzOlj1F902yUFkmNFSE45EAgww1Qyz6wdMaDDxpggjRmd0a1LwJcAgNczjhFF6hraT3wN
m0dc8LfePrXxmvsyE/A3pskXFTtL6eCWDE6fp399gjRcyF+39VJ2aqcrAlNRKfadenSd3OqynzIB
f+obAw==
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8a4509f668ce7119-YYZ
- 8c0445bb6a46abd6-YYZ
Connection:
- keep-alive
Content-Encoding:
- br
Content-Type:
- application/json
Date:
- Tue, 16 Jul 2024 21:20:55 GMT
- Mon, 09 Sep 2024 04:00:38 GMT
Server:
- cloudflare
Set-Cookie:
- __cf_bm=KkAmqxhQPavV7fCKkDnuvzC9DyvenDp7tA7GNRkkVAc-1721164855-1.0.1.1-Ae5ASfcHkdEuszHbLuVn2rOsIOFO4lhkF0wJz_zkUMyHZGyjfMfbxc23IZI6vc_liGEP2Xgy2dI6I4xyduE1pA;
path=/; expires=Tue, 16-Jul-24 21:50:55 GMT; domain=.igdb.com; HttpOnly; Secure;
SameSite=None
Strict-Transport-Security:
- max-age=31536000; includeSubDomains; preload
Transfer-Encoding:
@@ -328,144 +268,78 @@ interactions:
alt-svc:
- h3=":443"; ma=86400
via:
- 1.1 19d1514f5f81da4dca6349d0f75a352c.cloudfront.net (CloudFront)
- 1.1 1005873908b937da8d6e408eda0fb9e0.cloudfront.net (CloudFront)
x-amz-apigw-id:
- bBiYnGaWvHcEMVw=
- d0bj9F_nvHcEe3Q=
x-amz-cf-id:
- qgoGtG02JXbCB4cXLi0sKJRw1f7uX6caTDqPIzUFUAiiaaTYr0DPmw==
- z0uGc71xLQMm1sTPsdIwmh7Uso2jjYjrTjIL7yqbvs9WQ5RYHTciIQ==
x-amz-cf-pop:
- YUL62-C2
- YTO50-P1
x-amzn-remapped-content-length:
- "1421"
- "225"
x-amzn-remapped-date:
- Tue, 16 Jul 2024 21:20:54 GMT
- Mon, 09 Sep 2024 04:00:37 GMT
x-amzn-requestid:
- b12a507c-48c8-4e57-8028-af00f0ec2ecf
- e7ec2d18-e037-4d50-8919-4f9d38c9abf6
x-cache:
- Miss from cloudfront
x-count:
- "13"
- "4"
x-pool:
- slow
status:
code: 200
message: OK
- request:
body:
fields id,name,slug,summary,total_rating,aggregated_rating,first_release_date,artworks.url,cover.url,screenshots.url,platforms.id,platforms.name,alternative_names.name,genres.name,franchise.name,franchises.name,collections.name,game_modes.name,involved_companies.company.name,expansions.id,expansions.slug,expansions.name,expansions.cover.url,expanded_games.id,expanded_games.slug,expanded_games.name,expanded_games.cover.url,dlcs.id,dlcs.name,dlcs.slug,dlcs.cover.url,remakes.id,remakes.slug,remakes.name,remakes.cover.url,remasters.id,remasters.slug,remasters.name,remasters.cover.url,ports.id,ports.slug,ports.name,ports.cover.url,similar_games.id,similar_games.slug,similar_games.name,similar_games.cover.url;
where id=3340; limit 200;
search "Paper Mario"; fields id,name,slug,summary,total_rating,aggregated_rating,first_release_date,artworks.url,cover.url,screenshots.url,platforms.id,platforms.name,alternative_names.name,genres.name,franchise.name,franchises.name,collections.name,game_modes.name,involved_companies.company.name,expansions.id,expansions.slug,expansions.name,expansions.cover.url,expanded_games.id,expanded_games.slug,expanded_games.name,expanded_games.cover.url,dlcs.id,dlcs.name,dlcs.slug,dlcs.cover.url,remakes.id,remakes.slug,remakes.name,remakes.cover.url,remasters.id,remasters.slug,remasters.name,remasters.cover.url,ports.id,ports.slug,ports.name,ports.cover.url,similar_games.id,similar_games.slug,similar_games.name,similar_games.cover.url;
where platforms=[4] & (category=0 | category=10); limit 200;
headers:
Accept:
accept:
- application/json
Accept-Encoding:
- gzip, deflate
Authorization:
- Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Client-ID:
accept-encoding:
- gzip, deflate, br
authorization:
- Bearer test_token
client-id:
- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection:
connection:
- keep-alive
Content-Length:
- "739"
User-Agent:
- python-requests/2.32.0
content-length:
- "796"
host:
- api.igdb.com
user-agent:
- python-httpx/0.27.0
method: POST
uri: https://api.igdb.com/v4/games
response:
body:
string:
"[\n {\n \"id\": 3340,\n \"aggregated_rating\": 90.0,\n \"alternative_names\":
[\n {\n \"id\": 39105,\n \"name\": \"Zhi Pian Mario\"\n
\ },\n {\n \"id\": 51791,\n \"name\": \"\u30DE\u30EA\u30AA\u30B9\u30C8\u30FC\u30EA\u30FC\"\n
\ },\n {\n \"id\": 51792,\n \"name\": \"\u7EB8\u7247\u9A6C\u91CC\u5965\"\n
\ },\n {\n \"id\": 78718,\n \"name\": \"Mario Story\"\n
\ },\n {\n \"id\": 88088,\n \"name\": \"Super Mario
RPG 2\"\n },\n {\n \"id\": 119107,\n \"name\": \"\u7EB8\u7247\u9A6C\u529B\u6B27\"\n
\ },\n {\n \"id\": 137285,\n \"name\": \"\uD398\uC774\uD37C
\uB9C8\uB9AC\uC624\"\n }\n ],\n \"artworks\": [\n {\n \"id\":
73649,\n \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/ar1ktt.jpg\"\n
\ }\n ],\n \"cover\": {\n \"id\": 80830,\n \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/co1qda.jpg\"\n
\ },\n \"first_release_date\": 965952000,\n \"franchises\": [\n {\n
\ \"id\": 845,\n \"name\": \"Mario\"\n }\n ],\n \"game_modes\":
[\n {\n \"id\": 1,\n \"name\": \"Single player\"\n }\n
\ ],\n \"genres\": [\n {\n \"id\": 12,\n \"name\":
\"Role-playing (RPG)\"\n },\n {\n \"id\": 16,\n \"name\":
\"Turn-based strategy (TBS)\"\n },\n {\n \"id\": 31,\n \"name\":
\"Adventure\"\n }\n ],\n \"involved_companies\": [\n {\n \"id\":
148214,\n \"company\": {\n \"id\": 70,\n \"name\":
\"Nintendo\"\n }\n },\n {\n \"id\": 225578,\n \"company\":
{\n \"id\": 5163,\n \"name\": \"iQue\"\n }\n },\n
\ {\n \"id\": 225579,\n \"company\": {\n \"id\":
812,\n \"name\": \"Gradiente\"\n }\n },\n {\n \"id\":
264416,\n \"company\": {\n \"id\": 25077,\n \"name\":
\"Intelligent Systems\"\n }\n }\n ],\n \"name\": \"Paper
Mario\",\n \"platforms\": [\n {\n \"id\": 4,\n \"name\":
\"Nintendo 64\"\n },\n {\n \"id\": 5,\n \"name\":
\"Wii\"\n },\n {\n \"id\": 41,\n \"name\": \"Wii U\"\n
\ }\n ],\n \"screenshots\": [\n {\n \"id\": 24167,\n
\ \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/a5r3k2lf3lgvifrycqeg.jpg\"\n
\ },\n {\n \"id\": 24168,\n \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/hdxgs9nruycvrzcgvseu.jpg\"\n
\ },\n {\n \"id\": 24169,\n \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/ig9ainu9fershqdinox1.jpg\"\n
\ },\n {\n \"id\": 24170,\n \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/jz66se3deczeta6hd4ys.jpg\"\n
\ },\n {\n \"id\": 24171,\n \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/kjnf90jnud6njmwto3th.jpg\"\n
\ }\n ],\n \"similar_games\": [\n {\n \"id\": 358,\n
\ \"cover\": {\n \"id\": 312995,\n \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/co6pib.jpg\"\n
\ },\n \"name\": \"Super Mario Bros.\",\n \"slug\": \"super-mario-bros\"\n
\ },\n {\n \"id\": 660,\n \"cover\": {\n \"id\":
357155,\n \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/co7nkz.jpg\"\n
\ },\n \"name\": \"Darkstone\",\n \"slug\": \"darkstone\"\n
\ },\n {\n \"id\": 1026,\n \"cover\": {\n \"id\":
181427,\n \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/co3vzn.jpg\"\n
\ },\n \"name\": \"The Legend of Zelda: A Link to the Past\",\n
\ \"slug\": \"the-legend-of-zelda-a-link-to-the-past\"\n },\n {\n
\ \"id\": 1035,\n \"cover\": {\n \"id\": 170804,\n \"url\":
\"//images.igdb.com/igdb/image/upload/t_thumb/co3nsk.jpg\"\n },\n \"name\":
\"The Legend of Zelda: The Minish Cap\",\n \"slug\": \"the-legend-of-zelda-the-minish-cap\"\n
\ },\n {\n \"id\": 1068,\n \"cover\": {\n \"id\":
358989,\n \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/co7ozx.jpg\"\n
\ },\n \"name\": \"Super Mario Bros. 3\",\n \"slug\":
\"super-mario-bros-3\"\n },\n {\n \"id\": 1280,\n \"cover\":
{\n \"id\": 311972,\n \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/co6opw.jpg\"\n
\ },\n \"name\": \"Breath of Fire IV\",\n \"slug\": \"breath-of-fire-iv\"\n
\ },\n {\n \"id\": 2148,\n \"cover\": {\n \"id\":
93043,\n \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/co1zsj.jpg\"\n
\ },\n \"name\": \"Banjo-Kazooie\",\n \"slug\": \"banjo-kazooie\"\n
\ },\n {\n \"id\": 3349,\n \"cover\": {\n \"id\":
100900,\n \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/co25us.jpg\"\n
\ },\n \"name\": \"Paper Mario: The Thousand-Year Door\",\n \"slug\":
\"paper-mario-the-thousand-year-door\"\n },\n {\n \"id\":
3351,\n \"cover\": {\n \"id\": 95596,\n \"url\":
\"//images.igdb.com/igdb/image/upload/t_thumb/co21rg.jpg\"\n },\n \"name\":
\"Mario \\u0026 Luigi: Superstar Saga\",\n \"slug\": \"mario-luigi-superstar-saga\"\n
\ },\n {\n \"id\": 22387,\n \"cover\": {\n \"id\":
137538,\n \"url\": \"//images.igdb.com/igdb/image/upload/t_thumb/co2y4i.jpg\"\n
\ },\n \"name\": \"Legrand Legacy\",\n \"slug\": \"legrand-legacy\"\n
\ }\n ],\n \"slug\": \"paper-mario\",\n \"summary\": \"Paper
Mario, a turn-based JRPG entry in the Mario franchise with a paper-based aesthetic
and platforming elements, sees the titular character working his way through
the Mushroom Kingdom\\u0027s diverse locales and biomes, meeting its inhabitants,
fighthing unruly enemies and recruiting an array of companions in order to
once again save Princess Peach from the clutches of the evil Koopa King Bowser.\",\n
\ \"total_rating\": 88.63753217601834,\n \"collections\": [\n {\n
\ \"id\": 240,\n \"name\": \"Super Mario\"\n },\n {\n
\ \"id\": 593,\n \"name\": \"Paper Mario\"\n }\n ]\n
\ }\n]"
"{\n \"message\": \"Authorization Failure. Have you tried:\",\n \"Tip
1\": \"Ensure you are sending Authorization and Client-ID as headers.\",\n
\ \"Tip 2\": \"Ensure Authorization value starts with 'Bearer ', including
the space\",\n \"Tip 3\": \"Ensure Authorization value ends with the App
Access Token you generated, NOT your Client Secret.\",\n \"Docs\": \"https://api-docs.igdb.com/#authentication\",\n
\ \"Discord\": \"https://discord.gg/igdb\"\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8a4509fc9e8da246-YYZ
- 8c0446168f587117-YYZ
Connection:
- keep-alive
Content-Length:
- "1528"
- "434"
Content-Type:
- application/json
Date:
- Tue, 16 Jul 2024 21:20:56 GMT
- Mon, 09 Sep 2024 04:00:52 GMT
Server:
- cloudflare
Set-Cookie:
- __cf_bm=5bPHYIegBMi1xJ02b0hjaxBDqtvwnry9PO980Xd7lNc-1721164856-1.0.1.1-cu9HyVrxbU2z.sX3r4j0oAGX.uCZMrSGh9G3DRsu7t2.CCaDCEZcRTqdbASeR2V9LLJseMkdn7TF7FBTjNY2DA;
path=/; expires=Tue, 16-Jul-24 21:50:56 GMT; domain=.igdb.com; HttpOnly; Secure;
- __cf_bm=Uc538fsRMgVlaNKx20H7.wBHC_4yQvf5msLYDdiWHWw-1725854452-1.0.1.1-7HfoY3TYKBR5atKo7l9f8nL_QkBZtJl1R6cFz5Ui8Gn.XVLC7ok6KRWdNH4Gp_CQAqu5nw9PklMWrdGGcjvFWg;
path=/; expires=Mon, 09-Sep-24 04:30:52 GMT; domain=.igdb.com; HttpOnly; Secure;
SameSite=None
Strict-Transport-Security:
- max-age=31536000; includeSubDomains; preload
@@ -474,23 +348,236 @@ interactions:
alt-svc:
- h3=":443"; ma=86400
via:
- 1.1 490c6f54e6cd81b80f07ff6be833267e.cloudfront.net (CloudFront)
- 1.1 f92b450b48c98e711c027c1986c59944.cloudfront.net (CloudFront)
x-amz-apigw-id:
- bBiYxEaCPHcEErA=
- d0bmNH1xvHcEIUg=
x-amz-cf-id:
- syxc_2spiC05CJNtd7tJxBxPfHKt0FzGAI0rbGnWlRK5_zFEK10LWA==
- 5FhkJO2W64H2MJHbkQ1er_vxxHQ-9jWO50WmaiIjjklL3_w0Tc4fMA==
x-amz-cf-pop:
- YTO50-P1
x-amzn-errortype:
- AccessDeniedException
x-amzn-requestid:
- 17e5ffd1-9f99-43d2-abcb-d94bffc7911f
x-cache:
- Error from cloudfront
status:
code: 401
message: Unauthorized
- request:
body: ""
headers:
accept:
- "*/*"
accept-encoding:
- gzip, deflate, br
connection:
- keep-alive
content-length:
- "0"
host:
- id.twitch.tv
user-agent:
- python-httpx/0.27.0
method: POST
uri: https://id.twitch.tv/oauth2/token?client_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&client_secret=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&grant_type=client_credentials
response:
body:
string:
'{"access_token":"vyzx88dpfr0ve3kypohhawd40j0r5z","expires_in":5391063,"token_type":"bearer"}
'
headers:
Access-Control-Allow-Origin:
- "*"
Connection:
- keep-alive
Content-Length:
- "93"
Content-Type:
- application/json
Date:
- Mon, 09 Sep 2024 04:00:52 GMT
Server:
- nginx
X-Ctxlog-Logid:
- 1-66de72f4-66afdd221ca68b434444e2c7
status:
code: 200
message: OK
- request:
body:
search "Paper Mario"; fields id,name,slug,summary,total_rating,aggregated_rating,first_release_date,artworks.url,cover.url,screenshots.url,platforms.id,platforms.name,alternative_names.name,genres.name,franchise.name,franchises.name,collections.name,game_modes.name,involved_companies.company.name,expansions.id,expansions.slug,expansions.name,expansions.cover.url,expanded_games.id,expanded_games.slug,expanded_games.name,expanded_games.cover.url,dlcs.id,dlcs.name,dlcs.slug,dlcs.cover.url,remakes.id,remakes.slug,remakes.name,remakes.cover.url,remasters.id,remasters.slug,remasters.name,remasters.cover.url,ports.id,ports.slug,ports.name,ports.cover.url,similar_games.id,similar_games.slug,similar_games.name,similar_games.cover.url;
where platforms=[4] & (category=0 | category=10); limit 200;
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate, br
authorization:
- Bearer vyzx88dpfr0ve3kypohhawd40j0r5z
client-id:
- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
connection:
- keep-alive
content-length:
- "796"
cookie:
- __cf_bm=Uc538fsRMgVlaNKx20H7.wBHC_4yQvf5msLYDdiWHWw-1725854452-1.0.1.1-7HfoY3TYKBR5atKo7l9f8nL_QkBZtJl1R6cFz5Ui8Gn.XVLC7ok6KRWdNH4Gp_CQAqu5nw9PklMWrdGGcjvFWg
host:
- api.igdb.com
user-agent:
- python-httpx/0.27.0
method: POST
uri: https://api.igdb.com/v4/games
response:
body:
string: !!binary |
H4sIAAAAAAAA/61YS28cRRC+51e09hSkHXvej9xiIqKQh0xsQCREq96Z3pnenenedPesM4u44EMC
As6REJwIEShHDoDyb6wQRUn+A9W7Xns3jHcmtiVb9nRX1VdfdVX14+4FhL6CX4Q6NOlcQo7jmt35
N05TQVKsSNITWFGWwnRkbhxN54oIBhMT0mO4IBKm786mFhaXrEaW6XWPB7U8DHfuZBRtU8zQTSwo
7xwKfN09wYxnBZFVY+Zg/5eD/T8OvoGfvw/2Hx3sP9ef+89bGbRrDL7856+X3z589fuzVw+/f/Hk
SaOdIAyssMbOjBbaUVxUjTbC0AzrbOyUYyLmAUK3t68iu9GSZUG4g3W0Xnz307/PnjYbcgI7rFu3
tz8+fvPzn29/eI5eP330+rdnbx7/emRs9vfeIkmE2uNitC43Asd3oyWMUuQaYnOTFjglcoOmSX8j
5sWm/mc+uFmOc46TTdVTWVn0N7GwRkptDMdpvRcxnxABRhfQhwE3Q8dcAJ8GNubW/QQfwx7GsTOg
QqqeIDnBkvQSqCBdOb4XebZpLspnIDCLMyrX1k3o1kV/tVhWmKYg0it4stZqXQntQH3nBI1zXEGo
6m0TJtbbrSul2zwnhjYLAOgiJPAHzWnn19jZLQUz+hDQBEkF/YikFbq4u7XTbM6p43s5mRCmSkHq
uVI24fkEOh9kwBgzup63G9qWuwQyV6qWMu5YODC7y2MLf25RpghLjpZ14dAaXrbteUHYEtazfKcW
mH5SkvcFjVqChssZsYR5VeCEQvjfC9h33ZXEWAdse2YQ1EJfA9Q8p5DLCu1UUpFC1jixkgsL1W18
1Ig7h1OQ12rARbEuO9ya7FusNvLd5j2qRv9zShv13Lq0B0X0aX3Ky1gQwmTG1To2NizC8tZymm7t
CWdk5wMnTyd0IKr4PklXeveJKQDY4dmws+RBKiMmyiqeiGmcTiQpW2OfcZeiaYQpK6MBETK7n1DG
H1htsZe7xmmwh1Pfl8RJSDwlCvtZ4layNbZ1NuzRkA0ic8jKxGfDYk9xR2Un79WSFjTHopc2HSm9
1da3usMvyVl2FHkrveBUW70/pv1lr5didsJhbUtwudFZEpJ5qc/QHamFjEILGX0QalwE3zfbcfUC
yzsHrgEbTZu5XsFwsFOckTqOydFk425v2n4rdlZouXZwdnbOZMqa2e1mBN0gsE8kiA/QHZIn+BK6
jG5QNkKKIwXT21iqOu4wZ+QzVYMPjKlWNbCRg6ahuKFnx1qzOTCO1y4wgRma7jkEhsnRKQOjB29S
RmWGPsTjtkHRY8VMy4hBqzkgfsua98IojM6hDvj0wSlqHjltqt5wmgnbYcvChytfYJ9Dk+PjvWbC
W4JglenV/4gKgq59Vke3PxPSaw3XIWLQSfNWA+foVmwjx3Sds5O1pnLYgixmQ25cx1POaW2n688E
RocCTSQdx43aFbVpRqZ5dpa2V8pmlktn23kx72a8lBiK9QuCBbrCuajjPsbHOa2LWS20KtAyEq3V
HBDParfqnhf55xAPS6TN8ZhX85elCZsTulHSlF5CszqXCsKxg1NcF455IHItbsiFtCG1dGPy204Y
tEsMJ/Cc8BwCUbm0ORDQ6QUsqO74OK7qSOdzCd3ctUT9oe7/+bK4QsmygO/qnSTsIozU8Y3/Y/3w
BVc2USHKZnvvfIGOHlHQHoWOhNEcYK6EiQRJRWOkCSyuavoZguSkAGuyiyQhcmZPUVXCsRPFGRY4
VuCHfrfSwmAe7eEKpAQv02yOXkr44gW6DhIJL2aJEkiUUFg18CbnMc7BsgbuUw4n2S4qCNGPqIgq
CSQy3KcKz3wY0DRTmZ4q4WKSV0CUFPRQW5BYlHSmiBnCQoAn0HgPnyU407YQFwk4DKcSzmKCIN1g
TOIJnFAEhREp0TbBcQbhApe1/3FeqjgDCDClv8mE5ug652M8Y4S2+J4kYnF47SiucH78CByGG4EZ
hI4Z2nA58Gzn6Jktz0mstFdrb5Dm+k20+UYcOetb2DtJeEH/d+8/eNAf8OoWAAA=
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c04461b49d77117-YYZ
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Length:
- "1529"
Content-Type:
- application/json
Date:
- Mon, 09 Sep 2024 04:00:53 GMT
Server:
- cloudflare
Strict-Transport-Security:
- max-age=31536000; includeSubDomains; preload
X-Content-Type-Options:
- nosniff
alt-svc:
- h3=":443"; ma=86400
via:
- 1.1 f92b450b48c98e711c027c1986c59944.cloudfront.net (CloudFront)
x-amz-apigw-id:
- d0bmWEgfPHcEc-Q=
x-amz-cf-id:
- ayWP5EBTRdWEN9F1pKi1KLnEFGM2irHDLDchaXiBhhZShZX-fHbmkQ==
x-amz-cf-pop:
- YTO50-P1
x-amzn-remapped-content-length:
- "1528"
- "1529"
x-amzn-remapped-date:
- Tue, 16 Jul 2024 21:20:55 GMT
- Mon, 09 Sep 2024 04:00:53 GMT
x-amzn-requestid:
- 5674e595-eafc-4003-91be-0267d28f76c9
- 0ee33393-4abc-4943-a2c1-50908af51e6d
x-cache:
- Miss from cloudfront
x-count:
- "1"
x-pool:
- slow
status:
code: 200
message: OK
- request:
body: fields video_id; where game=3340; limit 200;
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate, br
authorization:
- Bearer vyzx88dpfr0ve3kypohhawd40j0r5z
client-id:
- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
connection:
- keep-alive
content-length:
- "44"
cookie:
- __cf_bm=Uc538fsRMgVlaNKx20H7.wBHC_4yQvf5msLYDdiWHWw-1725854452-1.0.1.1-7HfoY3TYKBR5atKo7l9f8nL_QkBZtJl1R6cFz5Ui8Gn.XVLC7ok6KRWdNH4Gp_CQAqu5nw9PklMWrdGGcjvFWg
host:
- api.igdb.com
user-agent:
- python-httpx/0.27.0
method: POST
uri: https://api.igdb.com/v4/game_videos
response:
body:
string: !!binary |
IYADACBmzOlj1F902yUFkmNFSE45EAgww1Qyz6wdMaDDxpggjRmd0a1LwJcAgNczjhFF6hraT3wN
m0dc8LfePrXxmvsyE/A3pskXFTtL6eCWDE6fp399gjRcyF+39VJ2aqcrAlNRKfadenSd3OqynzIB
f+obAw==
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c04461dfb577117-YYZ
Connection:
- keep-alive
Content-Encoding:
- br
Content-Type:
- application/json
Date:
- Mon, 09 Sep 2024 04:00:53 GMT
Server:
- cloudflare
Strict-Transport-Security:
- max-age=31536000; includeSubDomains; preload
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
alt-svc:
- h3=":443"; ma=86400
via:
- 1.1 f92b450b48c98e711c027c1986c59944.cloudfront.net (CloudFront)
x-amz-apigw-id:
- d0bmaG4PPHcERHQ=
x-amz-cf-id:
- 8Hq3T2WEPlUJISXm2DY86rlSr9tTqhbNJCxndioQu8jCDrJZQlJbEw==
x-amz-cf-pop:
- YTO50-P1
x-amzn-remapped-content-length:
- "225"
x-amzn-remapped-date:
- Mon, 09 Sep 2024 04:00:53 GMT
x-amzn-requestid:
- 3c20676f-438f-4938-a2a9-6c45bd83542d
x-cache:
- Miss from cloudfront
x-count:
- "4"
x-pool:
- slow
status:
code: 200
message: OK

View File

@@ -48,7 +48,13 @@ async def lifespan(app: FastAPI) -> AsyncGenerator[None, None]:
yield
app = FastAPI(title="RomM API", version=get_version(), lifespan=lifespan)
app = FastAPI(
title="RomM API",
version=get_version(),
lifespan=lifespan,
docs_url="/api/docs",
redoc_url="/api/redoc",
)
app.add_middleware(
CORSMiddleware,

View File

@@ -1,5 +1,7 @@
from __future__ import annotations
import enum
from datetime import datetime
from functools import cached_property
from typing import TYPE_CHECKING, Any, TypedDict
@@ -8,6 +10,8 @@ from models.base import BaseModel
from sqlalchemy import (
JSON,
BigInteger,
DateTime,
Enum,
ForeignKey,
Integer,
String,
@@ -126,6 +130,10 @@ class Rom(BaseModel):
return db_rom_handler.get_rom_collections(self)
# Metadata fields
@property
def youtube_video_id(self) -> str:
return self.igdb_metadata.get("youtube_video_id", "")
@property
def alternative_names(self) -> list[str]:
return (
@@ -174,6 +182,14 @@ class Rom(BaseModel):
return self.file_name
class RomUserStatus(enum.StrEnum):
INCOMPLETE = "incomplete" # Started but not finished
FINISHED = "finished" # Reached the end of the game
COMPLETED_100 = "completed_100" # Completed 100%
RETIRED = "retired" # Won't play again
NEVER_PLAYING = "never_playing" # Will never play
class RomUser(BaseModel):
__tablename__ = "rom_user"
__table_args__ = (
@@ -186,6 +202,17 @@ class RomUser(BaseModel):
note_is_public: Mapped[bool] = mapped_column(default=False)
is_main_sibling: Mapped[bool] = mapped_column(default=False)
last_played: Mapped[datetime | None] = mapped_column(DateTime(timezone=True))
backlogged: Mapped[bool] = mapped_column(default=False)
now_playing: Mapped[bool] = mapped_column(default=False)
hidden: Mapped[bool] = mapped_column(default=False)
rating: Mapped[int] = mapped_column(default=0)
difficulty: Mapped[int] = mapped_column(default=0)
completion: Mapped[int] = mapped_column(default=0)
status: Mapped[RomUserStatus | None] = mapped_column(
Enum(RomUserStatus), default=None
)
rom_id: Mapped[int] = mapped_column(ForeignKey("roms.id", ondelete="CASCADE"))
user_id: Mapped[int] = mapped_column(ForeignKey("users.id", ondelete="CASCADE"))

View File

@@ -6,6 +6,7 @@
"total_rating": 75.10255180007994,
"aggregated_rating": 80.0,
"first_release_date": 1668729600,
"video_id": "dQw4w9WgXcQ",
"alternative_names": [
{
"id": 90678,

View File

@@ -1,7 +1,7 @@
from __future__ import annotations
import enum
from datetime import datetime
from datetime import datetime, timezone
from typing import TYPE_CHECKING
from models.base import BaseModel
@@ -61,4 +61,6 @@ class User(BaseModel, SimpleUser):
def set_last_active(self):
from handler.database import db_user_handler
db_user_handler.update_user(self.id, {"last_active": datetime.now()})
db_user_handler.update_user(
self.id, {"last_active": datetime.now(timezone.utc)}
)

View File

@@ -2,7 +2,13 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#9205f2" />
<meta name="msapplication-TileColor" content="#9205f2" />
<meta name="theme-color" content="#2a0145" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>RomM</title>

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#9205f2</TileColor>
</tile>
</msapplication>
</browserconfig>

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 125 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1612" height="1612" version="1.0" viewBox="0 0 1209 1209"><path d="M566 .3c-.3.2-4.8.7-10 1.1-12.1.8-37.7 4.1-52.8 6.7-104.2 18-199 61.5-282.2 129.2-29.6 24.1-78.2 74.6-94.9 98.5l-2.3 3.3 8.9 9c35.4 36.5 89.5 69.1 145 87.5 9 3 17 5.4 17.8 5.4s10.3-8.9 21.2-19.8c31.4-31.4 55.1-49.9 88.8-69.3 45.9-26.3 105-45.6 155-50.4 3.9-.4 8.1-.9 9.5-1.2 4.4-.9 57.3-1.2 64.5-.3 3.9.4 10.4 1.1 14.5 1.4 35.4 3.2 86.5 17 120.5 32.6 15.4 7 18.5 8.6 31.4 15.7C914.2 312.3 991 426.3 1006.6 555c.3 3 .8 6.6 1 8 .9 5 1.1 61.9.3 74-.5 6.9-1.6 17-2.5 22.5s-1.8 11.3-2.1 13c-1.3 8.4-7.8 35.5-11.3 47.2-7.6 25.1-14.6 42.6-26.5 66.3-19.3 38.7-40.7 68.3-72.3 100-21.1 21.3-30.2 29.5-43.2 39.3-58 43.7-130.6 73-197.5 79.6-5.5.6-12.7 1.3-16 1.6-8.4.8-51.3.9-61.5.1-80.8-6.4-156.3-36-219.3-85.9-47-37.1-83.5-81.5-110.2-134.1-5-9.8-7.5-13.6-8.7-13.6-1 0-7.1 1.7-13.6 3.9-39.5 13.1-73.7 30.9-101.2 52.7-16.1 12.9-42.5 40.7-49.1 51.8l-2 3.5 3.4 6.8c8.1 16.1 30.6 51.2 46 71.8 44.7 59.7 99.2 110.4 161.5 150.3 6.2 3.9 11.4 7.2 11.6 7.2s4.5 2.5 9.5 5.5c16.6 9.9 35.9 19.7 65.6 33.1 13 5.8 43 16.6 62.2 22.3 34 10.1 61.4 16 96.5 20.6 11.1 1.5 14.5 1.9 32.3 3.4 23.3 2 76 1.8 98.5-.4 7.5-.8 38.3-4.5 40.6-4.9 1.1-.2 3.9-.7 6.4-1.1 22.1-3.6 55-11.3 75.4-17.6 15.8-4.9 40.6-13.6 48.1-16.9 1.1-.5 6.5-2.8 12-5 16-6.6 54.7-26.1 71.3-35.9 59-34.7 110.9-78.6 155.3-131.3 76.9-91.1 124.9-202 138.3-319.3.8-7.2 1.8-15 2.1-17.5 1-7.2 1.4-88.6.5-98-.5-4.7-1.4-13.2-2-19-11.9-109.6-53.2-214-118.8-300-20.8-27.3-36.9-45-70.4-77.6-24.9-24.3-66.3-55.6-100.1-75.8C858.5 50.9 792.3 25 728 12c-19.9-4.1-47.2-8.3-61.5-9.5-4.4-.4-9.1-1-10.5-1.2-3.3-.6-89.4-1.5-90-1"/><path d="M535.3 302.2c-7.1.6-12.1 1.4-25.8 4.2-1.1.3-6 1.6-11 3.1-19.3 5.6-39.1 14.8-59 27.3-6.6 4.1-16.2 9.5-21.4 12-15 7.1-61.7 21.7-82.6 25.8-12.8 2.5-25.4 4.3-37 5.2-12.2 1-71.5.9-84.4-.1-40.4-3.1-95.1-14.5-139.3-29L59 345.5l-2.6 5.5c-8.3 17.3-23.9 58.4-29.9 79-17 57.9-24.9 113-24.9 173 0 28.3 2.3 65.9 4.9 80 .2 1.4.7 4.5 1 7 2.6 19.8 10.4 57.3 12.3 59.2.8.8 6-.5 17.4-4 46.6-14.6 88.3-24.1 140.8-32.2 6.9-1 15-2.2 18-2.5s6.2-.8 7-1c2.4-.6 42.2-4.4 56-5.2 25.2-1.6 85.8-.8 108.5 1.3 75.3 7.1 103.2 14.3 133.2 34.4 9.8 6.6 11.1 7.8 24.8 21.5 10.6 10.6 15.6 17.1 44 56.5 44.5 61.9 53.9 74.3 63.8 83.6 16.1 15.3 37.7 27.1 58.2 31.9 17 4 44.8 4.1 59.5.2 30-8 50.1-20.3 68.1-41.7 13.6-16.1 22.7-35.6 28.5-61.5.3-1.7.8-11.6 1-22 .5-28.1 0-30.3-18.3-80-4.7-12.7-9.3-25.3-10.3-28-7.1-19.4-63.7-169.5-76.1-201.5-8.3-21.7-16.2-42.2-17.4-45.5-6.8-18-22.4-55.6-27.4-66-12.7-26.4-29.7-46.4-51.6-60.7-20.3-13.2-49.1-23.1-71-24.3-16.4-1-32.5-1.1-41.2-.3m9.8 141.6c9.9 4.8 15.9 13.8 16.6 25.1 1.2 16.5-10.2 29.7-26.7 30.9-18 1.3-31.9-10.8-32.1-28-.2-14.7 7.3-25.4 21.1-29.9 4.7-1.5 16.2-.5 21.1 1.9m-62.9 56.5c13.4 3.5 22.5 16.8 21.2 30.9-1 10.1-6.2 18.2-15.3 23.6-3.5 2.1-5.9 2.6-12 2.8-11.9.4-15.6-.9-22.8-8.1-5-5-6.5-7.2-7.8-12-4.2-14.3 2.2-28.7 15.7-35.5 6.8-3.3 12.9-3.9 21-1.7m121.3 1.5c5.4 2.7 10.9 8.4 13.7 14.1 1.8 3.7 2.3 6.3 2.3 13.1 0 7.6-.3 9.1-3 13.8-3.5 6.4-7.1 9.7-14.4 13-4.6 2.1-6.3 2.4-13.5 2-9-.5-12.5-1.9-18.7-7.5-5.9-5.3-8.1-10.4-8.7-19.4-.8-13.9 4.8-23.7 17.1-29.5 4.6-2.2 6.2-2.5 13.2-2.1 5.5.3 9.4 1.1 12 2.5m-58.6 58.3c22.4 9.6 22.3 44.2 0 53.8-8.6 3.8-21.7 3.1-28.6-1.5-20.3-13.2-17.1-44.4 5.5-53.5 6-2.5 15.9-2 23.1 1.2"/></svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@@ -0,0 +1,19 @@
{
"name": "RomM",
"short_name": "RomM",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#2a0145",
"background_color": "#2a0145",
"display": "standalone"
}

View File

@@ -33,6 +33,7 @@ export type { RomIGDBMetadata } from './models/RomIGDBMetadata';
export type { RomMobyMetadata } from './models/RomMobyMetadata';
export type { RomSchema } from './models/RomSchema';
export type { RomUserSchema } from './models/RomUserSchema';
export type { RomUserStatus } from './models/RomUserStatus';
export type { SaveSchema } from './models/SaveSchema';
export type { SchedulerDict } from './models/SchedulerDict';
export type { ScreenshotSchema } from './models/ScreenshotSchema';

View File

@@ -32,6 +32,7 @@ export type DetailedRomSchema = {
slug: (string | null);
summary: (string | null);
first_release_date: (number | null);
youtube_video_id: (string | null);
alternative_names: Array<string>;
genres: Array<string>;
franchises: Array<string>;
@@ -58,13 +59,13 @@ export type DetailedRomSchema = {
created_at: string;
updated_at: string;
merged_screenshots: Array<string>;
sibling_roms?: Array<RomSchema>;
rom_user?: (RomUserSchema | null);
user_saves?: Array<SaveSchema>;
user_states?: Array<StateSchema>;
user_screenshots?: Array<ScreenshotSchema>;
user_notes?: Array<UserNotesSchema>;
user_collections?: Array<CollectionSchema>;
sibling_roms: Array<RomSchema>;
rom_user: RomUserSchema;
user_saves: Array<SaveSchema>;
user_states: Array<StateSchema>;
user_screenshots: Array<ScreenshotSchema>;
user_notes: Array<UserNotesSchema>;
user_collections: Array<CollectionSchema>;
readonly sort_comparator: string;
};

View File

@@ -11,6 +11,7 @@ export type RomIGDBMetadata = {
total_rating?: string;
aggregated_rating?: string;
first_release_date?: (number | null);
youtube_video_id?: (string | null);
genres?: Array<string>;
franchises?: Array<string>;
alternative_names?: Array<string>;

View File

@@ -25,6 +25,7 @@ export type RomSchema = {
slug: (string | null);
summary: (string | null);
first_release_date: (number | null);
youtube_video_id: (string | null);
alternative_names: Array<string>;
genres: Array<string>;
franchises: Array<string>;

View File

@@ -3,6 +3,8 @@
/* tslint:disable */
/* eslint-disable */
import type { RomUserStatus } from './RomUserStatus';
export type RomUserSchema = {
id: number;
user_id: number;
@@ -12,6 +14,13 @@ export type RomUserSchema = {
note_raw_markdown: string;
note_is_public: boolean;
is_main_sibling: boolean;
backlogged: boolean;
now_playing: boolean;
hidden: boolean;
rating: number;
difficulty: number;
completion: number;
status: (RomUserStatus | null);
user__username: string;
};

View File

@@ -0,0 +1,6 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type RomUserStatus = 'incomplete' | 'finished' | 'completed_100' | 'retired' | 'never_playing';

View File

@@ -27,6 +27,7 @@ export type SimpleRomSchema = {
slug: (string | null);
summary: (string | null);
first_release_date: (number | null);
youtube_video_id: (string | null);
alternative_names: Array<string>;
genres: Array<string>;
franchises: Array<string>;
@@ -52,8 +53,8 @@ export type SimpleRomSchema = {
full_path: string;
created_at: string;
updated_at: string;
sibling_roms?: Array<RomSchema>;
rom_user?: (RomUserSchema | null);
sibling_roms: Array<RomSchema>;
rom_user: RomUserSchema;
readonly sort_comparator: string;
};

View File

@@ -14,17 +14,7 @@ import { ref, watch } from "vue";
const props = defineProps<{ rom: DetailedRom; platform: Platform }>();
const downloadStore = storeDownload();
const auth = storeAuth();
const romUser = ref(
props.rom.rom_user ?? {
id: null,
user_id: auth.user?.id,
rom_id: props.rom.id,
updated_at: new Date(),
note_raw_markdown: "",
note_is_public: false,
is_main_sibling: false,
},
);
const romUser = ref(props.rom.rom_user);
// Functions
function collectionsWithoutFavourites(collections: Collection[]) {
@@ -35,25 +25,13 @@ async function toggleMainSibling() {
romUser.value.is_main_sibling = !romUser.value.is_main_sibling;
romApi.updateUserRomProps({
romId: props.rom.id,
noteRawMarkdown: romUser.value.note_raw_markdown,
noteIsPublic: romUser.value.note_is_public,
isMainSibling: romUser.value.is_main_sibling,
data: romUser.value,
});
}
watch(
() => props.rom,
async () => {
romUser.value = props.rom.rom_user ?? {
id: null,
user_id: auth.user?.id,
rom_id: props.rom.id,
updated_at: new Date(),
note_raw_markdown: "",
note_is_public: false,
is_main_sibling: false,
};
},
async () => (romUser.value = props.rom.rom_user),
);
</script>
<template>

View File

@@ -7,9 +7,10 @@ import { useRouter } from "vue-router";
const props = defineProps<{ rom: DetailedRom }>();
const { xs } = useDisplay();
const galleryFilterStore = storeGalleryFilter();
const show = ref(false);
const carousel = ref(0);
const router = useRouter();
const filters = ["genres", "franchises", "collections", "companies"] as const;
function onFilterClick(filter: FilterType, value: string) {
router.push({
@@ -23,12 +24,7 @@ function onFilterClick(filter: FilterType, value: string) {
<v-row no-gutters>
<v-col>
<v-divider class="mx-2 my-4" />
<template
v-for="filter in galleryFilterStore.filters.filter(
(f) => f !== 'age_ratings',
)"
:key="filter"
>
<template v-for="filter in filters" :key="filter">
<v-row
v-if="rom[filter].length > 0"
class="align-center my-3"
@@ -84,11 +80,14 @@ function onFilterClick(filter: FilterType, value: string) {
</v-col>
</v-row>
</template>
<template v-if="rom.merged_screenshots.length > 0">
<template
v-if="rom.merged_screenshots.length > 0 || rom.youtube_video_id"
>
<v-divider class="mx-2 my-4" />
<v-row no-gutters>
<v-col>
<v-carousel
v-model="carousel"
hide-delimiter-background
delimiter-icon="mdi-square"
class="bg-primary"
@@ -104,6 +103,22 @@ function onFilterClick(filter: FilterType, value: string) {
@click="props.onClick"
/>
</template>
<v-carousel-item
v-if="rom.youtube_video_id"
:key="rom.youtube_video_id"
content-class="d-flex justify-center align-center"
>
<iframe
height="100%"
:src="`https://www.youtube.com/embed/${rom.youtube_video_id}`"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin"
style="aspect-ratio: 16 / 9"
allowfullscreen
></iframe>
</v-carousel-item>
<v-carousel-item
v-for="screenshot_url in rom.merged_screenshots"
:key="screenshot_url"
@@ -131,6 +146,7 @@ function onFilterClick(filter: FilterType, value: string) {
</template>
</v-list-item>
<v-carousel
v-model="carousel"
hide-delimiter-background
delimiter-icon="mdi-square"
show-arrows="hover"
@@ -144,6 +160,22 @@ function onFilterClick(filter: FilterType, value: string) {
class="translucent-dark"
/>
</template>
<v-carousel-item
v-if="rom.youtube_video_id"
:key="rom.youtube_video_id"
content-class="d-flex justify-center align-center"
>
<iframe
height="100%"
:src="`https://www.youtube.com/embed/${rom.youtube_video_id}`"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin"
style="aspect-ratio: 16 / 9"
allowfullscreen
></iframe>
</v-carousel-item>
<v-carousel-item
v-for="screenshot_url in rom.merged_screenshots"
:key="screenshot_url"

View File

@@ -2,68 +2,179 @@
import romApi from "@/services/api/rom";
import storeAuth from "@/stores/auth";
import type { DetailedRom } from "@/stores/roms";
import type { RomUserStatus } from "@/__generated__";
import { getTextForStatus } from "@/utils";
import { MdEditor, MdPreview } from "md-editor-v3";
import "md-editor-v3/lib/style.css";
import { ref, watch } from "vue";
import { useTheme } from "vuetify";
// Props
const props = defineProps<{ rom: DetailedRom }>();
const auth = storeAuth();
const theme = useTheme();
const editingNote = ref(false);
const romUser = ref(
props.rom.rom_user ?? {
id: null,
user_id: auth.user?.id,
rom_id: props.rom.id,
updated_at: new Date(),
note_raw_markdown: "",
note_is_public: false,
is_main_sibling: false,
},
);
const romUser = ref(props.rom.rom_user);
const publicNotes =
props.rom.user_notes?.filter((note) => note.user_id !== auth.user?.id) ?? [];
function togglePublic() {
romUser.value.note_is_public = !romUser.value.note_is_public;
romApi.updateUserRomProps({
romId: props.rom.id,
noteRawMarkdown: romUser.value.note_raw_markdown,
noteIsPublic: romUser.value.note_is_public,
isMainSibling: romUser.value.is_main_sibling,
});
}
const difficultyEmojis = [
"😴",
"🥱",
"😐",
"😄",
"🤔",
"🤯",
"😓",
"😡",
"🤬",
"😵",
];
const statusOptions = [
null,
"incomplete",
"finished",
"completed_100",
"retired",
"never_playing",
];
function editNote() {
if (editingNote.value) {
romApi.updateUserRomProps({
romId: props.rom.id,
noteRawMarkdown: romUser.value.note_raw_markdown,
noteIsPublic: romUser.value.note_is_public,
isMainSibling: romUser.value.is_main_sibling,
data: romUser.value,
});
}
editingNote.value = !editingNote.value;
}
function onStatusItemClick(status: string | null) {
romUser.value.status = status as RomUserStatus | null;
}
watch(
() => props.rom,
async () => {
romUser.value = props.rom.rom_user ?? {
id: null,
user_id: auth.user?.id,
rom_id: props.rom.id,
updated_at: new Date(),
note_raw_markdown: "",
note_is_public: false,
is_main_sibling: false,
};
async () => (romUser.value = props.rom.rom_user),
);
watch(
romUser,
() => {
romApi.updateUserRomProps({
romId: props.rom.id,
data: romUser.value,
});
},
{ deep: true },
);
</script>
<template>
<v-card rounded="0" class="mb-2">
<v-card-title class="bg-terciary">
<v-list-item class="pl-2 pr-0">
<span class="text-h6">Status</span>
</v-list-item>
</v-card-title>
<v-card-text class="py-4 px-8">
<v-row no-gutters>
<v-col cols="6">
<v-checkbox
label="Backlogged"
v-model="romUser.backlogged"
color="romm-accent-1"
hide-details
/>
<v-checkbox
label="Now playing"
v-model="romUser.now_playing"
color="romm-accent-1"
hide-details
/>
<v-checkbox
label="Hidden"
v-model="romUser.hidden"
color="romm-accent-1"
hide-details
/>
</v-col>
<v-col cols="6">
<div class="d-flex align-center mt-2">
<v-label class="text-body-2 mr-4">Rating</v-label>
<v-rating
hover
ripple
length="10"
size="32"
v-model="romUser.rating"
@update:model-value="
romUser.rating =
typeof $event === 'number' ? $event : parseInt($event)
"
active-color="romm-accent-1"
/>
</div>
<div class="d-flex align-center mt-3">
<v-label class="text-body-2 mr-4">Difficulty</v-label>
<v-slider
v-model="romUser.difficulty"
min="1"
max="10"
step="1"
hide-details
track-fill-color="romm-accent-1"
/>
<v-label class="ml-2 opacity-100">
{{
difficultyEmojis[Math.floor(romUser.difficulty) - 1] ?? "😀"
}}</v-label
>
</div>
<div class="d-flex align-center mt-3">
<v-label class="text-body-2 mr-4">Completion %</v-label>
<v-slider
v-model="romUser.completion"
min="1"
max="100"
step="1"
hide-details
track-fill-color="romm-accent-1"
/>
<v-label class="text-body-2 ml-2 opacity-100">
{{ romUser.completion }}%
</v-label>
</div>
<div class="d-flex align-center mt-3">
<v-select
v-model="romUser.status"
:items="statusOptions"
hide-details
label="Status"
dense
rounded="0"
variant="outlined"
density="compact"
class="mt-1"
>
<template v-slot:selection="{ item }">
<span>{{ getTextForStatus(item.raw as RomUserStatus) }}</span>
</template>
<template v-slot:item="{ item }">
<v-list-item
link
rounded="0"
@click="onStatusItemClick(item.raw)"
>
{{ getTextForStatus(item.raw as RomUserStatus) }}
</v-list-item>
</template>
</v-select>
</div>
</v-col>
</v-row>
</v-card-text>
</v-card>
<v-card rounded="0">
<v-card-title class="bg-terciary">
<v-list-item class="pl-2 pr-0">
@@ -78,7 +189,7 @@ watch(
open-delay="500"
><template #activator="{ props: tooltipProps }">
<v-btn
@click="togglePublic"
@click="romUser.note_is_public = !romUser.note_is_public"
v-bind="tooltipProps"
class="bg-terciary"
>

View File

@@ -2,6 +2,7 @@
import type { Platform } from "@/stores/platforms";
import type { DetailedRom } from "@/stores/roms";
import { languageToEmoji, regionToEmoji } from "@/utils";
import type { RomSchema } from "@/__generated__";
import { ref } from "vue";
import { useRouter } from "vue-router";
@@ -11,7 +12,7 @@ const router = useRouter();
const version = ref(props.rom.id);
// Functions
function formatTitle(rom: DetailedRom) {
function formatTitle(rom: RomSchema) {
const langs = rom.languages.map((l) => languageToEmoji(l)).join(" ");
const regions = rom.regions.map((r) => regionToEmoji(r)).join(" ");
const tags = rom.tags.map((t) => `(${t})`).join(" ");

View File

@@ -7,10 +7,9 @@ import storeGalleryFilter from "@/stores/galleryFilter";
import type { Events } from "@/types/emitter";
import type { Emitter } from "mitt";
import { storeToRefs } from "pinia";
import { inject, nextTick, ref } from "vue";
import { inject, nextTick } from "vue";
import { useDisplay } from "vuetify";
// Props
const { xs } = useDisplay();
const emitter = inject<Emitter<Events>>("emitter");
const galleryFilterStore = storeGalleryFilter();
@@ -27,6 +26,8 @@ const {
filterCompanies,
selectedAgeRating,
filterAgeRatings,
selectedStatus,
filterStatuses,
} = storeToRefs(galleryFilterStore);
const filters = [
@@ -55,15 +56,20 @@ const filters = [
selected: selectedAgeRating,
items: filterAgeRatings,
},
{
label: "Status",
selected: selectedStatus,
items: filterStatuses,
},
];
// Functions
function resetFilters() {
selectedGenre.value = null;
selectedFranchise.value = null;
selectedCollection.value = null;
selectedCompany.value = null;
selectedAgeRating.value = null;
selectedStatus.value = null;
galleryFilterStore.disableFilterUnmatched();
galleryFilterStore.disableFilterFavourites();
nextTick(() => emitter?.emit("filter", null));
@@ -102,8 +108,8 @@ function resetFilters() {
</v-list-item>
<v-list-item class="justify-center d-flex">
<v-btn size="small" variant="tonal" @click="resetFilters">
Reset filters</v-btn
>
Reset filters
</v-btn>
</v-list-item>
</v-list>
</v-navigation-drawer>

View File

@@ -23,11 +23,12 @@ const removeCover = ref(false);
const emitter = inject<Emitter<Events>>("emitter");
emitter?.on("showCreateCollectionDialog", () => {
show.value = true;
removeCover.value = false;
});
emitter?.on("updateUrlCover", (url_cover) => {
if (!collection.value) return;
collection.value.url_cover = url_cover;
imagePreviewUrl.value = url_cover;
setArtwork(url_cover);
});
function triggerFileInput() {
@@ -41,13 +42,19 @@ function previewImage(event: Event) {
const reader = new FileReader();
reader.onload = () => {
imagePreviewUrl.value = reader.result?.toString();
setArtwork(reader.result?.toString() || "");
};
if (input.files[0]) {
reader.readAsDataURL(input.files[0]);
}
}
function setArtwork(imageUrl: string) {
if (!imageUrl) return;
imagePreviewUrl.value = imageUrl;
removeCover.value = false;
}
async function removeArtwork() {
imagePreviewUrl.value = `/assets/default/cover/big_${theme.global.name.value}_missing_cover.png`;
removeCover.value = true;

View File

@@ -23,11 +23,12 @@ const emitter = inject<Emitter<Events>>("emitter");
emitter?.on("showEditCollectionDialog", (collectionToEdit: Collection) => {
collection.value = collectionToEdit;
show.value = true;
removeCover.value = false;
});
emitter?.on("updateUrlCover", (url_cover) => {
if (!collection.value) return;
collection.value.url_cover = url_cover;
imagePreviewUrl.value = url_cover;
setArtwork(url_cover);
});
function triggerFileInput() {
@@ -41,13 +42,19 @@ function previewImage(event: Event) {
const reader = new FileReader();
reader.onload = () => {
imagePreviewUrl.value = reader.result?.toString();
setArtwork(reader.result?.toString() || "");
};
if (input.files[0]) {
reader.readAsDataURL(input.files[0]);
}
}
function setArtwork(imageUrl: string) {
if (!imageUrl) return;
imagePreviewUrl.value = imageUrl;
removeCover.value = false;
}
async function removeArtwork() {
imagePreviewUrl.value = `/assets/default/cover/big_${theme.global.name.value}_collection.png`;
removeCover.value = true;
@@ -61,6 +68,7 @@ async function editCollection() {
await collectionApi
.updateCollection({
collection: collection.value,
removeCover: removeCover.value,
})
.then(({ data }) => {
storeCollection.update(data);

View File

@@ -1,9 +1,15 @@
<script setup lang="ts">
import { computed } from "vue";
import { type SimpleRom } from "@/stores/roms.js";
import { languageToEmoji, regionToEmoji } from "@/utils";
import {
languageToEmoji,
regionToEmoji,
getEmojiForStatus,
getTextForStatus,
} from "@/utils";
import { identity, isNull } from "lodash";
defineProps<{ rom: SimpleRom }>();
const props = defineProps<{ rom: SimpleRom }>();
const showRegions = isNull(localStorage.getItem("settings.showRegions"))
? true
: localStorage.getItem("settings.showRegions") === "true";
@@ -13,6 +19,12 @@ const showLanguages = isNull(localStorage.getItem("settings.showLanguages"))
const showSiblings = isNull(localStorage.getItem("settings.showSiblings"))
? true
: localStorage.getItem("settings.showSiblings") === "true";
const playingStatus = computed(() => {
if (props.rom.rom_user.now_playing) return "now_playing";
if (props.rom.rom_user.backlogged) return "backlogged";
return props.rom.rom_user.status;
});
</script>
<template>
@@ -38,6 +50,14 @@ const showSiblings = isNull(localStorage.getItem("settings.showSiblings"))
{{ languageToEmoji(language) }}
</span>
</v-chip>
<v-chip
v-if="playingStatus"
class="translucent-dark mr-1 mt-1"
density="compact"
:title="getTextForStatus(playingStatus)"
>
{{ getEmojiForStatus(playingStatus) }}
</v-chip>
<v-chip
v-if="rom.sibling_roms && rom.sibling_roms.length > 0 && showSiblings"
class="translucent-dark mr-1 mt-1"

View File

@@ -24,11 +24,12 @@ const emitter = inject<Emitter<Events>>("emitter");
emitter?.on("showEditRomDialog", (romToEdit: UpdateRom | undefined) => {
show.value = true;
rom.value = romToEdit;
removeCover.value = false;
});
emitter?.on("updateUrlCover", (url_cover) => {
if (!rom.value) return;
rom.value.url_cover = url_cover;
imagePreviewUrl.value = url_cover;
setArtwork(url_cover);
});
// Functions
@@ -43,13 +44,19 @@ function previewImage(event: Event) {
const reader = new FileReader();
reader.onload = () => {
imagePreviewUrl.value = reader.result?.toString();
setArtwork(reader.result?.toString() || "");
};
if (input.files[0]) {
reader.readAsDataURL(input.files[0]);
}
}
function setArtwork(imageUrl: string) {
if (!imageUrl) return;
imagePreviewUrl.value = imageUrl;
removeCover.value = false;
}
async function removeArtwork() {
imagePreviewUrl.value = `/assets/default/cover/big_${theme.global.name.value}_missing_cover.png`;
removeCover.value = true;

View File

@@ -39,9 +39,16 @@ const isIGDBFiltered = ref(true);
const isMobyFiltered = ref(true);
emitter?.on("showMatchRomDialog", (romToSearch) => {
rom.value = romToSearch;
searchTerm.value = romToSearch.name || romToSearch.file_name_no_tags || "";
show.value = true;
if (rom.value.igdb_id || rom.value.moby_id) {
// Use name as search term, only when it's matched
// Otherwise use the filename without tags and extensions
searchTerm.value =
romToSearch.igdb_id || romToSearch.moby_id
? (romToSearch.name ?? "")
: romToSearch.file_name_no_tags;
if (searchTerm.value) {
searchRom();
}
});

View File

@@ -1,4 +1,8 @@
import type { MessageResponse, SearchRomSchema } from "@/__generated__";
import type {
MessageResponse,
SearchRomSchema,
RomUserSchema,
} from "@/__generated__";
import api from "@/services/api/index";
import socket from "@/services/socket";
import storeUpload from "@/stores/upload";
@@ -169,20 +173,12 @@ async function deleteRoms({
async function updateUserRomProps({
romId,
noteRawMarkdown,
noteIsPublic,
isMainSibling,
data,
}: {
romId: number;
noteRawMarkdown: string;
noteIsPublic: boolean;
isMainSibling: boolean;
data: Partial<RomUserSchema>;
}): Promise<{ data: DetailedRom }> {
return api.put(`/roms/${romId}/props`, {
note_raw_markdown: noteRawMarkdown,
note_is_public: noteIsPublic,
is_main_sibling: isMainSibling,
});
return api.put(`/roms/${romId}/props`, data);
}
export default {

View File

@@ -1,5 +1,6 @@
import { normalizeString } from "@/utils";
import { defineStore } from "pinia";
import { romStatusMap } from "@/utils";
const filters = [
"genres",
@@ -7,8 +8,11 @@ const filters = [
"collections",
"companies",
"age_ratings",
"status",
] as const;
const statusFilters = Object.values(romStatusMap).map((status) => status.text);
export type FilterType = (typeof filters)[number];
export default defineStore("galleryFilter", {
@@ -21,6 +25,7 @@ export default defineStore("galleryFilter", {
filterCollections: [] as string[],
filterCompanies: [] as string[],
filterAgeRatings: [] as string[],
filterStatuses: statusFilters,
filterUnmatched: false,
filterFavourites: false,
filterDuplicates: false,
@@ -29,6 +34,7 @@ export default defineStore("galleryFilter", {
selectedCollection: null as string | null,
selectedCompany: null as string | null,
selectedAgeRating: null as string | null,
selectedStatus: null as string | null,
}),
actions: {
@@ -68,6 +74,9 @@ export default defineStore("galleryFilter", {
setSelectedFilterAgeRating(ageRating: string) {
this.selectedAgeRating = ageRating;
},
setSelectedFilterStatus(status: string) {
this.selectedStatus = status;
},
switchFilterUnmatched() {
this.filterUnmatched = !this.filterUnmatched;
},
@@ -96,7 +105,8 @@ export default defineStore("galleryFilter", {
this.selectedFranchise ||
this.selectedCollection ||
this.selectedCompany ||
this.selectedAgeRating,
this.selectedAgeRating ||
this.selectedStatus,
);
},
reset() {
@@ -109,6 +119,7 @@ export default defineStore("galleryFilter", {
this.selectedCollection = null;
this.selectedCompany = null;
this.selectedAgeRating = null;
this.selectedStatus = null;
},
},
});

View File

@@ -1,5 +1,6 @@
import type { SearchRomSchema } from "@/__generated__";
import type { DetailedRomSchema, SimpleRomSchema } from "@/__generated__/";
import { getStatusKeyForText } from "@/utils";
import { type Platform } from "@/stores/platforms";
import { type Collection } from "@/stores/collections";
import type { ExtractPiniaStoreType } from "@/types";
@@ -154,6 +155,16 @@ export default defineStore("roms", {
if (galleryFilter.selectedAgeRating) {
this._filterAgeRating(galleryFilter.selectedAgeRating);
}
if (galleryFilter.selectedStatus) {
this._filterStatus(galleryFilter.selectedStatus);
} else {
this._filteredIDs = new Set(
// Filter hidden roms if the status is not hidden
this.filteredRoms
.filter((rom) => !rom.rom_user.hidden)
.map((rom) => rom.id),
);
}
},
_filterSearch(searchFilter: string) {
const bySearch = new Set(
@@ -263,6 +274,26 @@ export default defineStore("roms", {
// @ts-expect-error intersection is recently defined on Set
this._filteredIDs = byAgeRating.intersection(this._filteredIDs);
},
_filterStatus(statusToFilter: string) {
const stf = getStatusKeyForText(statusToFilter);
const byStatus = new Set(
this.filteredRoms
.filter(
(rom) =>
rom.rom_user.status === stf ||
(stf === "now_playing" && rom.rom_user.now_playing) ||
(stf === "backlogged" && rom.rom_user.backlogged) ||
(stf === "hidden" && rom.rom_user.hidden),
)
// Filter hidden roms if the status is not hidden
.filter((rom) => (stf === "hidden" ? true : !rom.rom_user.hidden))
.map((rom) => rom.id),
);
// @ts-expect-error intersection is recently defined on Set
this._filteredIDs = byStatus.intersection(this._filteredIDs);
},
// Selected roms
setSelection(roms: SimpleRom[]) {
this._selectedIDs = new Set(roms.map((rom) => rom.id));

View File

@@ -1,6 +1,7 @@
import cronstrue from "cronstrue";
import type { SimpleRom } from "@/stores/roms";
import type { Heartbeat } from "@/stores/heartbeat";
import type { RomUserStatus } from "@/__generated__";
export const views: Record<
number,
@@ -365,3 +366,35 @@ export function isRuffleEmulationSupported(
!heartbeat.EMULATION.DISABLE_RUFFLE_RS
);
}
type PlayingStatus = RomUserStatus | "backlogged" | "now_playing" | "hidden";
export const romStatusMap: Record<
PlayingStatus,
{ emoji: string; text: string }
> = {
backlogged: { emoji: "🔜", text: "Backlogged" },
now_playing: { emoji: "🕹️", text: "Now Playing" },
incomplete: { emoji: "🚧", text: "Incomplete" },
finished: { emoji: "🏁", text: "Finished" },
completed_100: { emoji: "💯", text: "Completed 100%" },
retired: { emoji: "🏴", text: "Retired" },
never_playing: { emoji: "🚫", text: "Never Playing" },
hidden: { emoji: "👻", text: "Hidden" },
};
const inverseRomStatusMap = Object.fromEntries(
Object.entries(romStatusMap).map(([key, value]) => [value.text, key]),
) as Record<string, PlayingStatus>;
export function getEmojiForStatus(status: PlayingStatus) {
return romStatusMap[status].emoji;
}
export function getTextForStatus(status: PlayingStatus) {
return romStatusMap[status].text;
}
export function getStatusKeyForText(text: string) {
return inverseRomStatusMap[text];
}

View File

@@ -128,7 +128,6 @@ async function onFilterChange() {
function onGameClick(emitData: { rom: SimpleRom; event: MouseEvent }) {
let index = filteredRoms.value.indexOf(emitData.rom);
if (
emitData.event.ctrlKey ||
emitData.event.shiftKey ||
romsStore.selecting ||
romsStore.selectedRoms.length > 0
@@ -159,16 +158,14 @@ function onGameClick(emitData: { rom: SimpleRom; event: MouseEvent }) {
} else {
romsStore.updateLastSelected(index);
}
} else if (emitData.event.metaKey || emitData.event.ctrlKey) {
const link = router.resolve({
name: "rom",
params: { rom: emitData.rom.id },
});
window.open(link.href, "_blank");
} else {
if (emitData.event.metaKey || emitData.event.ctrlKey) {
const link = router.resolve({
name: "rom",
params: { rom: emitData.rom.id },
});
window.open(link.href, "_blank");
} else {
router.push({ name: "rom", params: { rom: emitData.rom.id } });
}
router.push({ name: "rom", params: { rom: emitData.rom.id } });
}
}

View File

@@ -127,7 +127,6 @@ async function onFilterChange() {
function onGameClick(emitData: { rom: SimpleRom; event: MouseEvent }) {
let index = filteredRoms.value.indexOf(emitData.rom);
if (
emitData.event.ctrlKey ||
emitData.event.shiftKey ||
romsStore.selecting ||
romsStore.selectedRoms.length > 0
@@ -158,16 +157,14 @@ function onGameClick(emitData: { rom: SimpleRom; event: MouseEvent }) {
} else {
romsStore.updateLastSelected(index);
}
} else if (emitData.event.metaKey || emitData.event.ctrlKey) {
const link = router.resolve({
name: "rom",
params: { rom: emitData.rom.id },
});
window.open(link.href, "_blank");
} else {
if (emitData.event.metaKey || emitData.event.ctrlKey) {
const link = router.resolve({
name: "rom",
params: { rom: emitData.rom.id },
});
window.open(link.href, "_blank");
} else {
router.push({ name: "rom", params: { rom: emitData.rom.id } });
}
router.push({ name: "rom", params: { rom: emitData.rom.id } });
}
}
@@ -216,6 +213,7 @@ const filterToSetFilter: Record<FilterType, Function> = {
collections: galleryFilterStore.setSelectedFilterCollection,
companies: galleryFilterStore.setSelectedFilterCompany,
age_ratings: galleryFilterStore.setSelectedFilterAgeRating,
status: galleryFilterStore.setSelectedFilterStatus,
};
onMounted(async () => {

View File

@@ -4,7 +4,7 @@ import AdditionalContent from "@/components/Details/AdditionalContent.vue";
import BackgroundHeader from "@/components/Details/BackgroundHeader.vue";
import FileInfo from "@/components/Details/Info/FileInfo.vue";
import GameInfo from "@/components/Details/Info/GameInfo.vue";
import Notes from "@/components/Details/Notes.vue";
import Personal from "@/components/Details/Personal.vue";
import RelatedGames from "@/components/Details/RelatedGames.vue";
import Saves from "@/components/Details/Saves.vue";
import States from "@/components/Details/States.vue";
@@ -30,7 +30,7 @@ const tab = ref<
| "details"
| "saves"
| "states"
| "notes"
| "personal"
| "additionalcontent"
| "screenshots"
| "relatedgames"
@@ -151,7 +151,7 @@ watch(
<v-tab value="details" rounded="0"> Details </v-tab>
<v-tab value="saves" rounded="0"> Saves </v-tab>
<v-tab value="states" rounded="0"> States </v-tab>
<v-tab value="notes" rounded="0"> Notes </v-tab>
<v-tab value="personal" rounded="0"> Personal </v-tab>
<v-tab
v-if="
mdAndDown &&
@@ -196,8 +196,8 @@ watch(
<v-window-item value="states">
<states :rom="currentRom" />
</v-window-item>
<v-window-item value="notes">
<notes :rom="currentRom" />
<v-window-item value="personal">
<personal :rom="currentRom" />
</v-window-item>
<v-window-item
v-if="

63
poetry.lock generated
View File

@@ -390,43 +390,38 @@ files = [
[[package]]
name = "cryptography"
version = "42.0.8"
version = "43.0.1"
description = "cryptography is a package which provides cryptographic recipes and primitives to Python developers."
optional = false
python-versions = ">=3.7"
files = [
{file = "cryptography-42.0.8-cp37-abi3-macosx_10_12_universal2.whl", hash = "sha256:81d8a521705787afe7a18d5bfb47ea9d9cc068206270aad0b96a725022e18d2e"},
{file = "cryptography-42.0.8-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:961e61cefdcb06e0c6d7e3a1b22ebe8b996eb2bf50614e89384be54c48c6b63d"},
{file = "cryptography-42.0.8-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e3ec3672626e1b9e55afd0df6d774ff0e953452886e06e0f1eb7eb0c832e8902"},
{file = "cryptography-42.0.8-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e599b53fd95357d92304510fb7bda8523ed1f79ca98dce2f43c115950aa78801"},
{file = "cryptography-42.0.8-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:5226d5d21ab681f432a9c1cf8b658c0cb02533eece706b155e5fbd8a0cdd3949"},
{file = "cryptography-42.0.8-cp37-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:6b7c4f03ce01afd3b76cf69a5455caa9cfa3de8c8f493e0d3ab7d20611c8dae9"},
{file = "cryptography-42.0.8-cp37-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:2346b911eb349ab547076f47f2e035fc8ff2c02380a7cbbf8d87114fa0f1c583"},
{file = "cryptography-42.0.8-cp37-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:ad803773e9df0b92e0a817d22fd8a3675493f690b96130a5e24f1b8fabbea9c7"},
{file = "cryptography-42.0.8-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:2f66d9cd9147ee495a8374a45ca445819f8929a3efcd2e3df6428e46c3cbb10b"},
{file = "cryptography-42.0.8-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:d45b940883a03e19e944456a558b67a41160e367a719833c53de6911cabba2b7"},
{file = "cryptography-42.0.8-cp37-abi3-win32.whl", hash = "sha256:a0c5b2b0585b6af82d7e385f55a8bc568abff8923af147ee3c07bd8b42cda8b2"},
{file = "cryptography-42.0.8-cp37-abi3-win_amd64.whl", hash = "sha256:57080dee41209e556a9a4ce60d229244f7a66ef52750f813bfbe18959770cfba"},
{file = "cryptography-42.0.8-cp39-abi3-macosx_10_12_universal2.whl", hash = "sha256:dea567d1b0e8bc5764b9443858b673b734100c2871dc93163f58c46a97a83d28"},
{file = "cryptography-42.0.8-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c4783183f7cb757b73b2ae9aed6599b96338eb957233c58ca8f49a49cc32fd5e"},
{file = "cryptography-42.0.8-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a0608251135d0e03111152e41f0cc2392d1e74e35703960d4190b2e0f4ca9c70"},
{file = "cryptography-42.0.8-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:dc0fdf6787f37b1c6b08e6dfc892d9d068b5bdb671198c72072828b80bd5fe4c"},
{file = "cryptography-42.0.8-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:9c0c1716c8447ee7dbf08d6db2e5c41c688544c61074b54fc4564196f55c25a7"},
{file = "cryptography-42.0.8-cp39-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:fff12c88a672ab9c9c1cf7b0c80e3ad9e2ebd9d828d955c126be4fd3e5578c9e"},
{file = "cryptography-42.0.8-cp39-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:cafb92b2bc622cd1aa6a1dce4b93307792633f4c5fe1f46c6b97cf67073ec961"},
{file = "cryptography-42.0.8-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:31f721658a29331f895a5a54e7e82075554ccfb8b163a18719d342f5ffe5ecb1"},
{file = "cryptography-42.0.8-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:b297f90c5723d04bcc8265fc2a0f86d4ea2e0f7ab4b6994459548d3a6b992a14"},
{file = "cryptography-42.0.8-cp39-abi3-win32.whl", hash = "sha256:2f88d197e66c65be5e42cd72e5c18afbfae3f741742070e3019ac8f4ac57262c"},
{file = "cryptography-42.0.8-cp39-abi3-win_amd64.whl", hash = "sha256:fa76fbb7596cc5839320000cdd5d0955313696d9511debab7ee7278fc8b5c84a"},
{file = "cryptography-42.0.8-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:ba4f0a211697362e89ad822e667d8d340b4d8d55fae72cdd619389fb5912eefe"},
{file = "cryptography-42.0.8-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:81884c4d096c272f00aeb1f11cf62ccd39763581645b0812e99a91505fa48e0c"},
{file = "cryptography-42.0.8-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:c9bb2ae11bfbab395bdd072985abde58ea9860ed84e59dbc0463a5d0159f5b71"},
{file = "cryptography-42.0.8-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:7016f837e15b0a1c119d27ecd89b3515f01f90a8615ed5e9427e30d9cdbfed3d"},
{file = "cryptography-42.0.8-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:5a94eccb2a81a309806027e1670a358b99b8fe8bfe9f8d329f27d72c094dde8c"},
{file = "cryptography-42.0.8-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:dec9b018df185f08483f294cae6ccac29e7a6e0678996587363dc352dc65c842"},
{file = "cryptography-42.0.8-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:343728aac38decfdeecf55ecab3264b015be68fc2816ca800db649607aeee648"},
{file = "cryptography-42.0.8-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:013629ae70b40af70c9a7a5db40abe5d9054e6f4380e50ce769947b73bf3caad"},
{file = "cryptography-42.0.8.tar.gz", hash = "sha256:8d09d05439ce7baa8e9e95b07ec5b6c886f548deb7e0f69ef25f64b3bce842f2"},
{file = "cryptography-43.0.1-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:8385d98f6a3bf8bb2d65a73e17ed87a3ba84f6991c155691c51112075f9ffc5d"},
{file = "cryptography-43.0.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:27e613d7077ac613e399270253259d9d53872aaf657471473ebfc9a52935c062"},
{file = "cryptography-43.0.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:68aaecc4178e90719e95298515979814bda0cbada1256a4485414860bd7ab962"},
{file = "cryptography-43.0.1-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:de41fd81a41e53267cb020bb3a7212861da53a7d39f863585d13ea11049cf277"},
{file = "cryptography-43.0.1-cp37-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:f98bf604c82c416bc829e490c700ca1553eafdf2912a91e23a79d97d9801372a"},
{file = "cryptography-43.0.1-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:61ec41068b7b74268fa86e3e9e12b9f0c21fcf65434571dbb13d954bceb08042"},
{file = "cryptography-43.0.1-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:014f58110f53237ace6a408b5beb6c427b64e084eb451ef25a28308270086494"},
{file = "cryptography-43.0.1-cp37-abi3-win32.whl", hash = "sha256:2bd51274dcd59f09dd952afb696bf9c61a7a49dfc764c04dd33ef7a6b502a1e2"},
{file = "cryptography-43.0.1-cp37-abi3-win_amd64.whl", hash = "sha256:666ae11966643886c2987b3b721899d250855718d6d9ce41b521252a17985f4d"},
{file = "cryptography-43.0.1-cp39-abi3-macosx_10_9_universal2.whl", hash = "sha256:ac119bb76b9faa00f48128b7f5679e1d8d437365c5d26f1c2c3f0da4ce1b553d"},
{file = "cryptography-43.0.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1bbcce1a551e262dfbafb6e6252f1ae36a248e615ca44ba302df077a846a8806"},
{file = "cryptography-43.0.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:58d4e9129985185a06d849aa6df265bdd5a74ca6e1b736a77959b498e0505b85"},
{file = "cryptography-43.0.1-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:d03a475165f3134f773d1388aeb19c2d25ba88b6a9733c5c590b9ff7bbfa2e0c"},
{file = "cryptography-43.0.1-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:511f4273808ab590912a93ddb4e3914dfd8a388fed883361b02dea3791f292e1"},
{file = "cryptography-43.0.1-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:80eda8b3e173f0f247f711eef62be51b599b5d425c429b5d4ca6a05e9e856baa"},
{file = "cryptography-43.0.1-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:38926c50cff6f533f8a2dae3d7f19541432610d114a70808f0926d5aaa7121e4"},
{file = "cryptography-43.0.1-cp39-abi3-win32.whl", hash = "sha256:a575913fb06e05e6b4b814d7f7468c2c660e8bb16d8d5a1faf9b33ccc569dd47"},
{file = "cryptography-43.0.1-cp39-abi3-win_amd64.whl", hash = "sha256:d75601ad10b059ec832e78823b348bfa1a59f6b8d545db3a24fd44362a1564cb"},
{file = "cryptography-43.0.1-pp310-pypy310_pp73-macosx_10_9_x86_64.whl", hash = "sha256:ea25acb556320250756e53f9e20a4177515f012c9eaea17eb7587a8c4d8ae034"},
{file = "cryptography-43.0.1-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:c1332724be35d23a854994ff0b66530119500b6053d0bd3363265f7e5e77288d"},
{file = "cryptography-43.0.1-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:fba1007b3ef89946dbbb515aeeb41e30203b004f0b4b00e5e16078b518563289"},
{file = "cryptography-43.0.1-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:5b43d1ea6b378b54a1dc99dd8a2b5be47658fe9a7ce0a58ff0b55f4b43ef2b84"},
{file = "cryptography-43.0.1-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:88cce104c36870d70c49c7c8fd22885875d950d9ee6ab54df2745f83ba0dc365"},
{file = "cryptography-43.0.1-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:9d3cdb25fa98afdd3d0892d132b8d7139e2c087da1712041f6b762e4f807cc96"},
{file = "cryptography-43.0.1-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:e710bf40870f4db63c3d7d929aa9e09e4e7ee219e703f949ec4073b4294f6172"},
{file = "cryptography-43.0.1-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:7c05650fe8023c5ed0d46793d4b7d7e6cd9c04e68eabe5b0aeea836e37bdcec2"},
{file = "cryptography-43.0.1.tar.gz", hash = "sha256:203e92a75716d8cfb491dc47c79e17d0d9207ccffcbcb35f598fbe463ae3444d"},
]
[package.dependencies]
@@ -439,7 +434,7 @@ nox = ["nox"]
pep8test = ["check-sdist", "click", "mypy", "ruff"]
sdist = ["build"]
ssh = ["bcrypt (>=3.1.5)"]
test = ["certifi", "pretend", "pytest (>=6.2.0)", "pytest-benchmark", "pytest-cov", "pytest-xdist"]
test = ["certifi", "cryptography-vectors (==43.0.1)", "pretend", "pytest (>=6.2.0)", "pytest-benchmark", "pytest-cov", "pytest-xdist"]
test-randomorder = ["pytest-randomly"]
[[package]]