Chocobozzz/PeerTube

Statistics -> Views popup help doesn't take account of custom count_view_after value

Open

#7.580 aberto em 29 de abr. de 2026

Ver no GitHub
 (3 comments) (0 reactions) (0 assignees)TypeScript (1.362 forks)batch import
Type: Feature Request :sparkles:good first issue

Métricas do repositório

Stars
 (11.911 stars)
Métricas de merge de PR
 (Mesclagem média 17d 6h) (6 fundiu PRs em 30d)

Description

Describe the current behavior

When looking at the statistics of a video, for "Views" area "?" help button says

"A view means that someone watched the video for several seconds (10 seconds by default)":

It would be nice if this displayed the value "count_view_after" from the production.yaml, in case it is set to a custom value.

Steps to reproduce

  1. Navigate to a video, click on Manage, and then Statistics
  2. Click on the "?" in the "Views" section
  3. Help text is displayed, which seems to be static and says views will be counted after "(10 seconds by default)"
  4. This may not be the same as what is specified in production.yaml.
  5. In my case, I set it to 30 seconds, but the help text still says "10"

Describe the expected behavior

It would be nice if the popup text displayed the actual value from the configuration file in case the default is changed. For long videos, 10 seconds isn't a good measure of someone actually watching it, so I set it to 30 seconds, which is more reasonable for my set up.

Additional information

  • PeerTube instance:

    • URL:
    • Version: 8.1.5
    • NodeJS version: v20.20.2
    • Ffmpeg version: 4.4.2-0ubuntu0.22.04.1+esm11
  • Firefox 64 bit v136 on Ubuntu 64bit 20.04.6

Guia do colaborador