Merge pull request #557 from willmiao/civarc-api-support

CivArchive API support
This commit is contained in:
pixelpaws
2025-10-11 18:10:06 +08:00
committed by GitHub
12 changed files with 1175 additions and 128 deletions

View File

@@ -294,7 +294,7 @@ class DownloadManager:
await progress_callback(0)
# 2. Get file information
file_info = next((f for f in version_info.get('files', []) if f.get('primary')), None)
file_info = next((f for f in version_info.get('files', []) if f.get('primary') and f.get('type') == 'Model'), None)
if not file_info:
return {'success': False, 'error': 'No primary file found in metadata'}
mirrors = file_info.get('mirrors') or []