mirror of https://github.com/Chocobozzz/PeerTube
Fix metric with old webtorrent videos
parent
0b684daa3d
commit
6a02dd1c3d
|
@ -64,7 +64,9 @@ class MetricsPlugin extends Plugin {
|
||||||
if (!videoFile) return
|
if (!videoFile) return
|
||||||
|
|
||||||
resolution = videoFile.resolution.id
|
resolution = videoFile.resolution.id
|
||||||
fps = videoFile.fps
|
fps = videoFile.fps && videoFile.fps !== -1
|
||||||
|
? videoFile.fps
|
||||||
|
: undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
const body: PlaybackMetricCreate = {
|
const body: PlaybackMetricCreate = {
|
||||||
|
|
|
@ -131,7 +131,6 @@ class Logger {
|
||||||
|
|
||||||
private buildStack (err: Error) {
|
private buildStack (err: Error) {
|
||||||
return `${err.message}\n${err.stack || ''}`
|
return `${err.message}\n${err.stack || ''}`
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue