Add audio separation web app and verified recovery sources

This commit is contained in:
Mikei386 committed 2026-10-01 16:19:33 +02:00
1 parent b5ee7c1e01
commit 433e6709cf
25 files changed
+381 -46

No files matched your search

+5 -1
View File
@@ -216,7 +216,11 @@ class Catalog:
if self.root.exists():
for p in self.root.glob('*/entry.json'):
try:
item=json.loads(p.read_text());item['id']=p.parent.name;item.update(file_role(item['file']));entries.append(item)
item=json.loads(p.read_text());item['id']=p.parent.name;item.update(file_role(item['file']))
if item['repo'].startswith('local/'):
from backup import LOCAL_SOURCES
item['download_source']=item.get('download_source') or LOCAL_SOURCES.get(item.get('sha256'))
entries.append(item)
except (OSError,ValueError):pass
return dict(entries=entries,downloads=[dict(x) for x in reversed(self.history) if not x.get("dismissed")],job=dict(self.job) if self.job else None,free_bytes=shutil.disk_usage(self.root if self.root.exists() else self.root.parent).free)
def start(self,repo,filename,revision,kind):