Still-picture songs save and play as audio plus one picture
This commit is contained in:
@@ -101,6 +101,8 @@
|
||||
}
|
||||
for (const f of byId.values()) {
|
||||
if (String(f.id).startsWith('edit_')) continue; // edited cuts are never shared
|
||||
// A still-picture song saved as audio (<id>.m4a) is not the server's file.
|
||||
if (/\.m4a$/i.test(f.name) && !String(f.id).startsWith('upl_')) continue;
|
||||
const r = { videoId: f.id, cid: null, size: f.size, savedAt: Date.now(), lastCheckedAt: 0, state: 'unhashed' };
|
||||
await window.DeviceDB.putFile(r);
|
||||
out.push({ ...r, name: f.name });
|
||||
|
||||
Reference in New Issue
Block a user