mirror of
https://github.com/rommapp/romm.git
synced 2026-03-03 00:27:01 +00:00
add log statements
This commit is contained in:
@@ -35,7 +35,6 @@ class GiantBombHandler(MetadataHandler):
|
||||
|
||||
@classmethod
|
||||
def is_enabled(cls) -> bool:
|
||||
"""Return whether this metadata handler is enabled."""
|
||||
return GIANTBOMB_API_ENABLED
|
||||
|
||||
def get_platform(self, slug: str) -> GiantBombPlatform:
|
||||
|
||||
@@ -146,7 +146,7 @@ def extract_metadata_from_igdb_rom(rom: dict[str, Any]) -> IGDBMetadata:
|
||||
|
||||
|
||||
def extract_metadata_from_giantbomb_rom(rom: dict) -> GiantBombMetadata:
|
||||
print(rom)
|
||||
print(f"GIANTBOMB ROM: {rom}")
|
||||
return GiantBombMetadata(
|
||||
{
|
||||
"guid": rom.get("guid", ""),
|
||||
@@ -184,7 +184,6 @@ class HasheousHandler(MetadataHandler):
|
||||
|
||||
@classmethod
|
||||
def is_enabled(cls) -> bool:
|
||||
"""Return whether this metadata handler is enabled."""
|
||||
return HASHEOUS_API_ENABLED
|
||||
|
||||
async def _request(
|
||||
@@ -446,6 +445,8 @@ class HasheousHandler(MetadataHandler):
|
||||
log.debug(f"No Hasheous game found for GiantBomb GUID 3030-{giantbomb_id}.")
|
||||
return hasheous_rom
|
||||
|
||||
log.info(f"GiantBomb game: {giantbomb_game}")
|
||||
|
||||
return HasheousRom(
|
||||
{
|
||||
**hasheous_rom,
|
||||
|
||||
Reference in New Issue
Block a user