feat(service-integrations): phases 9-10 — media integrations + Planka
- Emby: now playing, library stats, recently added, active streams - Immich: library stats, recent uploads with formatted storage - Deluge: active torrents with progress, transfer speed, disk space gauge - MeTube: download queue progress (no auth required) - Planka: my cards, overdue cards with red badges, board summary - All 11 integrations registered in registry
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import type { ProgressData } from '../types.js';
|
||||
import type { MetubeQueueItem } from './client.js';
|
||||
|
||||
export function toDownloadQueue(
|
||||
queue: Record<string, MetubeQueueItem>
|
||||
): ProgressData {
|
||||
const entries = Object.entries(queue);
|
||||
|
||||
return {
|
||||
items: entries.map(([id, item]) => ({
|
||||
id,
|
||||
label: item.title || item.filename || id,
|
||||
progress: Math.round(item.percent ?? 0),
|
||||
subtitle: item.status || undefined
|
||||
}))
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user