mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-03-22 18:47:44 +00:00
fix: robust Trakt continue-watching sort + new episode priority boost
This commit is contained in:
parent
38890942a1
commit
75301a1d27
1 changed files with 2 additions and 0 deletions
|
|
@ -1396,6 +1396,8 @@ export class TraktService {
|
|||
*/
|
||||
public async getPlaybackProgressWithImages(type?: 'movies' | 'shows'): Promise<TraktPlaybackItem[]> {
|
||||
try {
|
||||
// extended=full,images so we receive episode.first_aired (needed for the new-episode priority boost
|
||||
// in mergeTraktContinueWatching.ts — brand-new/recently-aired episodes now jump to the top of Continue Watching).
|
||||
const endpoint = type ? `/sync/playback/${type}?extended=full,images` : '/sync/playback?extended=full,images';
|
||||
return this.apiRequest<TraktPlaybackItem[]>(endpoint);
|
||||
} catch (error) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue