1
0
Fork 0

Fix metric with old webtorrent videos

This commit is contained in:
Chocobozzz 2022-08-17 10:51:51 +02:00
parent 0b684daa3d
commit 6a02dd1c3d
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 3 additions and 2 deletions

View File

@ -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 = {

View File

@ -131,7 +131,6 @@ class Logger {
private buildStack (err: Error) {
return `${err.message}\n${err.stack || ''}`
}
}