kagemomiji / airsonic-advanced

airsonic-advanced
GNU General Public License v3.0
147 stars 13 forks source link

[Bug]: Browser re-buffering or just buffering counts as multiple plays. #275

Open DutchComputerKid opened 10 months ago

DutchComputerKid commented 10 months ago

What happened?

The 'each file access counts as 1 play' wears it's head again. Every time a browser rebuffers anxd especially when you skip in-browser, each retry can count as a play. Just as a single track just went from 62 to 67 plays.

In this case, #223 would probably solve this problem, or act as an in-between.

Steps to reproduce

  1. Play any track.
  2. Skip outside the buffered range.
  3. Or, just let it play and let the magic happen on its own.
  4. Multiple erroneous 'plays' are registered.

Version

11.1.x (Edge)

Version Detail

11.1.3-SNAPSHOT.20230904021809 and earlier

Operating System

Debian 12

Java Version

OpenJDK 64-Bit Server VM (build 17.0.8+7-Debian-1deb12u1, mixed mode, sharing)

Database

Other

DB Detail

Built-In

Proxy Server

NGINX

client detail

Firefox, maybe others as well.

language

English

Relevant log output

2023-09-05 15:59:56.357 INFO --- o.a.p.s.LoggingExceptionResolver : 127.0.0.1: Client unexpectedly closed connection while loading http://[url]/stream?player=34&id=50553 (java.io.IOException: Connection reset by peer)