ActivityPub-federated video streaming platform using P2P directly in your web browser
Styling
Chocobozzz69017c6e0170
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.mdindex 9bb8784578..1a0985f3e7 100644--- a/CODE_OF_CONDUCT.md+++ b/CODE_OF_CONDUCT.md@@ -73,7 +73,7 @@ Project maintainers may further define and clarify representation of a project.## Enforcement-You should report any instances of abusive, harassing, or otherwise unacceptable behaviour to the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain the anonymity of the reporter of an incident. We may post further details of specific enforcement policies separately.+You should report any instances of abusive, harassing, or otherwise unacceptable behaviour to the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain the anonymity of the reporter of an incident. We may post further details of specific enforcement policies separately.Project maintainers who do not follow or enforce this code of conduct in good faith may face temporary or permanent consequences. These will be determined by members of the project's leadership.diff --git a/README.md b/README.mdindex 8a8ee59c63..69b54f616b 100644--- a/README.md+++ b/README.md@@ -26,22 +26,20 @@ Be part of a network of multiple small federated, interoperable video hosting pr</a></p>-----<div align="center">--### Client--<a href="https://automate.browserstack.com/public-build/ZEZqamJQUXFQd1l3cFp3QmxLSVVwdjBGZjNGc3J2M09INFpka296em9VYz0tLUowWVdoemxkY1hBOU9aZzNlY1htZ3c9PQ==--68e0184ce76481d36559d681d9cddc68235ff536"><img src="https://automate.browserstack.com/badge.svg?badge_key=ZEZqamJQUXFQd1l3cFp3QmxLSVVwdjBGZjNGc3J2M09INFpka296em9VYz0tLUowWVdoemxkY1hBOU9aZzNlY1htZ3c9PQ==--68e0184ce76481d36559d681d9cddc68235ff536" alt="BrowserStack Status"></a> <a href="https://weblate.framasoft.org/projects/peertube/angular/"><img src="https://weblate.framasoft.org/widgets/peertube/-/angular/svg-badge.svg" alt="Weblate Status"></a>--### Server+ <a href="https://github.com/Chocobozzz/PeerTube/actions?query=workflow%3A%22Test%22+branch%3Adevelop">+ <img src="https://github.com/Chocobozzz/PeerTube/workflows/Test/badge.svg" alt="GitHub Test Status">+ </a>-<a href="https://github.com/Chocobozzz/PeerTube/actions?query=workflow%3A%22Test%22+branch%3Adevelop"><img src="https://github.com/Chocobozzz/PeerTube/workflows/Test/badge.svg" alt="GitHub Test Status"></a> <a href="https://standardjs.com/"><img src="https://img.shields.io/badge/code%20style-standard-brightgreen.svg" alt="JavaScript Style Guide"></a>+ <a href="https://automate.browserstack.com/public-build/d0ZMeGpSUFRjaUpDNnN3NUdKY1l2TnNpTGVJaUI0bm9hYkNxMTRtQ1lHTT0tLVZQa2crbFB1c2RDZUl1Y1Blck02SFE9PQ==--5f956d6857c50e06a0b7b1fe405fb93d0f2d0e11%">+ <img src="https://automate.browserstack.com/badge.svg?badge_key=d0ZMeGpSUFRjaUpDNnN3NUdKY1l2TnNpTGVJaUI0bm9hYkNxMTRtQ1lHTT0tLVZQa2crbFB1c2RDZUl1Y1Blck02SFE9PQ==--5f956d6857c50e06a0b7b1fe405fb93d0f2d0e11%" alt="BrowserStack Status">+ </a>+ <a href="https://weblate.framasoft.org/projects/peertube/angular/">+ <img src="https://weblate.framasoft.org/widgets/peertube/-/angular/svg-badge.svg" alt="Weblate Status">+ </a></div>-----<br /><p align="center">diff --git a/packages/ffmpeg/src/ffprobe.ts b/packages/ffmpeg/src/ffprobe.tsindex d184015865..dfff2066cf 100644--- a/packages/ffmpeg/src/ffprobe.ts+++ b/packages/ffmpeg/src/ffprobe.ts@@ -44,9 +44,6 @@ async function hasAudioStream (path: string, existingProbe?: FfprobeData) {}async function getAudioStream (videoPath: string, existingProbe?: FfprobeData) {- // without position, ffprobe considers the last input only- // we make it consider the first input only- // if you pass a file path to pos, then ffprobe acts on that file directlyconst data = existingProbe || await ffprobePromise(videoPath)if (Array.isArray(data.streams)) {diff --git a/server/core/middlewares/validators/videos/videos.ts b/server/core/middlewares/validators/videos/videos.tsindex 12e4bfd349..0a63dc234b 100644--- a/server/core/middlewares/validators/videos/videos.ts+++ b/server/core/middlewares/validators/videos/videos.ts@@ -83,7 +83,7 @@ export const videosAddLegacyValidator = getCommonVideoEditAttributes().concat([if (!await commonVideoChecksPass({ req, res, user, videoFileSize: videoFile.size, files: req.files }) ||!isValidPasswordProtectedPrivacy(req, res) ||- !await addDurationToVideoFileIfNeeded({ videoFile, res, middlewareName: 'videosAddvideosAddLegacyValidatorResumableValidator' }) ||+ !await addDurationToVideoFileIfNeeded({ videoFile, res, middlewareName: 'videosAddLegacyValidator' }) ||!await isVideoFileAccepted({ req, res, videoFile, hook: 'filter:api.video.upload.accept.result' })) {return cleanUpReqFiles(req)