mirror of
https://github.com/rommapp/romm.git
synced 2026-07-01 08:16:21 +00:00
multipart roms scan fixed
This commit is contained in:
@@ -156,8 +156,8 @@ def _exclude_multi_roms(roms) -> list[str]:
|
||||
|
||||
def get_rom_files(rom: str, roms_path: str) -> list[str]:
|
||||
rom_files: list = []
|
||||
for path, _, files in os.walk(f"{LIBRARY_BASE_PATH}/{roms_path}/{rom}"):
|
||||
[rom_files.append(f"{Path(path, f)}".replace(f"{LIBRARY_BASE_PATH}/{roms_path}/{rom}/", '')) for f in _exclude_files(files, 'multi_parts')]
|
||||
for path, d, files in os.walk(f"{roms_path}/{rom}"):
|
||||
[rom_files.append(f"{Path(path, f)}".replace(f"{roms_path}/{rom}/", '')) for f in _exclude_files(files, 'multi_parts')]
|
||||
return rom_files
|
||||
|
||||
|
||||
|
||||
@@ -24,14 +24,14 @@ async function scan() {
|
||||
scannedPlatforms.value.push({
|
||||
p_name: platform[0],
|
||||
p_slug: platform[1],
|
||||
r: [],
|
||||
rom: [],
|
||||
});
|
||||
scanningPlatform.value = platform[1];
|
||||
});
|
||||
socket.on("scan:scanning_rom", (r) => {
|
||||
scannedPlatforms.value.forEach((e) => {
|
||||
if (e["p_slug"] == scanningPlatform.value) {
|
||||
e["r"].push(r);
|
||||
socket.on("scan:scanning_rom", (rom) => {
|
||||
scannedPlatforms.value.forEach((platform) => {
|
||||
if (platform["p_slug"] == scanningPlatform.value) {
|
||||
platform["rom"].push(rom);
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -119,14 +119,14 @@ async function scan() {
|
||||
/>
|
||||
|
||||
<!-- Scan log -->
|
||||
<v-row no-gutters class="align-center pa-4" v-for="d in scannedPlatforms">
|
||||
<v-row no-gutters class="align-center pa-4" v-for="platform in scannedPlatforms">
|
||||
<v-col>
|
||||
<v-avatar :rounded="0" size="40">
|
||||
<v-img :src="`/assets/platforms/${d['p_slug']}.ico`"></v-img>
|
||||
<v-img :src="`/assets/platforms/${platform['p_slug']}.ico`"></v-img>
|
||||
</v-avatar>
|
||||
<span class="text-body-2 ml-5"> {{ d["p_name"] }}</span>
|
||||
<v-list-item v-for="r in d['r']" class="text-body-2" disabled>
|
||||
- {{ r }}
|
||||
<span class="text-body-2 ml-5"> {{ platform["p_name"] }}</span>
|
||||
<v-list-item v-for="rom in platform['rom']" class="text-body-2" disabled>
|
||||
- {{ rom }}
|
||||
</v-list-item>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
Reference in New Issue
Block a user