0.2.65 - End Credits wiring / Gateway: 0.1.45 - Credits

This commit is contained in:
ponzischeme89
2026-08-15 21:11:43 +12:00
parent d5d47473a2
commit e528d04b43
19 changed files with 574 additions and 65 deletions
+4
View File
@@ -51,6 +51,10 @@ func run(itemID string) error {
cfg.EmbyURL, cfg.EmbyPublicURL, cfg.ClientName, cfg.GatewayClientName,
cfg.UpstreamTimeout,
)
// The bench measures the path the service actually takes, so it must read bytes from the
// same address the service reads them from. Benchmarking the public route and deploying
// the internal one would report a number belonging to neither.
embyClient.SetMediaURL(cfg.EmbyMediaURL)
resolver := credits.NewEmbyResolver(embyClient, emby.Credentials{
UserID: cfg.SyncUserID, Token: cfg.SyncAPIKey,
DeviceID: "memby-credits-bench", DeviceName: "MbyGateway Credits", Gateway: true,