(seconds?: number)
| 228 | } |
| 229 | |
| 230 | function formatRetryAfter(seconds?: number): string | undefined { |
| 231 | if (!seconds || seconds <= 0) return undefined; |
| 232 | if (seconds < 60) return `${seconds}s`; |
| 233 | const minutes = Math.floor(seconds / 60); |
| 234 | const remainingSeconds = seconds % 60; |
| 235 | return remainingSeconds > 0 ? `${minutes}m ${remainingSeconds}s` : `${minutes}m`; |
| 236 | } |
| 237 | |
| 238 | function printMediaFetchSummary(result: MediaFetchManifest): void { |
| 239 | if (result.processed === 0) { |