fix: robust Trakt continue-watching sort + new episode priority boost

This commit is contained in:
Ramon 2026-03-19 05:05:11 -04:00
parent 38890942a1
commit 75301a1d27

View file

@ -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) {