Skip to content

[BUG] unnecessary log spam #29

Description

@Tragen

You fixed the bugs from #27

But the log is still spammed with unnecessary entries.

Updated to v1.1.1.0, restarted, and ran a Media Segment Scan. The core fix works exactly as you described — thank you for the quick turnaround, and for explaining the midnight bucket. That was not something I could have seen from the outside.

Confirmed

The reset is no longer clamped. First request of the run:

[INF] TheIntroDB API response: StatusCode=TooManyRequests for .../v3/media?tmdb_id=...
[WRN] TheIntroDB API "daily usage limit" exceeded. Will not send requests until
      09/16/2026 23:59:59 UTC. Retry-after: 25646s. Consecutive 429 responses: 1

25,646 s instead of the five-minute ceiling, and the stored time is the bucket rollover. Counted over the whole run:

requests actually sent 1
daily usage limit exceeded 1
rate limit is currently active. Skipping request 1

The probing loop is gone. My daily budget was already spent before the update, so this run could not fetch anything — that part is expected, and the plugin handled it the way it should.

Two observations from the same run

1. The skip path still logs twice per item. The run covered 18,099 items:

[WRN] … request was "rate limited" for "X"; preserving existing segments 18,099
[INF] Fetching from TheIntroDB API: tmdbId=… 18,099
total log lines during the 12 min 17 s the scan ran 95,004

That rotated the Jellyfin log file once mid-run. rate limit is currently active is indeed down to one, so the change works for that message — the other two still fire per item.

2. The scan does not stop while the budget is exhausted. It walked the whole library and finished Completed after 12 min 17 s. Searching that run's log for re-run, rerun, run again, stopping and aborting gives 0 hits.

Not harmful in itself, since nothing is sent. It is only worth mentioning because a scan that reports Completed after touching nothing looks exactly like one that worked — which is the same shape as the original bug, just cheaper.

Neither of these touches the important half: one request instead of thousands. Happy to run it again after the bucket rolls over and report what a real pass looks like, or to test anything specific.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions