Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix metric with old webtorrent videos

Chocobozzz6a02dd1c3d25
diff --git a/client/src/assets/player/shared/metrics/metrics-plugin.ts b/client/src/assets/player/shared/metrics/metrics-plugin.ts
index 1b2349eba3..2844828daf 100644
--- a/client/src/assets/player/shared/metrics/metrics-plugin.ts
+++ b/client/src/assets/player/shared/metrics/metrics-plugin.ts
@@ -64,7 +64,9 @@ class MetricsPlugin extends Plugin {
if (!videoFile) return
resolution = videoFile.resolution.id
- fps = videoFile.fps
+ fps = videoFile.fps && videoFile.fps !== -1
+ ? videoFile.fps
+ : undefined
}
const body: PlaybackMetricCreate = {
diff --git a/client/src/root-helpers/logger.ts b/client/src/root-helpers/logger.ts
index 0dcda525e5..0d486c433e 100644
--- a/client/src/root-helpers/logger.ts
+++ b/client/src/root-helpers/logger.ts
@@ -131,7 +131,6 @@ class Logger {
private buildStack (err: Error) {
return `${err.message}\n${err.stack || ''}`
-
}
}