From 455f9bb017eb90a6c4e2c615aae414e1af8ee12f Mon Sep 17 00:00:00 2001 From: NetKAN inflator Robot Date: Fri, 15 Dec 2023 19:41:17 +0000 Subject: [PATCH] Quick fix for multi-doc YAML --- netkan/netkan/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netkan/netkan/metadata.py b/netkan/netkan/metadata.py index 4bc5893..bfe2ede 100644 --- a/netkan/netkan/metadata.py +++ b/netkan/netkan/metadata.py @@ -35,7 +35,7 @@ def __init__( self.game_id = game_id yaml = YAML(typ='safe') # YAML parser doesn't allow tabs, so replace with spaces - self._raw = yaml.load(self.contents.replace('\t', ' ')) + self._raw = next(yaml.load_all(self.contents.replace('\t', ' '))) # Extract kref_src + kref_id from the kref self.kref_src: Optional[str] self.kref_id: Optional[str]