mirror of
https://github.com/madari-media/madari-oss.git
synced 2026-01-11 22:40:23 +00:00
fix: duration getting saved for some short videos
This commit is contained in:
parent
f13ff6fc9f
commit
2a7b253f06
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ class _VideoViewerState extends State<VideoViewer> {
|
|||
Future<void> saveWatchHistory() async {
|
||||
final duration = player.state.duration.inSeconds;
|
||||
|
||||
if (duration < 30) {
|
||||
if (duration <= 30) {
|
||||
_logger.info('Video is too short to track.');
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue