Merge pull request #134 from kra-mo/fix-lutris-id

Fix lutris ID
This commit is contained in:
Geoffrey Coulaud
2023-07-05 13:40:17 +02:00
committed by GitHub

View File

@@ -70,7 +70,7 @@ class LutrisSourceIterator(SourceIterator):
"name": row[1], "name": row[1],
"source": f"{self.source.id}_{row[3]}", "source": f"{self.source.id}_{row[3]}",
"game_id": self.source.game_id_format.format( "game_id": self.source.game_id_format.format(
game_id=row[2], game_internal_id=row[0] runner=row[3], game_id=row[0]
), ),
"executable": self.source.executable_format.format(game_id=row[0]), "executable": self.source.executable_format.format(game_id=row[0]),
} }
@@ -123,4 +123,4 @@ class LutrisSource(URLExecutableSource):
@property @property
def game_id_format(self): def game_id_format(self):
return super().game_id_format + "_{game_internal_id}" return self.id + "_{runner}_{game_id}"