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, nextSeason: res.nextSeason,
nextEpisode: res.nextEpisode, nextEpisode: res.nextEpisode,
nextEpisodeTitle: res.nextEpisodeTitle, nextEpisodeTitle: res.nextEpisodeTitle,
externalIds: res.externalIds,
episodeExternalIds: res.episodeExternalIds,
); );
}).catchError((err, stack) { }).catchError((err, stack) {
_logger.severe('Error fetching item: ${res.id}', 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), const SizedBox(width: 4),
Text( Text(
meta.imdbRating!, meta.imdbRating,
style: const TextStyle( style: const TextStyle(
color: Colors.white, color: Colors.white,
fontSize: 12, fontSize: 12,
@ -407,7 +407,7 @@ class _StremioCardState extends State<StremioCard> {
?.copyWith(fontWeight: FontWeight.w600), ?.copyWith(fontWeight: FontWeight.w600),
), ),
Text( Text(
"S${meta.nextSeason} E${meta.nextEpisode}", "S${meta.currentVideo?.season ?? meta.nextSeason} E${meta.currentVideo?.episode ?? meta.nextEpisode}",
style: Theme.of(context) style: Theme.of(context)
.textTheme .textTheme
.bodyMedium .bodyMedium

View file

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

View file

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