mirror of
https://github.com/rommapp/romm.git
synced 2026-12-03 10:33:22 +01:00
Users can link a Steam account (SteamID64, profile link or custom URL name)
and sync the games it owns. The sync links each owned game to the rom that
already stands for it on win, linux or mac, matched by Steam app id, and
gives the rest a store-only rom on win (created with its folder when the
library has none). Store-only roms have no file: `roms.storefront` marks
them and, like physical games, keeps them out of the missing-file sync,
the missing cleanup, the feeds and the exporters. Store-only roms that no
source has matched yet are queued for a rom-id scan after each sync.
- STEAM_API_KEY enables it; the heartbeat reports STEAM_LIBRARY_ENABLED.
- PUT/DELETE /api/users/{id}/steam link and unlink an account,
POST /api/users/{id}/steam/sync queues the sync for one user.
- sync_steam_libraries syncs every linked user on a schedule
(ENABLE_SCHEDULED_STEAM_LIBRARY_SYNC, SCHEDULED_STEAM_LIBRARY_SYNC_CRON).
- steam_library_entries holds each user's owned games with playtime and
last played time; migration 0155 adds it, the user columns and
roms.storefront.
- A rom-id scan no longer marks a physical or store-only rom missing.
- New store_only rom filter, part of HAS_FILE_ON_DISK_FILTERS.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XGA3D2oZ1hq3QUdnubMNXh
50 lines
2.4 KiB
Python
50 lines
2.4 KiB
Python
from .audit_events_handler import DBAuditEventsHandler
|
|
from .client_tokens_handler import DBClientTokensHandler
|
|
from .collections_handler import DBCollectionsHandler
|
|
from .container_adoptions_handler import DBContainerAdoptionsHandler
|
|
from .deleted_assets_handler import DBDeletedAssetsHandler
|
|
from .device_save_sync_handler import DBDeviceSaveSyncHandler
|
|
from .devices_handler import DBDevicesHandler
|
|
from .firmware_handler import DBFirmwareHandler
|
|
from .memory_cards_handler import DBMemoryCardsHandler
|
|
from .music_playlists_handler import DBMusicPlaylistsHandler
|
|
from .notification_channels_handler import DBNotificationChannelsHandler
|
|
from .notifications_handler import DBNotificationsHandler
|
|
from .permissions_handler import DBPermissionsHandler
|
|
from .platforms_handler import DBPlatformsHandler
|
|
from .play_sessions_handler import DBPlaySessionsHandler
|
|
from .recommendations_handler import DBRecommendationsHandler
|
|
from .roms_handler import DBRomsHandler
|
|
from .saves_handler import DBSavesHandler
|
|
from .screenshots_handler import DBScreenshotsHandler
|
|
from .states_handler import DBStatesHandler
|
|
from .stats_handler import DBStatsHandler
|
|
from .steam_library_handler import DBSteamLibraryHandler
|
|
from .sync_sessions_handler import DBSyncSessionsHandler
|
|
from .users_handler import DBUsersHandler
|
|
|
|
db_audit_event_handler = DBAuditEventsHandler()
|
|
db_client_token_handler = DBClientTokensHandler()
|
|
db_collection_handler = DBCollectionsHandler()
|
|
db_container_adoption_handler = DBContainerAdoptionsHandler()
|
|
db_deleted_asset_handler = DBDeletedAssetsHandler()
|
|
db_device_handler = DBDevicesHandler()
|
|
db_device_save_sync_handler = DBDeviceSaveSyncHandler()
|
|
db_firmware_handler = DBFirmwareHandler()
|
|
db_memory_card_handler = DBMemoryCardsHandler()
|
|
db_music_playlist_handler = DBMusicPlaylistsHandler()
|
|
db_notification_channel_handler = DBNotificationChannelsHandler()
|
|
db_notification_handler = DBNotificationsHandler()
|
|
db_permission_handler = DBPermissionsHandler()
|
|
db_platform_handler = DBPlatformsHandler()
|
|
db_play_session_handler = DBPlaySessionsHandler()
|
|
db_recommendation_handler = DBRecommendationsHandler()
|
|
db_rom_handler = DBRomsHandler()
|
|
db_save_handler = DBSavesHandler()
|
|
db_screenshot_handler = DBScreenshotsHandler()
|
|
db_state_handler = DBStatesHandler()
|
|
db_steam_library_handler = DBSteamLibraryHandler()
|
|
db_stats_handler = DBStatsHandler()
|
|
db_sync_session_handler = DBSyncSessionsHandler()
|
|
db_user_handler = DBUsersHandler()
|