Fix Legendary location
This commit is contained in:
@@ -51,7 +51,7 @@ class LegendarySourceIterator(SourceIterator):
|
|||||||
data = {}
|
data = {}
|
||||||
|
|
||||||
# Get additional metadata from file (optional)
|
# Get additional metadata from file (optional)
|
||||||
metadata_file = self.source.data_location["metadata"] / f"{app_name}.json"
|
metadata_file = self.source.config_location["metadata"] / f"{app_name}.json"
|
||||||
try:
|
try:
|
||||||
metadata = json.load(metadata_file.open())
|
metadata = json.load(metadata_file.open())
|
||||||
values["developer"] = metadata["metadata"]["developer"]
|
values["developer"] = metadata["metadata"]["developer"]
|
||||||
@@ -67,7 +67,7 @@ class LegendarySourceIterator(SourceIterator):
|
|||||||
|
|
||||||
def generator_builder(self) -> Generator[SourceIterationResult, None, None]:
|
def generator_builder(self) -> Generator[SourceIterationResult, None, None]:
|
||||||
# Open library
|
# Open library
|
||||||
file = self.source.data_location["installed.json"]
|
file = self.source.config_location["installed.json"]
|
||||||
try:
|
try:
|
||||||
library: dict = json.load(file.open())
|
library: dict = json.load(file.open())
|
||||||
except (JSONDecodeError, OSError):
|
except (JSONDecodeError, OSError):
|
||||||
|
|||||||
Reference in New Issue
Block a user