fix: continue watching which was not marking progress
Some checks are pending
Build and Deploy / build_windows (push) Waiting to run
Build and Deploy / build_android (push) Waiting to run
Build and Deploy / build_android_tv (push) Waiting to run
Build and Deploy / build_ipa (push) Waiting to run
Build and Deploy / build_linux (push) Waiting to run
Build and Deploy / build_macos (push) Waiting to run

This commit is contained in:
omkar 2025-01-11 12:44:06 +05:30
parent 2a7b253f06
commit 10749010ce
4 changed files with 6 additions and 3 deletions

View file

@ -238,6 +238,8 @@ class StremioConnectionService extends BaseConnectionService {
nextSeason: res.nextSeason,
nextEpisode: res.nextEpisode,
nextEpisodeTitle: res.nextEpisodeTitle,
externalIds: res.externalIds,
episodeExternalIds: res.episodeExternalIds,
);
}).catchError((err, stack) {
_logger.severe('Error fetching item: ${res.id}', err, stack);

View file

@ -340,7 +340,7 @@ class _StremioCardState extends State<StremioCard> {
),
const SizedBox(width: 4),
Text(
meta.imdbRating!,
meta.imdbRating,
style: const TextStyle(
color: Colors.white,
fontSize: 12,
@ -407,7 +407,7 @@ class _StremioCardState extends State<StremioCard> {
?.copyWith(fontWeight: FontWeight.w600),
),
Text(
"S${meta.nextSeason} E${meta.nextEpisode}",
"S${meta.currentVideo?.season ?? meta.nextSeason} E${meta.currentVideo?.episode ?? meta.nextEpisode}",
style: Theme.of(context)
.textTheme
.bodyMedium

View file

@ -211,7 +211,7 @@ class TraktContainerState extends State<TraktContainer> {
heroPrefix: "trakt_up_next${widget.loadId}",
service: TraktService.stremioService!,
isGrid: true,
isWide: false,
isWide: widget.loadId == "up_next_series",
),
),
);

View file

@ -400,6 +400,7 @@ class TraktService {
return Meta(
type: "series",
id: imdb,
externalIds: show['show']['ids'],
);
} catch (e) {
_logger.warning('Error mapping show: $e');