Commit Graph

1226 Commits (7e98a7df7d04e19ba67163a86c7b876d78d76839)

Author SHA1 Message Date
lutangar 5e3d29ab21 Add video caption created and deleted hooks 2021-12-23 09:35:35 +01:00
Chocobozzz 6def7d34e6
Fix migrations 2021-12-17 14:27:16 +01:00
Chocobozzz f304a1580b
Fix build 2021-12-17 13:58:07 +01:00
Chocobozzz c55e3d7227
Move test functions outside extra-utils 2021-12-17 12:24:03 +01:00
Chocobozzz bf54587a3e
shared/ typescript types dir server-commands 2021-12-17 09:29:23 +01:00
Chocobozzz 754c52b9b9
Add ffprobe helper 2021-12-16 17:00:46 +01:00
Chocobozzz 2e9c7877eb
Add videos.getFiles plugin helper 2021-12-16 16:49:43 +01:00
Chocobozzz 51872b82a1 Fix tests 2021-12-16 10:17:39 +01:00
lutangar ced38c0ffe fix plugin storage return value when storing a Json array 2021-12-16 10:17:39 +01:00
Chocobozzz b65de1be4d
Use different p2p policy for embeds and webapp 2021-12-16 10:08:55 +01:00
Chocobozzz a9bfa85d2c
Add ability for admins to set default p2p policy 2021-12-16 10:08:55 +01:00
Chocobozzz c77fdc605b Fix videos language tests 2021-12-16 10:08:43 +01:00
lutangar 06aad80165 chore(refactor): remove shared folder dependencies to the server
Many files from the `shared` folder were importing files from the `server` folder.
When attempting to use Typescript project references to describe dependencies,
it highlighted a circular dependency beetween `shared` <-> `server`.

The Typescript project forbid such usages.
Using project references greatly improve performance by rebuilding only
the updated project and not all source files.
> see https://www.typescriptlang.org/docs/handbook/project-references.html
2021-12-16 10:08:43 +01:00
Chocobozzz 854f533c12
Fix lint 2021-12-14 17:38:59 +01:00
Chocobozzz 3cf68b869d
Ability for admins to set default upload values 2021-12-14 17:17:01 +01:00
Chocobozzz a6f919e455
Increase timeout 2021-12-14 14:21:29 +01:00
kontrollanten a37e9e74ff
Give moderators access to edit channels (#4608)
* give admins access to edit all channels

closes #4598

* test(channels): +admin update another users channel

* Fix tests

* fix(server): delete another users channel

Since the channel owner isn't necessary the auth user we need to check
the right account whether it's the last video or not.

* REMOVE_ANY_VIDEO_CHANNEL > MANAGE_ANY_VIDEO_CHANNEL

Merge REMOVE_ANY_VIDEO_CHANNEL and MANY_VIDEO_CHANNELS to
MANAGE_ANY_VIDEO_CHANNEL.

* user-right: moderator can't manage admins channel

* client: MyVideoChannelCreateComponent > VideoChannelCreateComponent

* client: MyVideoChannelEdit > VideoChannelEdit

* Revert "user-right: moderator can't manage admins channel"

This reverts commit 2c627c154e.

* server: clean dupl validator functionality

* fix ensureUserCanManageChannel usage

It's not async anymore.

* server: merge channel validator middleares

ensureAuthUserOwnsChannelValidator & ensureUserCanManageChannel gets
merged into one middleware.

* client(VideoChannelEdit): redirect to prev route

* fix(VideoChannels): handle anon users

* client: new routes for create/update channel

* Refactor channel validators

Co-authored-by: Chocobozzz <me@florianbigard.com>
2021-12-13 15:29:13 +01:00
Chocobozzz d17d743051
Add upload/import/go live video attributes hooks 2021-12-10 13:51:44 +01:00
Chocobozzz 90701ec1d8
Add hls to prune storage script 2021-12-10 10:28:46 +01:00
Chocobozzz 0fbc0dec59
Fix tests 2021-12-09 15:44:54 +01:00
Chocobozzz 9e847c17f9
No notification on moderator abuse 2021-12-09 14:27:32 +01:00
Chocobozzz 650580504c
Add filter:api.server.stats.get.result hook 2021-12-09 14:09:24 +01:00
Chocobozzz 636d73c588
Merge branch 'release/4.0.0' into develop 2021-12-07 13:47:34 +01:00
Chocobozzz 7e44bd4a6f
Fix services tests 2021-12-07 13:47:26 +01:00
Chocobozzz 80badf493a
Add mute status in account and channel pages 2021-12-07 09:46:01 +01:00
Chocobozzz 33675a4775
Increase timeout 2021-12-06 10:05:05 +01:00
Chocobozzz 0bc53e2029
Add ability to redirect users on external auth 2021-12-03 17:04:47 +01:00
John Livingston 3a1157a68a
CLI: plugins install command accept a --plugin-version parameter. (#4599)
* CLI: plugins install command accept a --plugin-version parameter.

* Unit tests for plugins install --plugin-version.

* Fix linting.

* Styling

Co-authored-by: Chocobozzz <me@florianbigard.com>
2021-12-03 10:14:01 +01:00
Chocobozzz 7137377d09
Auto update publishedAt in live restream 2021-11-26 17:36:55 +01:00
Chocobozzz 450de91e22
Fix E2E tests 2021-11-24 10:49:12 +01:00
Chocobozzz 842a15732b
Ensure we don't run transcoding after import file 2021-11-23 15:22:07 +01:00
Chocobozzz 5d3c5f2797
Fix typo 2021-11-19 08:26:22 +01:00
Chocobozzz 4842e518be
Fetch publishedAt after wait jobs
To make sure it's published
2021-11-18 16:30:25 +01:00
Chocobozzz ad5db1044c
Add ability to run transcoding jobs 2021-11-18 15:20:57 +01:00
Chocobozzz b46cf4b920
Add ability to remove hls/webtorrent files 2021-11-18 09:04:30 +01:00
Chocobozzz 3455c2656e
Test and log request retries 2021-11-16 11:34:24 +01:00
Chocobozzz 1740952b8c
Add more logs for video import tests 2021-11-16 08:59:35 +01:00
Chocobozzz 5c08e1c29d
Increase live transcoding test timeout 2021-11-15 15:59:19 +01:00
Chocobozzz 60409162e6
Fix tests cleanup 2021-11-15 09:37:19 +01:00
Chocobozzz aaef591b17
Fix live tests 2021-11-15 09:26:56 +01:00
Chocobozzz 527a52ac42
Add ability to filter out public videos from admin 2021-11-12 14:23:22 +01:00
Chocobozzz 8db19c959e
Remove contributors list from /about/peertube
Some contributors don't want to be associated to a particular peertube
instance
2021-11-12 11:00:51 +01:00
Chocobozzz 5cf027bdc4
Force video updatedAt update on update 2021-11-10 14:34:02 +01:00
Chocobozzz d78b51aa4e
Fix tests 2021-11-10 14:25:33 +01:00
Chocobozzz 020d3d3d79
Remove resumable cache after upload success 2021-11-10 09:43:33 +01:00
Chocobozzz 51353d9a03 Refactor video views
Introduce viewers attribute for live videos
Count views for live videos
Reduce delay to see the viewer update for lives
Add ability to configure video views buffer interval and view ip
expiration
2021-11-09 15:00:31 +01:00
Chocobozzz 221ee1adc9 Add transcoding fail message in client 2021-11-09 15:00:21 +01:00
kontrollanten e1ab52d7ec
Add migrate-to-object-storage script (#4481)
* add migrate-to-object-storage-script

closes #4467

* add migrate-to-unique-playlist-filenames script

* fix(migrate-to-unique-playlist-filenames): update master/segments256

run updateMasterHLSPlaylist and updateSha256VODSegments after
file rename.

* Improve move to object storage scripts

* PR remarks

Co-authored-by: Chocobozzz <me@florianbigard.com>
2021-11-09 11:05:35 +01:00
Chocobozzz df1db951c5
Support RTMPS 2021-11-05 11:38:17 +01:00
Florian CUNY 8dd754c767
Added 144p encoding (#4492)
* Added 144p encoding

Implements https://github.com/Chocobozzz/PeerTube/issues/4428

* Fixed typo in core-utils

* Increased BitPerPixel for 144p

* Disabled 144p by default in test.yaml

* Another try at fixing tests

* Fixed test in video-transcoder (api-3)

* Fixed test in video-imports (api-4)

* Fixed test in live-constraints (api-2)

* Tried to fix tests in api-3 again

* Revert "Tried to fix tests in api-3 again"

This reverts commit 266e1143fa37f333d149c2c2791c7bd33621ac14.

* Fixed test in config.ts (api-2)

* Try to fix test in video-hls.ts (api-3)

* Fixed test in video-transcoder.ts (api-3)

* Fix tests

Co-authored-by: Chocobozzz <me@florianbigard.com>
2021-11-05 10:23:02 +01:00
Chocobozzz d324756edb
Add ability to filter by file type 2021-11-03 11:32:41 +01:00
Chocobozzz 3c10840fa9 Add video file size info in admin videos list 2021-10-29 11:48:21 +02:00
Chocobozzz 2760b454a7 Deprecate filter video query
Introduce include and isLocal instead
2021-10-29 11:48:21 +02:00
Florian CUNY 754b6f5f41
Made the video channels limit (per user) server-wide configurable (#4491)
* Made the video channels limit (per user) server-wide configurable

Implements https://github.com/Chocobozzz/PeerTube/issues/3092

Also added a "quota bar" in the account's settings page

* Fixed lint errors

* Another pass at fixing lint errors

* Applied code suggestions

* Removed 'video channels quota'
2021-10-26 16:42:10 +02:00
Rigel Kent 276250f0a3
prevent multiple post-process triggering of upload-resumable (#4175)
* prevent multiple post-process triggering of upload-resumable

* switch from 409 to 503 for upload being processed

* Improve resumable upload check

Co-authored-by: Chocobozzz <me@florianbigard.com>
2021-10-25 17:42:20 +02:00
Chocobozzz d1bfbdeb20
Random listen for mocked servers 2021-10-22 14:31:38 +02:00
Chocobozzz 5480933b7f
Add peertube short link import test 2021-10-22 14:25:32 +02:00
Chocobozzz 62549e6c98
Rewrite youtube-dl import
Use python3 binary
Allows to use a custom youtube-dl release URL
Allows to use yt-dlp (youtube-dl fork)
Remove proxy config from configuration to use HTTP_PROXY and HTTPS_PROXY
env variables
2021-10-22 10:25:24 +02:00
Chocobozzz 400043b1be
Add ability to search by URL with query params 2021-10-20 15:26:38 +02:00
Chocobozzz 64553e8809
Add ability to filter logs by tags 2021-10-20 14:33:38 +02:00
Chocobozzz 978c87e7f5
Add channel filters for my videos/followers 2021-10-20 09:25:44 +02:00
Chocobozzz 906f46d084
Split check user params tests 2021-10-20 09:25:44 +02:00
Chocobozzz 4beda9e12a
Add ability to view my followers 2021-10-20 09:25:44 +02:00
Chocobozzz 27c3c9456d
Increase some timeouts 2021-10-18 10:23:45 +02:00
Chocobozzz 1ffb5fb682
Increase test timeout 2021-10-15 08:23:02 +02:00
Chocobozzz cf0c8ee588
Fix admin edition disabling feature 2021-10-14 11:35:43 +02:00
Chocobozzz 179bfea5e0
Fix import tests 2021-10-14 09:36:55 +02:00
Chocobozzz 87c0f718dc
Fix benchmark test 2021-10-14 08:30:17 +02:00
Chocobozzz 1cf0df024e
Fix actor follow counts calculation 2021-10-13 16:18:42 +02:00
Chocobozzz f87d82b93d
Fix config test cleanup 2021-10-13 11:52:42 +02:00
Chocobozzz 9db437c815
Process slow followers in unicast job queue 2021-10-13 11:47:32 +02:00
Chocobozzz ac0725aa88
Increase videos search test before timeout 2021-10-13 09:18:48 +02:00
Chocobozzz 3b3490e41a
Increase HDR timeout import 2021-10-13 09:18:48 +02:00
Chocobozzz 87699a09ce
Add object storage test 2021-10-12 15:36:44 +02:00
Chocobozzz 10ef089102
Merge branch 'release/3.4.0' into develop 2021-10-12 13:50:48 +02:00
Jelle Besseling 8d8a037e3f
Allow configuration to be static/readonly (#4315)
* Allow configuration to be static/readonly

* Make all components disableable

* Improve disabled component styling

* Rename edits allowed field in configuration

* Fix CI
2021-10-12 13:33:44 +02:00
Chocobozzz 9f430a53be
Fix bitrate tests 2021-10-12 09:18:54 +02:00
Chocobozzz 37e0a1c055
Increase live tests timeout 2021-10-11 09:37:27 +02:00
Chocobozzz 9db2330e4a
Fix notification on create transcoding job 2021-10-11 09:37:27 +02:00
Chocobozzz e93ee83825
Handle oembed with params in URL 2021-10-11 09:37:26 +02:00
Chocobozzz 93a1e67f86
Fix channel search with complete handle 2021-10-11 09:37:26 +02:00
Chocobozzz 42cc1887af
Stop indexing /about/peertube 2021-10-11 09:37:26 +02:00
Chocobozzz d8fb3a2f0d
Increase live tests timeout 2021-10-08 16:00:41 +02:00
Chocobozzz efa3fef23e
Fix notification on create transcoding job 2021-10-08 15:40:23 +02:00
Chocobozzz 7d786e5c16
Handle oembed with params in URL 2021-10-08 14:49:15 +02:00
Chocobozzz b0268e27e1
Fix channel search with complete handle 2021-10-08 11:15:06 +02:00
Chocobozzz 655c957cc3
Stop indexing /about/peertube 2021-10-08 11:06:40 +02:00
Chocobozzz afe501a6cd
Fix client tests 2021-09-09 09:47:59 +02:00
Chocobozzz 790c2837dd
Fix silent 500 after resumable upload 2021-09-09 09:35:30 +02:00
Chocobozzz fb72d2e1c2
Fix infohash with object storage 2021-09-07 15:16:26 +02:00
Chocobozzz 61e9908c31
Increase timeout 2021-09-07 08:33:58 +02:00
Chocobozzz 70430c2796
Wait mock server termination 2021-09-06 08:13:11 +02:00
Chocobozzz f4e75a6fd0
Increase contact form tests timeout 2021-09-02 09:11:51 +02:00
Chocobozzz fcf9ae8aa6
Reduce 4k transcode test time 2021-08-30 10:38:50 +02:00
Chocobozzz e3c9ea7226
Add peertube import test 2021-08-27 16:21:19 +02:00
Chocobozzz 41fb13c330
esModuleInterop to true 2021-08-27 15:12:22 +02:00
Chocobozzz 8f58172565
Allow accounts to skip account setup modal 2021-08-27 10:15:55 +02:00
Chocobozzz 7b6cf83e33
Fix redundancy remove on host redundancy update 2021-08-26 10:01:42 +02:00
Chocobozzz 851675c559
Rename jobs list command 2021-08-26 10:01:42 +02:00
smilekison 8729a87024
Support proxies for PeerTube (#4346)
* Updated with latest code

* Updated Support proxies for PeerTube

* Support Proxies for PeerTube (Updated with change request)

* Cleanup proxy PR

Co-authored-by: Chocobozzz <me@florianbigard.com>
2021-08-25 15:08:37 +02:00