Do not mark as played if the duration is unknown

This commit is contained in:
ByteHamster 2020-05-16 19:01:25 +02:00
parent 62fc413f9c
commit 05ab7dc3fe
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ public class FeedMedia extends FeedFile implements Playable {
public boolean hasAlmostEnded() {
int smartMarkAsPlayedSecs = UserPreferences.getSmartMarkAsPlayedSecs();
return this.position >= this.duration - smartMarkAsPlayedSecs * 1000;
return this.duration > 0 && this.position >= this.duration - smartMarkAsPlayedSecs * 1000;
}
@Override