hotfix: non trakt user unable to play the video
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-15 20:22:05 +05:30
parent e869d63e0d
commit e2f56aac64

View file

@ -194,11 +194,13 @@ class _VideoViewerState extends State<VideoViewer> {
Future setupVideoThings() async {
_logger.info('Setting up video things...');
traktProgress = null;
traktProgress = TraktService.instance!.getProgress(
meta as types.Meta,
bypassCache: true,
);
if (TraktService.isEnabled()) {
traktProgress = null;
traktProgress = TraktService.instance!.getProgress(
meta as types.Meta,
bypassCache: true,
);
}
_duration = player.stream.duration.listen((item) async {
if (meta is types.Meta) {