mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 10:01:00 +01:00
reserved folders logic removed
This commit is contained in:
@@ -13,9 +13,6 @@ SQLITE_DB_BASE_PATH: str = "/romm/database"
|
||||
HIGH_PRIO_STRUCTURE_PATH: str = f"{LIBRARY_BASE_PATH}/roms"
|
||||
RESOURCES_BASE_PATH: str = "/romm/resources"
|
||||
|
||||
# ROMM RESERVED FOLDERS
|
||||
RESERVED_FOLDERS: list = ['resources']
|
||||
|
||||
# DEFAULT RESOURCES
|
||||
DEFAULT_URL_COVER_L: str = "https://images.igdb.com/igdb/image/upload/t_cover_big/nocover.png"
|
||||
DEFAULT_PATH_COVER_L: str = f"{RESOURCES_BASE_PATH}/default/cover_l.png"
|
||||
|
||||
@@ -6,7 +6,7 @@ from pathlib import Path
|
||||
import requests
|
||||
from fastapi import HTTPException
|
||||
|
||||
from config import user_config, LIBRARY_BASE_PATH, HIGH_PRIO_STRUCTURE_PATH, RESERVED_FOLDERS, RESOURCES_BASE_PATH, DEFAULT_URL_COVER_L, DEFAULT_PATH_COVER_L, DEFAULT_URL_COVER_S, DEFAULT_PATH_COVER_S
|
||||
from config import user_config, LIBRARY_BASE_PATH, HIGH_PRIO_STRUCTURE_PATH, RESOURCES_BASE_PATH, DEFAULT_URL_COVER_L, DEFAULT_PATH_COVER_L, DEFAULT_URL_COVER_S, DEFAULT_PATH_COVER_S
|
||||
from handler import dbh
|
||||
from logger.logger import log
|
||||
|
||||
@@ -36,7 +36,6 @@ def get_platforms() -> list[str]:
|
||||
platforms: list[str] = list(os.walk(f"{LIBRARY_BASE_PATH}/roms"))[0][1]
|
||||
else:
|
||||
platforms: list[str] = list(os.walk(LIBRARY_BASE_PATH))[0][1]
|
||||
[platforms.remove(reserved) for reserved in RESERVED_FOLDERS if reserved in platforms]
|
||||
try:
|
||||
excluded_folders: list = user_config['exclude']['folders']
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user