eaccebc95d
- DM: add dl_missing_* fields to AppCtx for sequential queue - DM player: count_missing_in_season, find_next_missing, download_episode, download_missing_season_start/next - DM main onResult: auto-continue queue when dl_missing_active, updates status DL X/Y, finishes with done ok/fail - SdDownloader: file exists returns true (Already on SD) with total=file size, not false - SdDownloader: set_result_and_close minimal bundle (only success bool) to avoid internal heap OOM crash on close - SdDownloader: Cancel button becomes Close after done, calls tt_app_stop() directly (manual close per request, auto-close unreliable) - Fixes crash on close observed in demo mode (file exists) and after download done Tested on 192.168.68.133: SdDownloader shows Already on SD + Close, DM shows S10 5/6 after sequential, no crash on open/close cycles
31 lines
674 B
C
31 lines
674 B
C
#pragma once
|
|
|
|
#include "app_context.h"
|
|
#include <stdbool.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// Simplified: no internal audio, only external apps
|
|
void wait_play_exit(void);
|
|
void stop_playback_sync(void);
|
|
|
|
void start_idx_internal(int idx);
|
|
void start_idx(int idx);
|
|
void select_ep(int idx);
|
|
void go_next(void);
|
|
void go_prev(void);
|
|
bool download_season(int season);
|
|
|
|
// New single-file download API
|
|
bool download_episode(int idx);
|
|
bool download_missing_season_start(int season);
|
|
bool download_missing_next(void); // continue queue, returns false if done
|
|
int count_missing_in_season(int season);
|
|
int find_next_missing_in_season(int season);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|