Skip to content
This repository was archived by the owner on May 7, 2026. It is now read-only.

Fix: division by zero#319

Open
mokrates wants to merge 2 commits into
justchokingaround:mainfrom
mokrates:fix_division_by_zero
Open

Fix: division by zero#319
mokrates wants to merge 2 commits into
justchokingaround:mainfrom
mokrates:fix_division_by_zero

Conversation

@mokrates

@mokrates mokrates commented Apr 9, 2026

Copy link
Copy Markdown

check if total_duration isn't empty or 0. If it is, fake a position at 0 so that at least the episode may be saved into the history file.

I had the problem on my current linux Mint with mpv trying to watch One Piece S2E1 end then quitting the player with q.
Lobster said "division by zero" (in 796) and aborted.

mokrates added 2 commits April 9, 2026 21:21
check if "total_duration" isn't empty or 0. If it is, fake a position
at 0 so that at least the episode may be saved into the history file
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant