Skip to content

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

Merge branch 'release/v8.1.x' into develop

Chocobozzzd94a2662c90e
diff --cc CHANGELOG.md
index dad5bb9ede,5f2294bb0c..0c9686e5fa
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -1,24 -1,14 +1,33 @@@
# Changelog
+## v8.2.0-rc.2
+
+### SECURITY
+
+ * Include security fixes from 8.1.6
+
+### Features
+
+ * Add `g p` hotkey to go to my playlists
+ * Add `.m4b` audio file support
+
+### Bug fixes
+
+ * More robust playlist thumbnails updater
+ * Fix concurrency issue when writing live sha segments
+ * Fix concurrency issue when uploading the same torrent filename
+ * Fix column varchar lengths
+
+
+ ## v8.1.7
+
+ ## Bug fixes
+
+ * Fix broken URL import
+ * Fix user quota check for imports
+ * Fix removing notifications from muted accounts
+
+
## v8.1.6
### IMPORTANT NOTES
diff --cc packages/tests/src/plugins/external-auth.ts
index 4ce0bbc653,a229328d0b..0830da798b
--- a/packages/tests/src/plugins/external-auth.ts
+++ b/packages/tests/src/plugins/external-auth.ts
@@@ -1,6 -1,5 +1,5 @@@
-/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
+/* oxlint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
- import { expect } from 'chai'
import { wait } from '@peertube/peertube-core-utils'
import { HttpStatusCode, HttpStatusCodeType, UserAdminFlag, UserRole } from '@peertube/peertube-models'
import {
diff --cc server/core/lib/job-queue/handlers/video-import.ts
index 1ee774783b,b3cdd6bdde..8d79666577
--- a/server/core/lib/job-queue/handlers/video-import.ts
+++ b/server/core/lib/job-queue/handlers/video-import.ts
@@@ -91,10 -92,18 +91,11 @@@ export
async function processTorrentImport (job: Job, videoImport: MVideoImportDefault, payload: VideoImportTorrentPayload) {
logger.info('Processing torrent video import in job %s.', job.id)
- const user = await UserModel.loadById(videoImport.userId)
- const target = {
- torrentName: videoImport.torrentName
- ? getSecureTorrentName(videoImport.torrentName)
- : undefined,
- uri: videoImport.magnetUri
- }
-
+ const user = await UserModel.loadByVideoId(videoImport.videoId)
+ if (!user) throw new Error('Video does not exist anymore')
return processFile({
- downloader: () => downloadWebTorrentVideo(target, JOB_TTL['video-import']),
+ downloader: () => downloadWebTorrentVideo({ torrentPath: payload.torrentPath, uri: videoImport.magnetUri }, JOB_TTL['video-import']),
videoImport,
type: payload.type,
generateTranscription: payload.generateTranscription,