Chocobozzz
17ddba4950
Fix thumbnail update
2021-11-10 15:13:56 +01:00
Chocobozzz
a2a81f5a7f
Prevent concurrent video update
2021-11-10 14:57:09 +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
67eeec8b95
Add minimum bitrate limit
2021-11-10 11:04:00 +01:00
Chocobozzz
9390403250
Add ffmpeg tags for ffmpeg logs
2021-11-10 09:53:55 +01:00
Chocobozzz
020d3d3d79
Remove resumable cache after upload success
2021-11-10 09:43:33 +01:00
Chocobozzz
d7ce63d3dd
Fix error log of bad import
2021-11-09 15:07:06 +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
4e29f4fe23
video: add video stranscoding_failed state
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
dedcd583b2
Fix remote interaction
...
When we fetch a ressource that is a redirection of another ressource
2021-11-05 14:11:19 +01:00
Chocobozzz
5037e0e474
Correctly close RTMPS server too
2021-11-05 11:40:49 +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
7e7d8e4853
Some fixes for admin videos list
2021-11-02 11:13:13 +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
Chocobozzz
5842a85424
Remove unnecessary package
...
https://github.com/standard/standard/issues/1316
2021-10-26 15:08:58 +02:00
Chocobozzz
b9fbc17609
Fix lint
2021-10-26 08:37:03 +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
b2ad0090c1
Don't write youtube-dl stdout in log
...
It's too big
2021-10-25 10:18:41 +02:00
Chocobozzz
0c691a182c
Fix sequelize order typings
2021-10-22 16:40:48 +02:00
Chocobozzz
532e6a4172
Remove aws bug workaround
...
This has been fixed in https://github.com/aws/aws-sdk-js-v3/pull/2835
2021-10-22 16:30:55 +02:00
Chocobozzz
7fb2c60bbe
Remove sync call in logger
...
Winston already does it
2021-10-22 16:25:16 +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
ab4001aade
Provide origin URL to client and fix remote share
2021-10-22 14:11:58 +02:00
Chocobozzz
7f91ecbde4
Completely remove torrent static path
2021-10-22 10:32:53 +02:00
Chocobozzz
619537426b
Constants consistency
2021-10-22 10:28:00 +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
97b6428af7
Breaking: fix inconsistencies in configuration
2021-10-20 16:29:41 +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
c4c0c31144
Fix my live videos filter
2021-10-20 10:04:06 +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
9593a78ae1
Refactor sort middlewares
2021-10-20 09:25:44 +02:00
Chocobozzz
27c3c9456d
Increase some timeouts
2021-10-18 10:23:45 +02:00
Chocobozzz
1e2fe802d1
Force live type specification in first step
2021-10-15 11:45:03 +02:00
Chocobozzz
bacb544dbb
Remove old federation compatibility
2021-10-15 09:44:21 +02:00
Chocobozzz
b3fc41a165
Fix youtube-dl update with proxy
2021-10-15 08:32:06 +02:00
Chocobozzz
1ffb5fb682
Increase test timeout
2021-10-15 08:23:02 +02:00
Chocobozzz
f0ab2aed3d
Fix lint
2021-10-14 14:14:57 +02:00
Chocobozzz
37cd44d04f
Remove deprecated torrent static route
2021-10-14 11:39:06 +02:00
Chocobozzz
cf0c8ee588
Fix admin edition disabling feature
2021-10-14 11:35:43 +02:00
Chocobozzz
e1a570abff
Fix user subscription follows count
2021-10-14 10:52:15 +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
e81f6ccf98
Fix requests timeout
2021-10-13 09:57:20 +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
d41a380550
Fix check after init script
2021-10-13 08:44:34 +02:00
Chocobozzz
87699a09ce
Add object storage test
2021-10-12 15:36:44 +02:00
Chocobozzz
577280e4c0
Upgrade server tools
2021-10-12 14:34:29 +02:00
Chocobozzz
05c0535df7
Update server dependencies
2021-10-12 14:31:59 +02:00
Chocobozzz
80dea8f4d6
Rename config key
2021-10-12 14:25:30 +02:00
kontrollanten
7399a79f73
add option to always show channel display name ( #4422 )
...
* add option to always show channel display name
closes #4040
* show avatar in video miniatures
closes #4040
* Revert "show avatar in video miniatures"
This reverts commit 79b1a84140
.
* channel display name: fix review comments
2021-10-12 14:23:44 +02:00
Chocobozzz
10ef089102
Merge branch 'release/3.4.0' into develop
2021-10-12 13:50:48 +02:00
kontrollanten
c80e458afb
extend client-overrides with default images ( #4392 )
...
* extend client-overrides with default images
Add:
* default-playlist.png
* default-avatar-account.png
* default-avatar-videochannel.png
solves #4108
* Rename to default-avatar-video-channel.png
Co-authored-by: Chocobozzz <me@florianbigard.com>
2021-10-12 13:50:40 +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
f7bb2bb5a7
Don't use min FPS, throw instead
...
Avoir creating a big output from a very low FPS input file
2021-10-12 10:37:25 +02:00
Chocobozzz
9f430a53be
Fix bitrate tests
2021-10-12 09:18:54 +02:00
Chocobozzz
badacdbb4a
Merge branch 'release/3.4.0' into develop
2021-10-11 16:00:39 +02:00
Chocobozzz
41085b1583
Fix live bitrate
2021-10-11 15:59:38 +02:00
Chocobozzz
e5d9877f06
Simpler ID match
2021-10-11 14:57:53 +02:00
Chocobozzz
40a8c0a4c4
Fix email logger typings
2021-10-11 14:55:02 +02:00
Chocobozzz
5ac6449735
Remove useless condition
2021-10-11 14:40:53 +02:00
Chocobozzz
5773128647
Improve regexp performance
2021-10-11 14:37:35 +02:00
Chocobozzz
1db57e6f96
Fix useless condition
2021-10-11 14:16:31 +02:00
Chocobozzz
4d6952361e
Fix multiple \n in md to plain text
2021-10-11 14:15:42 +02:00
Chocobozzz
ab632f438e
Fix channel handle search
2021-10-11 14:12:45 +02:00
Chocobozzz
8bd67ef6af
Remove uneeded language injection
...
It's already handled by angular build
2021-10-11 14:00:09 +02:00
Chocobozzz
d00e9c54f3
Merge branch 'next' into develop
2021-10-11 09:37:30 +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
731a32e334
More robust youtube-dl thumbnail import
2021-10-11 09:37:26 +02:00
Chocobozzz
e93ee83825
Handle oembed with params in URL
2021-10-11 09:37:26 +02:00
Chocobozzz
ab7b4f525b
Remove unused comments
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
f82416cc58
More robust youtube-dl thumbnail import
2021-10-08 15:06:45 +02:00
Chocobozzz
7d786e5c16
Handle oembed with params in URL
2021-10-08 14:49:15 +02:00
Chocobozzz
9da443f374
Remove unused comments
2021-10-08 11:22:22 +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
89ac282e04
Fix embed api
2021-09-10 15:53:33 +02:00
Chocobozzz
624e42fdf9
Remove peertube watch and peertube repl
...
I don't have time to maintain these scripts that cause some install
issues/maintenance difficulties
2021-09-10 15:06:57 +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
b4c945f3c7
Fix config injection with custom HTML/CSS
2021-09-09 09:13:45 +02:00
Chocobozzz
414f77c8d8
Don't force youtube-dl host
2021-09-08 16:55:42 +02:00
Chocobozzz
1c93ad0778
Fix object storage multipart upload
2021-09-08 16:45:02 +02:00
Chocobozzz
fb72d2e1c2
Fix infohash with object storage
2021-09-07 15:16:26 +02:00
Chocobozzz
23fdb0ff38
Add latin to languages
2021-09-07 09:05:57 +02:00
Chocobozzz
61e9908c31
Increase timeout
2021-09-07 08:33:58 +02:00
Chocobozzz
ddd677e4fd
Remove unused timeout option
2021-09-07 08:33:51 +02:00
Chocobozzz
02b286f890
More robust webtorrent redundancy download
...
Avoid issues with inconsistencies between magnet infohash and torrent
infohash, blocking webtorrent upload that will timeout
2021-09-06 16:19:49 +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
3419e0e1fe
Migrate to webdriverio
2021-09-01 15:06:46 +02:00
Chocobozzz
f2e31d589c
Fix pending job table migration
2021-08-30 16:28:36 +02:00
Chocobozzz
fcf9ae8aa6
Reduce 4k transcode test time
2021-08-30 10:38:50 +02:00
Chocobozzz
e4671228c8
Fix ws import
2021-08-30 09:47:17 +02:00
Chocobozzz
e874edd9f8
forceConsistentCasingInFileNames to true
2021-08-30 09:37:18 +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
e111a5a3a1
Don't throw when there is no error
2021-08-26 15:51:37 +02:00
Chocobozzz
095094872a
Remove too much log for webtorrent download
2021-08-26 15:28:51 +02:00
Chocobozzz
0bae66632a
More logs for webtorrent download
2021-08-26 15:19:11 +02:00
Chocobozzz
52b1fd15fa
Better logs for redundancy
2021-08-26 11:02:41 +02:00
Chocobozzz
7b6cf83e33
Fix redundancy remove on host redundancy update
2021-08-26 10:01:42 +02:00
Chocobozzz
5a298a5a3d
Better logs for transcoding
2021-08-26 10:01:42 +02:00
Chocobozzz
98ab5dc810
Remove useless async
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
Ms Kimsible
4e1592daa4
Alert user for low quota and video auto-block on upload page ( #4336 )
...
* Replace wording of instance contact
* Add contact-us button to no-quota alert on upload page
* Add alert for accounts with auto-blocked videos on upload page
* Add alert for accounts without enough quota + refacto on upload page
* Using ng-container and ng-template
* Add alert for daily quota
* Add hook filter for upload page alert messages
* Add instance name as subtitle in contact modal
* Fix eslint max-len on string
* Fix missing word in quota left daily message - upload page
Co-authored-by: Kimsible <kimsible@users.noreply.github.com>
2021-08-25 11:38:10 +02:00
Chocobozzz
e5d3e0c79d
Fix object storage migration
...
It's too long on big instances
2021-08-19 09:27:14 +02:00
Chocobozzz
586a7478b6
Fix caption log
2021-08-18 11:25:08 +02:00
Chocobozzz
1d1da33661
More robust optimize transcoding job
2021-08-18 10:59:38 +02:00
Chocobozzz
cbb1d46b91
Fix hls tests
2021-08-18 10:02:48 +02:00
Chocobozzz
f645af4396
Remove useless condition
2021-08-18 09:33:48 +02:00
Chocobozzz
0d4a3c62ab
Set ACL when uploading objects
2021-08-18 09:19:09 +02:00
Chocobozzz
1f6125be8b
Optimize torrent URL update
2021-08-18 09:14:51 +02:00
Chocobozzz
c186a67f90
Support short uuid for scripts
2021-08-17 11:06:10 +02:00
Chocobozzz
66a7fc9473
Remove optimize old videos script
...
It is not compatible with HLS and I don't have time to maintain it
2021-08-17 10:33:36 +02:00
Jelle Besseling
0305db28c9
Add support for saving video files to object storage ( #4290 )
...
* Add support for saving video files to object storage
* Add support for custom url generation on s3 stored files
Uses two config keys to support url generation that doesn't directly go
to (compatible s3). Can be used to generate urls to any cache server or
CDN.
* Upload files to s3 concurrently and delete originals afterwards
* Only publish after move to object storage is complete
* Use base url instead of url template
* Fix mistyped config field
* Add rudenmentary way to download before transcode
* Implement Chocobozzz suggestions
https://github.com/Chocobozzz/PeerTube/pull/4290#issuecomment-891670478
The remarks in question:
Try to use objectStorage prefix instead of s3 prefix for your function/variables/config names
Prefer to use a tree for the config: s3.streaming_playlists_bucket -> object_storage.streaming_playlists.bucket
Use uppercase for config: S3.STREAMING_PLAYLISTS_BUCKETINFO.bucket -> OBJECT_STORAGE.STREAMING_PLAYLISTS.BUCKET (maybe BUCKET_NAME instead of BUCKET)
I suggest to rename moveJobsRunning to pendingMovingJobs (or better, create a dedicated videoJobInfo table with a pendingMove & videoId columns so we could also use this table to track pending transcoding jobs)
https://github.com/Chocobozzz/PeerTube/pull/4290/files#diff-3e26d41ca4bda1de8e1747af70ca2af642abcc1e9e0bfb94239ff2165acfbde5R19 uses a string instead of an integer
I think we should store the origin object storage URL in fileUrl, without base_url injection. Instead, inject the base_url at "runtime" so admins can easily change this configuration without running a script to update DB URLs
* Import correct function
* Support multipart upload
* Remove import of node 15.0 module stream/promises
* Extend maximum upload job length
Using the same value as for redundancy downloading seems logical
* Use dynamic part size for really large uploads
Also adds very small part size for local testing
* Fix decreasePendingMove query
* Resolve various PR comments
* Move to object storage after optimize
* Make upload size configurable and increase default
* Prune webtorrent files that are stored in object storage
* Move files after transcoding jobs
* Fix federation
* Add video path manager
* Support move to external storage job in client
* Fix live object storage tests
Co-authored-by: Chocobozzz <me@florianbigard.com>
2021-08-17 08:26:20 +02:00
Chocobozzz
5b075bc549
Fix search index tests
2021-08-11 11:49:01 +02:00
Chocobozzz
31aa391d13
Update server dependencies
2021-08-11 11:49:00 +02:00
Chocobozzz
18998c45c0
Correctly handle large HLS files for redundancy
2021-08-06 15:25:45 +02:00
Chocobozzz
7942e72e38
Fix cli build
2021-08-06 14:39:28 +02:00
Chocobozzz
679c12e69c
Improve target bitrate calculation
2021-08-06 14:13:26 +02:00
Chocobozzz
c826f34a45
Limit live bitrate
2021-08-06 10:39:40 +02:00
Chocobozzz
e83d06a702
Remove deprecated transcoding job names
2021-08-05 14:29:44 +02:00
Chocobozzz
45570e9397
Fix upload without files
2021-08-05 14:24:03 +02:00
Chocobozzz
27db78400c
Fix backend channel name validator consistency
2021-08-05 13:54:35 +02:00
Chocobozzz
352819ef92
Do not index remote actors
2021-08-05 13:29:55 +02:00
Chocobozzz
d26836cd95
Refactor notifier
2021-08-02 10:39:51 +02:00
Chocobozzz
9e87894973
Merge branch 'release/3.3.0' into develop
2021-07-29 17:18:28 +02:00
Chocobozzz
cd162f25d2
Fix video format utils
2021-07-29 17:18:09 +02:00
Chocobozzz
9c9a236b54
Refactor options in models
2021-07-29 14:17:03 +02:00
Chocobozzz
56d07460b5
Update search index tests
2021-07-29 13:41:27 +02:00
Chocobozzz
20c7087689
Correctly cleanup test servers
2021-07-29 13:34:51 +02:00
Chocobozzz
d0ea3e34d0
Log ffmpeg command
2021-07-29 13:34:16 +02:00
Chocobozzz
d688602710
Refactor search query options
2021-07-29 11:54:38 +02:00
Chocobozzz
b033851fb5
Search channels against handles and not names
2021-07-29 10:27:24 +02:00
Chocobozzz
fbd67e7f38
Add ability to search by uuids/actor names
2021-07-28 16:40:21 +02:00
Chocobozzz
164c8d46cf
Update search index tests
2021-07-28 13:40:26 +02:00
Chocobozzz
7bb52934b7
Increase test timeout
2021-07-28 11:13:36 +02:00
Chocobozzz
fa47956ecf
Filter host for channels and playlists search
2021-07-28 10:32:40 +02:00
Chocobozzz
a892c54a82
Fix oembed for playlists
2021-07-27 17:37:59 +02:00
Chocobozzz
29837f8885
Add ability to search by host in server
2021-07-27 17:10:52 +02:00
Chocobozzz
5d0095fde1
Fix build
2021-07-26 16:05:49 +02:00
Chocobozzz
15a7eafb89
Refactor video links builders
2021-07-26 15:04:37 +02:00
Chocobozzz
764b1a14fc
Use random names for VOD HLS playlists
2021-07-26 11:29:31 +02:00
Chocobozzz
83903cb65d
Generate random uuid for video files
2021-07-26 11:29:31 +02:00
Chocobozzz
fea11cf25c
Fix tests with node 16
2021-07-22 14:58:25 +02:00
Chocobozzz
2e980ed30d
Simplify createServer args
2021-07-22 12:08:02 +02:00
Chocobozzz
7a397c7f15
Upgrade server dependencies
2021-07-22 12:01:58 +02:00
Chocobozzz
20bafcb61b
Move apicache in peertube
...
Allow us to upgrade to node 16
2021-07-22 11:48:24 +02:00
Chocobozzz
13e1337791
Speed up plugin transcoding tests
2021-07-22 08:55:14 +02:00
Chocobozzz
d1aed10353
Add overviews filter hook tests
2021-07-21 16:13:20 +02:00
Michael Williams
64f9b91de9
Add new filter hooks to /overviews/videos
...
This change adds new filter hooks `filter:api.overviews.videos.list.params` and `filter:api.overviews.videos.list.params` to /overviews/videos.
The motivation is to make a plugin to [use `originallyPublishedAt` in all places where `publishedAt` is used](https://github.com/ahdinosaur/peertube-plugin-originally-published-at ).
2021-07-21 16:01:34 +02:00
Chocobozzz
a24bd1ed41
Merge branch 'next' into develop
2021-07-21 15:51:30 +02:00
Chocobozzz
5f26f13b3c
Merge branch 'constant-registry' into develop
2021-07-21 15:45:42 +02:00
Chocobozzz
2b9f672b58
Improve plugin constant tests
2021-07-21 15:44:28 +02:00
Chocobozzz
c63830f154
Rename captions commands
2021-07-21 13:58:35 +02:00
Chocobozzz
4d029ef8ec
Add ability for instances to follow any actor
2021-07-21 13:35:31 +02:00
Chocobozzz
4c7e60bc17
Reorganize imports
2021-07-20 15:27:19 +02:00
Chocobozzz
c0e8b12e7f
Refactor requests
2021-07-20 15:27:18 +02:00
Chocobozzz
08642a765e
Fix server run
2021-07-20 15:27:18 +02:00
Chocobozzz
59bbcced37
Centralize test URLs
2021-07-20 15:27:18 +02:00
Chocobozzz
254d3579f5
Use an object to represent a server
2021-07-20 15:27:18 +02:00
Chocobozzz
89d241a79c
Shorter server command names
2021-07-20 15:27:18 +02:00
Chocobozzz
d23dd9fbfc
Introduce videos command
2021-07-20 15:27:18 +02:00
Chocobozzz
7926c5f9b3
Introduce user command
2021-07-20 15:27:18 +02:00
Chocobozzz
d0a0fa429d
Adapt CLI to new commands
2021-07-20 15:27:18 +02:00
Chocobozzz
41d1d07501
Introduce login command
2021-07-20 15:27:18 +02:00
Chocobozzz
6c5065a011
Introduce server commands
2021-07-20 15:27:18 +02:00
Chocobozzz
0d8ecb7592
Fix NSFW tests
2021-07-20 15:27:18 +02:00
Chocobozzz
5e2fea3ab9
Fix search tests
2021-07-20 15:27:18 +02:00
Chocobozzz
dd0ebb7151
Introduce notifications command
2021-07-20 15:27:18 +02:00
Chocobozzz
9293139fde
Introduce sql command
2021-07-20 15:27:18 +02:00
Chocobozzz
078f17e6d9
Fix CLI tools
2021-07-20 15:27:18 +02:00
Chocobozzz
12edc1495a
Introduce comments command
2021-07-20 15:27:18 +02:00
Chocobozzz
a54618880c
Introduce channels command
2021-07-20 15:27:18 +02:00
Chocobozzz
57f879a540
Introduce streaming playlists command
2021-07-20 15:27:18 +02:00
Chocobozzz
6910f20f11
Introduce import command
2021-07-20 15:27:18 +02:00
Chocobozzz
313228e9c3
Introduce history command
2021-07-20 15:27:18 +02:00
Chocobozzz
e6346d59e6
Introduce playlist command
2021-07-20 15:27:18 +02:00
Chocobozzz
72cbfc5695
Introduce change ownership command
2021-07-20 15:27:18 +02:00
Chocobozzz
a2470c9f4b
Introduce captions command
2021-07-20 15:27:17 +02:00
Chocobozzz
e3d15a6a9a
Introduce blacklist command
2021-07-20 15:27:17 +02:00
Chocobozzz
04aed76711
Shorter live methods
2021-07-20 15:27:17 +02:00
Chocobozzz
d897210c2d
Introduce services command
2021-07-20 15:27:17 +02:00
Chocobozzz
4f2199144e
Introduce live command
2021-07-20 15:27:17 +02:00
Chocobozzz
2c27e70471
Introduce subscriptions command
2021-07-20 15:27:17 +02:00
Chocobozzz
5f8bd4cbb1
Introduce blocklist command
2021-07-20 15:27:17 +02:00
Chocobozzz
9fff08cf83
Introduce accounts command
2021-07-20 15:27:17 +02:00
Chocobozzz
87e2635a50
Introduce socket io command
2021-07-20 15:27:17 +02:00
Chocobozzz
65e6e2602c
Introduce config command
2021-07-20 15:27:17 +02:00
Chocobozzz
bc8090411d
Introduce stats command
2021-07-20 15:27:17 +02:00
Chocobozzz
dab047092b
Introduce redundancy command
2021-07-20 15:27:17 +02:00
Chocobozzz
ae2abfd3ae
Introduce plugins command
2021-07-20 15:27:17 +02:00
Chocobozzz
9c6327f803
Introduce jobs command
2021-07-20 15:27:17 +02:00
Chocobozzz
c3d29f694b
Introduce follows command
2021-07-20 15:27:17 +02:00
Chocobozzz
883a901908
Introduce debug command
2021-07-20 15:27:17 +02:00
Chocobozzz
a9c58393d3
Introduce contact form command
2021-07-20 15:27:17 +02:00
Chocobozzz
2d1ad5b960
Move AP request in requests file
2021-07-20 15:27:17 +02:00
Chocobozzz
af971e06c6
Introduce search command
2021-07-20 15:27:17 +02:00
Chocobozzz
23a3a8827c
Introduce overviews command
2021-07-20 15:27:17 +02:00
Chocobozzz
0c1a77e9cc
Introduce abuse command
2021-07-20 15:27:17 +02:00
Chocobozzz
8ef9457fde
Correctly export misc files
2021-07-20 15:27:17 +02:00
Chocobozzz
c8fc9b4718
Rename mock server files
2021-07-20 15:27:16 +02:00
Chocobozzz
a92ddacb38
Introduce logs command
2021-07-20 15:27:16 +02:00
Chocobozzz
c1bc8ee478
Introduce feed command
2021-07-20 15:27:16 +02:00
Chocobozzz
e8bd7ce7cc
Introduce CustomPage command
2021-07-20 15:27:16 +02:00
Chocobozzz
329619b345
Introduce CLI command
2021-07-20 15:27:16 +02:00
Chocobozzz
a6a79eae0d
Introduce bulk command
2021-07-20 15:27:16 +02:00
lutangar
dc3d902234
Introduce generic video constant manager for plugins
...
Allow a plugin developer to get back constants values,
and reset constants deletions or additions.
2021-07-16 17:49:40 +02:00
Chocobozzz
83482ec476
Fix youtube-dl import for peertube videos
2021-07-16 15:58:57 +02:00
kontrollanten
2a408c40a9
change audio label, 0p > Audio
...
Changes the audio label in the Download modal.
2021-07-12 15:34:32 +02:00
Chocobozzz
bd873df064
Fix overviews test timeout
2021-07-12 15:34:03 +02:00
Chocobozzz
77d873c56d
Fix subscribe hotkey
2021-07-12 10:04:48 +02:00
lambdacastix
e622db0578
add support to another wav mimetype
...
```bash
$ file --mime-type file.wav
file.wav: audio/x-wav
$ file file.wav
file.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 44100 Hz
```
note: aac had a `'LEFT-TO-RIGHT MARK' (U+200E)` that I removed too
2021-07-11 22:41:44 +00:00
Chocobozzz
bbb3be686a
Use dns cache for requests
...
Prevent blocking issues in uv thread pool
2021-07-02 12:58:25 +02:00
Chocobozzz
3124b46904
Increase test timeout
2021-07-02 08:29:15 +02:00
Chocobozzz
c171d85253
Fix webfinger tls only
2021-07-01 17:04:13 +02:00
Chocobozzz
06c2759338
Fix hooks definition
2021-07-01 16:47:14 +02:00
Chocobozzz
693c6586cb
Fix missing delete cascade video -> channel
2021-07-01 14:53:37 +02:00
Chocobozzz
9c2e051c56
Handle broken plugin install
2021-06-30 11:45:20 +02:00
Chocobozzz
c17ee0903e
Don't check enum for video model
...
Licence, language and category could be extended by a remote plugin
2021-06-29 16:21:32 +02:00
Chocobozzz
d4a8e7a65f
Support short uuid for GET video/playlist
2021-06-29 14:56:35 +02:00
Chocobozzz
21b5c2982f
Fix ownership change with a live video
2021-06-28 11:54:40 +02:00
kontrollanten
e2e0b645cd
Add video-playlist-element.created hook ( #4196 )
...
* add playlists.videos.list.params/results hooks
closes #4192
* Revert "add playlists.videos.list.params/results hooks"
This reverts commit ebd822ca0b
.
* add video-playlist-element.created hook
closes #4192
* test: add playlist-element.created
* Fix tests
Co-authored-by: Chocobozzz <me@florianbigard.com>
2021-06-28 09:22:15 +02:00
Chocobozzz
12152aa09f
Update tools dependencies
2021-06-25 17:48:27 +02:00
Chocobozzz
8cc6120118
Upgrade server dependencies
2021-06-25 17:39:27 +02:00
Chocobozzz
37a44fc915
Add ability to search playlists
2021-06-25 14:44:01 +02:00
Chocobozzz
33eb19e519
It's not the week-end yet
2021-06-17 17:25:19 +02:00
Chocobozzz
e466544fb9
Fix muxing cleanup
2021-06-17 17:09:58 +02:00
Chocobozzz
52fb1d97ba
Fix prune storage tests
2021-06-17 11:09:54 +02:00
Chocobozzz
29b7426c67
Speedup CI
2021-06-17 10:43:34 +02:00
Chocobozzz
609a444202
Fix memory leak
2021-06-17 09:47:41 +02:00
Chocobozzz
c6406f4750
Don't retry UpdateVideosScheduler transactions
2021-06-17 08:51:29 +02:00
Chocobozzz
8ebf2a5d5d
Refactor live manager
2021-06-17 08:47:03 +02:00
Chocobozzz
fd6584844b
Resolve object id from actors too
2021-06-16 10:01:31 +02:00
Chocobozzz
82d19a2249
Upgrade tools dep
2021-06-15 16:15:44 +02:00
Chocobozzz
60520c7c85
Increase fetcher jobs concurrency
2021-06-15 15:31:08 +02:00
Chocobozzz
799ece6aae
Add ability to delete previously added constants
2021-06-15 15:18:11 +02:00
Chocobozzz
4c3e4c3d93
Fix lint
2021-06-15 14:19:30 +02:00
Chocobozzz
eae0365b5c
Fix missing transactions
2021-06-15 10:40:06 +02:00
Chocobozzz
e54bd458c1
Remove unnecessary await
2021-06-15 10:40:06 +02:00
Chocobozzz
c4244cfde1
Increase test timeout
2021-06-15 08:21:39 +02:00
Chocobozzz
7500d6c900
Use a global request timeout
2021-06-15 08:21:31 +02:00
Chocobozzz
3d470a530c
Faster ci using compiled ts files
2021-06-15 08:21:12 +02:00
Chocobozzz
79db409a41
More robust actor image lazy load
2021-06-14 16:14:45 +02:00
Chocobozzz
a9fbc2aaa1
Handle short video links
2021-06-14 16:05:25 +02:00
Chocobozzz
367994c521
Improve captions AP updater
2021-06-14 13:35:52 +02:00
Chocobozzz
520bf885c5
Remove unnecessary log
2021-06-11 16:44:33 +02:00
Chocobozzz
31d5d916c3
Fix redundancy row grabbing
2021-06-11 16:31:41 +02:00
Chocobozzz
9f7657b6b6
Include transaction in video hooks
2021-06-11 16:22:54 +02:00
Chocobozzz
adddb12b04
Fix video with all files query
2021-06-11 16:05:32 +02:00
Chocobozzz
668f864f5a
Fix live files include
2021-06-11 16:02:26 +02:00
Chocobozzz
b8afe6f0cd
Fix video rights fetching
2021-06-11 15:53:52 +02:00
Chocobozzz
559985b51c
Also serve AP for new account/video watch pages
2021-06-11 14:50:01 +02:00
Chocobozzz
69322042c4
Cleanup video model scopes
2021-06-11 14:45:58 +02:00
Chocobozzz
7c3a6636fd
Move get* video methods to formatter
2021-06-11 14:36:07 +02:00
Chocobozzz
fd6a74a835
Refactor schedule update
2021-06-11 14:33:34 +02:00
Chocobozzz
20a206c3d1
Refactor include checks
2021-06-11 14:26:37 +02:00
Chocobozzz
71d4af1efc
Use raw SQL for most of video queries
2021-06-11 14:09:52 +02:00
Chocobozzz
3c79c2ce86
Optimize join build
2021-06-11 11:27:45 +02:00
Chocobozzz
17bb45388e
Optimize rows parsing
2021-06-11 11:15:44 +02:00
Chocobozzz
ca4b4b2e55
Fetch directly all video attributes for get API
2021-06-11 09:57:19 +02:00
Chocobozzz
1d43c3a613
Use separate queries for video files
2021-06-11 09:31:59 +02:00
Chocobozzz
d9bf974f5d
Use raw SQL for video get request
2021-06-10 15:26:18 +02:00
Chocobozzz
e5dbd5084e
Refactor video query builder
2021-06-10 09:22:58 +02:00
Chocobozzz
ff0ea0cd8e
Transaction is optional
2021-06-09 17:06:56 +02:00
Chocobozzz
57a0a9cde4
Optimize AP video captions update
2021-06-09 16:22:01 +02:00
Chocobozzz
4ead40e776
Cache refresh actor promise
2021-06-09 13:34:40 +02:00
Chocobozzz
a6a12dae10
Fix run committed transation
2021-06-09 13:31:22 +02:00
Chocobozzz
17b064e394
Increase permanent live test timeout
2021-06-08 18:15:25 +02:00
Chocobozzz
bbfdeb3921
Fix actor image update
2021-06-08 18:12:49 +02:00
Chocobozzz
28dfb44b14
Try to speed up AP update transaction
2021-06-08 17:41:48 +02:00
Chocobozzz
75e12406e2
Increase tests timeout for plugin helpers
2021-06-08 16:52:35 +02:00
Chocobozzz
9de33c6bd9
Add logs for refresh functions
2021-06-08 16:22:23 +02:00
Chocobozzz
7ffa92d6e4
Log rate AP fetch error as info
...
It's not really a warning, we could have many invalid rates in the
federation
2021-06-08 13:57:08 +02:00
Chocobozzz
ec908b4a07
Fix nodeinfo endpoint
2021-06-08 13:49:41 +02:00
Chocobozzz
99cb53fd5a
Don't count deleted comment for replies
2021-06-08 13:48:58 +02:00
Chocobozzz
b110820dfc
Fix build
2021-06-08 13:29:59 +02:00
Chocobozzz
b7c8304cfd
Fix toEven
2021-06-08 13:14:02 +02:00
Chocobozzz
318b0bd0c2
Fix "height not divisible by 2" ffmpeg error
2021-06-08 11:28:51 +02:00
Chocobozzz
765b150245
Fix lint
2021-06-08 10:19:04 +02:00
Chocobozzz
a13df19d57
Increase max image/caption/torrent upload size
2021-06-08 10:01:50 +02:00
Chocobozzz
ea54cd04c1
Fix video upload with a capitalized ext
2021-06-08 10:01:50 +02:00
Chocobozzz
9cc4b9c61f
Fix process delete promise return
2021-06-07 13:20:08 +02:00
Rigel Kent
c756bae079
add video upload types, add doc middleware to more routes
2021-06-06 10:21:06 +02:00
Chocobozzz
91f8f8db97
createThumbnail -> updateThumbnail
2021-06-04 15:45:44 +02:00
Rigel Kent
1333ab1f2d
add operationId doc middleware to so API endpoints
2021-06-04 09:21:46 +02:00
Rigel Kent
1c627fd8d2
refactor docMiddleware to support operationId-only form
2021-06-04 09:21:46 +02:00
Chocobozzz
b96d21b744
Fix CLI build
2021-06-04 08:48:05 +02:00
Chocobozzz
868fce62f8
fetch -> load
...
avoid confusion with AP fetch functions
2021-06-03 18:10:56 +02:00
Chocobozzz
10363c74c1
Move middleware utils in middlewares
...
helpers modules should not import models
2021-06-03 18:03:36 +02:00
Chocobozzz
5e08989ede
Add tags to AP rate logger
2021-06-03 17:12:38 +02:00
Chocobozzz
908e6ead78
Refactor AP video logger tags
2021-06-03 16:56:42 +02:00
Chocobozzz
136d7efde7
Refactor AP actors
2021-06-03 16:40:32 +02:00
Chocobozzz
49af5ac8c2
Refactor AP playlists
2021-06-03 16:40:32 +02:00
Chocobozzz
63da15eb18
Use random port for mock servers in tests
2021-06-03 09:06:51 +02:00
Chocobozzz
e030bfb59d
Refactor server errors handler
2021-06-02 18:15:41 +02:00
Chocobozzz
463206948d
Add tags to logs in AP videos
2021-06-02 16:57:53 +02:00
Chocobozzz
e872632091
Refactor sync attributes
2021-06-02 16:57:53 +02:00
Chocobozzz
304a84d59c
Refactor getOrCreateAPVideo
2021-06-02 16:57:53 +02:00
Chocobozzz
c56faf0d94
Move AP video channel creation
2021-06-02 16:57:53 +02:00
Chocobozzz
08a47c75f9
Refactor AP video create/update
2021-06-02 16:57:53 +02:00
Chocobozzz
69290ab37b
Refactor AP video update
2021-06-02 16:57:53 +02:00
Rigel Kent
81628e5069
refactor error code values for URI compatibility
2021-06-02 16:57:07 +02:00
Rigel Kent
3866ea02d4
correct error codes and backward compat
2021-06-02 16:57:07 +02:00
Rigel Kent
1cfbdd30d9
refactor deprecated body-parser usage
2021-06-02 16:57:07 +02:00
Rigel Kent
76148b27f7
refactor API errors to standard error format
2021-06-02 16:57:07 +02:00
Chocobozzz
d88a3ea5e3
Process redundancy stats in series
2021-06-01 11:03:52 +02:00
Chocobozzz
a7944e89bc
Add expiresOn index
2021-06-01 11:03:52 +02:00
Rigel Kent
7dab0bd698
improve api param message for video names and tags
...
closes #4026
2021-05-31 20:47:59 +02:00
Rigel Kent
70330f6323
improve api param message for dates
2021-05-31 19:47:24 +02:00
Poslovitch
1f256e7d3c
Implemented configurable minimum signup age
...
Implements https://github.com/Chocobozzz/PeerTube/issues/3612
Fixed lint and removed debug
Fixed another lint error
Apply suggestions from code review
Co-authored-by: Chocobozzz <chocobozzz@cpy.re>
Add tests for min signup age config
2021-05-28 13:56:05 +02:00
Chocobozzz
9e2e51dc0b
Add tags to live logger
2021-05-28 13:05:59 +02:00
Chocobozzz
a1eda903a4
Support '/w/' and '/w/p/' for watch page
...
And use them as default in client
2021-05-28 11:38:08 +02:00
Chocobozzz
012580d98f
Cleanup
...
We must not expose private actor objects to clients
Just make 2 GET requests on channel/accounts instead
2021-05-28 10:22:50 +02:00
Chocobozzz
8f608a4cb2
Merge branch 'develop' into shorter-URLs-channels-accounts
2021-05-27 16:12:41 +02:00
Chocobozzz
2539932e16
Instance homepage support ( #4007 )
...
* Prepare homepage parsers
* Add ability to update instance hompage
* Add ability to set homepage as landing page
* Add homepage preview in admin
* Dynamically update left menu for homepage
* Inject home content in homepage
* Add videos list and channel miniature custom markup
* Remove unused elements in markup service
2021-05-27 15:59:55 +02:00
Chocobozzz
5ec3cbdf22
Merge branch 'release/3.2.0' into develop
2021-05-26 15:38:44 +02:00
Chocobozzz
6c8a99d12a
Fix lint
2021-05-26 15:38:09 +02:00
Chocobozzz
8ee37c5f38
Merge branch 'release/3.2.0' into develop
2021-05-26 13:41:15 +02:00
Chocobozzz
f49b3231d0
Fix broken lives handling
2021-05-26 12:03:44 +02:00
Chocobozzz
53e7f82fe3
Fix redundancy max size
2021-05-26 09:44:16 +02:00
Chocobozzz
819b656439
Merge branch 'release/3.2.0' into develop
2021-05-25 13:14:34 +02:00
Chocobozzz
fc8f15d202
Increase plugin transcoding tests timeout
2021-05-25 13:14:05 +02:00
Chocobozzz
c4d125527a
Avoid error when file has no torrent file
2021-05-25 11:35:29 +02:00
Chocobozzz
d61fa154af
Fix duplicate ffmpeg preset option for live
2021-05-25 11:35:29 +02:00
Chocobozzz
31a911190b
Fix broadcast message log level
2021-05-25 11:35:29 +02:00
John Livingston
fa263eeff7
Fix 4106: default boolean plugin setting for frontend
2021-05-25 11:35:29 +02:00
Chocobozzz
be89e66895
Avoid error when file has no torrent file
2021-05-25 11:34:43 +02:00
Chocobozzz
e318e0ebe1
Fix duplicate ffmpeg preset option for live
2021-05-25 11:34:43 +02:00
Chocobozzz
008af5c9bb
Fix broadcast message log level
2021-05-25 11:34:43 +02:00
John Livingston
8bb6e70be3
Fix 4106: default boolean plugin setting for frontend
2021-05-25 11:34:22 +02:00
Chocobozzz
5b1a6d45b5
Merge branch 'release/3.2.0' into develop
2021-05-14 14:18:13 +02:00
Chocobozzz
cb4bab61c1
Fix logger warning level
2021-05-14 14:17:53 +02:00
Chocobozzz
aea0b0e7cd
Inject server config in HTML
2021-05-14 13:37:23 +02:00
Chocobozzz
c158a5faab
Refactor a little bit controllers
2021-05-12 16:57:31 +02:00
Chocobozzz
16c016e8b1
Stricter models typing
2021-05-12 14:12:14 +02:00
Chocobozzz
32985a0a77
Error if importing a torrent with multiple files
2021-05-11 14:56:30 +02:00
Chocobozzz
a3c997b34c
Update README
2021-05-11 14:23:49 +02:00
Chocobozzz
428ccb8b7a
Reorganize plugin models
2021-05-11 13:33:11 +02:00
Chocobozzz
2b02c520e6
Cleanup shared models
2021-05-11 11:32:31 +02:00
Chocobozzz
7d9ba5c089
Cleanup models directory organization
2021-05-11 11:32:31 +02:00
Chocobozzz
c07902b908
Move transcoding files in their own directory
2021-05-11 11:32:31 +02:00
Chocobozzz
1bcb03a100
Use a class for youtube-dl
2021-05-11 11:32:31 +02:00
Rigel Kent
b8375da931
provide more schema examples in openapi spec
2021-05-11 01:50:42 +02:00
Chocobozzz
38ce2aa7a8
Increase tests timeout
2021-05-10 17:06:53 +02:00
Chocobozzz
f67d1dca1a
Fix handle downs test
2021-05-10 16:28:26 +02:00
Chocobozzz
3ec535f72b
Fix E2E tests
2021-05-10 13:58:09 +02:00
Chocobozzz
649e812947
Optimize videos feed endpoint
2021-05-10 13:56:16 +02:00
kontrollanten
f6d6e7f861
Resumable video uploads ( #3933 )
...
* WIP: resumable video uploads
relates to #324
* fix review comments
* video upload: error handling
* fix audio upload
* fixes after self review
* Update server/controllers/api/videos/index.ts
Co-authored-by: Rigel Kent <par@rigelk.eu>
* Update server/middlewares/validators/videos/videos.ts
Co-authored-by: Rigel Kent <par@rigelk.eu>
* Update server/controllers/api/videos/index.ts
Co-authored-by: Rigel Kent <par@rigelk.eu>
* update after code review
* refactor upload route
- restore multipart upload route
- move resumable to dedicated upload-resumable route
- move checks to middleware
- do not leak internal fs structure in response
* fix yarn.lock upon rebase
* factorize addVideo for reuse in both endpoints
* add resumable upload API to openapi spec
* add initial test and test helper for resumable upload
* typings for videoAddResumable middleware
* avoid including aws and google packages via node-uploadx, by only including uploadx/core
* rename ex-isAudioBg to more explicit name mentioning it is a preview file for audio
* add video-upload-tmp-folder-cleaner job
* stronger typing of video upload middleware
* reduce dependency to @uploadx/core
* add audio upload test
* refactor resumable uploads cleanup from job to scheduler
* refactor resumable uploads scheduler to compare to last execution time
* make resumable upload validator to always cleanup on failure
* move legacy upload request building outside of uploadVideo test helper
* filter upload-resumable middlewares down to POST, PUT, DELETE
also begin to type metadata
* merge add duration functions
* stronger typings and documentation for uploadx behaviour, move init validator up
* refactor(client/video-edit): options > uploadxOptions
* refactor(client/video-edit): remove obsolete else
* scheduler/remove-dangling-resum: rename tag
* refactor(server/video): add UploadVideoFiles type
* refactor(mw/validators): restructure eslint disable
* refactor(mw/validators/videos): rename import
* refactor(client/vid-upload): rename html elem id
* refactor(sched/remove-dangl): move fn to method
* refactor(mw/async): add method typing
* refactor(mw/vali/video): double quote > single
* refactor(server/upload-resum): express use > all
* proper http methud enum server/middlewares/async.ts
* properly type http methods
* factorize common video upload validation steps
* add check for maximum partially uploaded file size
* fix audioBg use
* fix extname(filename) in addVideo
* document parameters for uploadx's resumable protocol
* clear META files in scheduler
* last audio refactor before cramming preview in the initial POST form data
* refactor as mulitpart/form-data initial post request
this allows preview/thumbnail uploads alongside the initial request,
and cleans up the upload form
* Add more tests for resumable uploads
* Refactor remove dangling resumable uploads
* Prepare changelog
* Add more resumable upload tests
* Remove user quota check for resumable uploads
* Fix upload error handler
* Update nginx template for upload-resumable
* Cleanup comment
* Remove unused express methods
* Prefer to use got instead of raw http
* Don't retry on error 500
Co-authored-by: Rigel Kent <par@rigelk.eu>
Co-authored-by: Rigel Kent <sendmemail@rigelk.eu>
Co-authored-by: Chocobozzz <me@florianbigard.com>
2021-05-10 11:13:41 +02:00
Chocobozzz
e024fd6a74
Update channel updatedAt when uploading a video
2021-05-10 09:38:11 +02:00
John Livingston
1e0741d165
Fix CLI plugins list command: use command parameters.
2021-05-10 08:03:20 +02:00
Chocobozzz
4076e2ef6b
Increase test timeout
2021-05-07 15:42:23 +02:00
Chocobozzz
1ff9f1cda3
Fix ffmpeg version parsing
2021-05-07 14:23:43 +02:00
Chocobozzz
a1bb73f9b5
Refactor a little bit live tests
2021-05-07 11:53:46 +02:00
Chocobozzz
a66c2e3252
Fix remote actor creation date
2021-05-07 09:00:09 +02:00
Chocobozzz
60f1f61579
Fix ffmpeg version checker
2021-05-06 16:39:17 +02:00
kontrollanten
66f77f6343
server: fix HLS playlist format
...
Remove prefixed comma when there's no video codec.
2021-05-06 08:47:43 +02:00
Chocobozzz
b31d72625d
Plugin user.getAuthUser is now async
...
So we can load the full user
2021-05-05 15:26:28 +02:00
Kimsible
08ac081b37
Add test for API actors route
2021-05-05 11:47:03 +02:00
Kimsible
1e37d32f4b
Add server API actors route
2021-05-05 11:47:03 +02:00
Kimsible
9a911038d9
Add shorter URLs for accounts and channels server-side
2021-05-05 11:47:03 +02:00
Chocobozzz
36217ac537
Fix lint
2021-05-05 09:55:01 +02:00
Chocobozzz
a6e37eebfb
Fix transcoding job priority
...
New resolution jobs are also important if waiting for transcoding is
enabled since we publish the video after the first resolution generation
2021-05-05 09:32:20 +02:00
Chocobozzz
1fd61899ea
Add ability to filter my videos by live
2021-05-03 16:42:15 +02:00
Chocobozzz
c9ae74d6bc
Try to fix bad timestamps in .srt
2021-04-27 09:00:16 +02:00
Chocobozzz
f816da921f
Add migration to remove duplicated keys
...
Due to old/corrupted data, it can be problematic to restore a backup
2021-04-26 14:27:42 +02:00
Chocobozzz
185eabe1ef
Increase test timeout
2021-04-26 11:33:14 +02:00
Chocobozzz
6290699080
Fix plugin helpers tests
2021-04-22 15:16:35 +02:00
Chocobozzz
096231d00e
Add auth header in plugins guide
2021-04-22 11:43:03 +02:00
Chocobozzz
302eba0d89
Add data directory for plugins and some helpers
2021-04-22 10:55:28 +02:00
Chocobozzz
b7a27f2860
Add sendmail log in server
2021-04-21 15:18:22 +02:00
Chocobozzz
08370f6244
Fix h265 video import using CLI
2021-04-21 15:18:22 +02:00
Chocobozzz
67baf6478a
Allow plugins to set short translation locale
2021-04-20 16:14:09 +02:00
Chocobozzz
24a792404c
Support async onSettingsChange
2021-04-20 16:02:15 +02:00
Chocobozzz
4024c44f90
Merge branch 'release/3.1.0' into develop
2021-04-20 15:01:54 +02:00
Chocobozzz
6bc672da81
Fix database ssl connection
2021-04-19 09:25:11 +02:00
Chocobozzz
46460547ca
Fix exception in markdown parser
2021-04-16 07:41:35 +02:00
Chocobozzz
f650072985
More robust tests
2021-04-15 13:52:27 +02:00
Chocobozzz
2df6f943b8
Increase ffmpeg tests timeout
2021-04-15 11:31:40 +02:00
Rigel Kent
a073c91270
modify tests to support current behaviour regarding plaintext description
2021-04-13 15:45:09 +02:00
Rigel Kent
84bced652c
render markdown and plainify descriptions on previews
2021-04-13 15:45:09 +02:00
Chocobozzz
13fec08ba3
Ugrade tools dependencies
2021-04-13 09:42:13 +02:00
Chocobozzz
9172345484
Fix banner error in actor json
2021-04-13 09:40:20 +02:00
Chocobozzz
1a578165f9
Fix lint
2021-04-12 17:00:21 +02:00
Chocobozzz
5182473faf
Upgrade server dep'
2021-04-12 16:35:04 +02:00
Chocobozzz
8155db669b
Dissociate frameguard from csp
2021-04-12 15:33:54 +02:00
Chocobozzz
c24822a8fd
Don't save other attributes when set as refreshed
2021-04-12 13:44:58 +02:00
Rigel Kent
fe19f600da
add channel and playlist stats to server stats endpoint ( #3747 )
...
* add channel and playlist stats to nodeinfo
* add tests for active video channels stats
* fix tests for active channel stats
2021-04-12 11:19:07 +02:00
Chocobozzz
8280d0c227
Ensure to install supported plugins
2021-04-12 10:10:48 +02:00
Chocobozzz
78ec174cca
Don't retry failed transaction for refresh
...
It's just a refresh and could lead to some issues in our tests. If there
is a transaction conflict, it means that the same video is already
beeing updated so aborting should be fine
2021-04-09 16:29:38 +02:00
Chocobozzz
21c917b38b
Fix print transcode command script
2021-04-09 15:53:18 +02:00
Chocobozzz
a60696ab18
Add scale filter to documentation
2021-04-09 15:53:18 +02:00
Chocobozzz
3e03b961b8
Add ability for plugins to specify scale filter
2021-04-09 15:53:18 +02:00
Théo Le Calvar
d2351bcfd4
add tests for inputOptions and videoFilters in trancode plugins
2021-04-09 15:53:18 +02:00
Théo Le Calvar
43f7a43ca4
add option for transcode plugins to add video filters and make all options optional
2021-04-09 15:53:18 +02:00
Théo Le Calvar
5fb7cfbac5
add support for inputOptions in trancode plugins
2021-04-09 15:53:18 +02:00
Chocobozzz
22820226e5
Add server plugin helpers
2021-04-09 15:17:43 +02:00
Chocobozzz
bae9303726
Also decache config
2021-04-09 09:37:46 +02:00
John Livingston
09d535ef98
Fix #3940 : unload all children from the plugin module on updates.
2021-04-09 09:32:16 +02:00
John Livingston
4113719209
Tests that show the bug.
2021-04-09 09:32:16 +02:00
Chocobozzz
dc48fdbe68
Merge branch 'release/3.1.0' into develop
2021-04-08 15:16:01 +02:00
Chocobozzz
1afb3c474a
Fix outbox fetch with subtitled videos
2021-04-08 15:04:14 +02:00
Chocobozzz
083328eb27
Remove duplicate captions
2021-04-08 14:45:40 +02:00
Chocobozzz
4c7449d2ad
Fix subtitles import
2021-04-08 14:29:03 +02:00
Chocobozzz
84531547bc
Add size info in db for actor images
2021-04-08 13:38:04 +02:00
Chocobozzz
a0eeb45f14
Update data in DB when regenerate thumbnails
2021-04-08 13:38:04 +02:00
Chocobozzz
20373985c0
Fix static ffmpeg version check
2021-04-08 10:08:11 +02:00
Chocobozzz
02dd4f3c65
Display banner on channel page
2021-04-08 10:07:53 +02:00
Chocobozzz
cdeddff142
Add ability to update the banner
2021-04-08 10:07:53 +02:00
Chocobozzz
282695e699
Add banner migrations
2021-04-08 10:07:53 +02:00
Chocobozzz
213e30ef90
Add banner tests
2021-04-08 10:07:53 +02:00
Chocobozzz
2cb03dc1f4
Add banners support
2021-04-08 10:07:53 +02:00
Chocobozzz
f479685678
Agnostic actor image storage
2021-04-08 10:07:53 +02:00
Chocobozzz
93544419d2
Fix tests
2021-04-08 08:10:13 +02:00
Chocobozzz
b70025bfdc
Remove libxmljs in favour of pure JS implem
2021-04-06 10:25:21 +02:00
Rigel Kent
8e286cdca4
add sort select to my videos, change default sort to -publishedAt
...
fixes #3779
2021-04-06 10:03:19 +02:00
Chocobozzz
eff9f81810
Fix import tests
2021-04-06 09:52:53 +02:00
Chocobozzz
1bbc0270f6
Fix tests
2021-04-05 18:56:24 +02:00
Chocobozzz
4363ce0e3e
Increase thumbnail size on server
2021-04-05 11:44:09 +02:00
Thavarasa Prasanth
4097c6d66c
fix missing title attribute on <iframe> tag suggested for embedding ( #3901 )
...
* title attribute is missing on <iframe> tag suggested for embedding #3861
* fix #3901
* fix: escapeHTML #3901
* fix: playlist title instead of video title #3901
* fix #3901
* assign title directly #3901
2021-03-31 08:32:05 +02:00
Chocobozzz
2e257e36b7
Add client action hooks for pubish pages
2021-03-24 18:18:41 +01:00
Chocobozzz
74a4d53110
Add server hooks for search endpoint
2021-03-24 18:18:41 +01:00
Chocobozzz
eebd9838f0
Add filter hook to forbid embed access
2021-03-24 18:18:41 +01:00
Chocobozzz
4bc45da342
Add hooks support for video download
2021-03-24 18:18:41 +01:00
Chocobozzz
97aeb3cc46
Fix external on logout hook
2021-03-24 18:18:41 +01:00
Chocobozzz
c2bd7a6fcf
Add regenrate thumbnails scripts
2021-03-24 18:18:41 +01:00
Chocobozzz
f43db2f46e
Refactor auth flow
...
Reimplement some node-oauth2-server methods to remove hacky code needed by our external
login workflow
2021-03-24 18:18:41 +01:00
Chocobozzz
cae2df6bdc
Stricter email options typings
2021-03-24 18:18:41 +01:00
Chocobozzz
32a18cbf33
Add new plugin/peertube version notifs
2021-03-24 18:18:41 +01:00
Chocobozzz
829523cfa5
Reduce bundle size using a const enum
2021-03-24 18:18:40 +01:00
Chocobozzz
ae71acca14
Check ffmepg version on startup
2021-03-24 18:18:40 +01:00
Chocobozzz
e7053b1d9d
Fix AP security tests
2021-03-24 18:18:40 +01:00
Chocobozzz
266131e0ca
Don't skip all threads on AP fetcher error
2021-03-24 18:18:40 +01:00
Chocobozzz
e5abb482c3
Fix index search
2021-03-24 18:18:40 +01:00
Chocobozzz
43b513660b
Fix AP flag validator
2021-03-24 18:18:40 +01:00
Chocobozzz
5a2c0f0c99
Bigger video thumbnails for feeds
2021-03-24 18:18:40 +01:00
Chocobozzz
b5c361089f
Fix 404 AP status codes
2021-03-24 18:18:40 +01:00
Chocobozzz
b329abc2f0
Fix request body limit
2021-03-24 18:18:40 +01:00
Chocobozzz
18b24b2dc5
Add jobs tag to logger
2021-03-24 18:18:40 +01:00
Chocobozzz
db4b15f21f
Use got instead of request
2021-03-24 18:18:40 +01:00
Chocobozzz
67f87b66fe
Refactor a little bit AP validators
2021-03-24 18:18:40 +01:00
Chocobozzz
452b3bea08
Introduce tags to the logger
...
That could help to filter unneeded logs and/or select particular
components
2021-03-24 18:18:40 +01:00
Chocobozzz
61fd98341f
Fix mention notification with deleted comment
2021-03-22 09:49:23 +01:00
Chocobozzz
42ec411bf8
Fix abuse tests
2021-03-09 16:10:52 +01:00
Chocobozzz
a2eba50b8e
Fix moderation notification
2021-03-04 16:16:37 +01:00
Chocobozzz
dbb15e371a
Increase timeouts
2021-03-04 09:40:17 +01:00
Chocobozzz
fbd51e69f2
Upgrade server dependencies
2021-03-03 16:14:32 +01:00
Chocobozzz
5a22296bdb
Fix broken hot algorithm
2021-03-03 13:52:58 +01:00
Chocobozzz
534556052e
Optimize views sort sql query
2021-03-03 11:24:16 +01:00
Chocobozzz
6c9c3b7b14
Fix emptying video tags
2021-03-03 11:03:30 +01:00
Chocobozzz
1ef447bd83
Don't create another uneeded preview placeholder
2021-03-03 11:02:34 +01:00
Chocobozzz
cd2c3dcdc4
Remove unnecessary transcoding job error
2021-03-03 10:23:05 +01:00
Chocobozzz
dcd75f786c
Rename request timeout
2021-03-03 10:10:55 +01:00
Chocobozzz
67bd004d84
Increase broadcast concurrency
2021-03-03 10:09:34 +01:00
Chocobozzz
74d249bc13
Add ability to cleanup remote AP interactions
2021-03-03 10:08:08 +01:00
Chocobozzz
095e225804
Add a test for refreshing remote keys
2021-02-26 14:44:34 +01:00
Chocobozzz
8795d6f254
Fix broken local actors
...
Some channels can't federate because they don't have public/private
keys, maybe because the generation failed for various reasons
2021-02-26 14:22:25 +01:00
Chocobozzz
92315d979c
More robust channel change federation
2021-02-26 11:50:18 +01:00
Chocobozzz
23ac334389
Increase jobs request timeout
2021-02-26 10:48:12 +01:00
Chocobozzz
543442a3be
Add more AP stats to stats endpoint
...
It will help to understand if the federation correctly works or not
2021-02-26 10:28:11 +01:00
Chocobozzz
494df94036
Fix abuse crash on deleted video
2021-02-26 09:28:50 +01:00
Chocobozzz
88cfa3e8fa
Fix preview upload with capitalized ext
2021-02-26 09:16:31 +01:00
Chocobozzz
a77c7327a2
Fix process abuse transactions
2021-02-25 15:55:31 +01:00
Chocobozzz
e7812bf091
Add refresh_token_expires_in to oauth res
2021-02-25 15:25:48 +01:00
Chocobozzz
031ea8efed
Use named chunk for embed on analyze
2021-02-25 15:01:29 +01:00
Chocobozzz
d61893f723
Async torrent creation
2021-02-25 15:01:07 +01:00
Chocobozzz
d7df188f23
Fix separate SQL query for video get
2021-02-25 11:18:11 +01:00
Chocobozzz
0221f8c9b1
Trim video name also on server
2021-02-25 10:01:33 +01:00
Chocobozzz
e072fb1e16
Add m4a support
2021-02-25 09:14:24 +01:00
Chocobozzz
9556ce48e7
Fix async issues with channels list
2021-02-25 09:09:41 +01:00
Chocobozzz
70243d7a35
Correctly wait transcoding before federating
2021-02-22 10:35:37 +01:00
Chocobozzz
15bedeebd7
Fix loading things twice on trending page
2021-02-22 10:35:37 +01:00
Chocobozzz
94d721efdc
Fix stats tests
2021-02-19 16:29:00 +01:00
Chocobozzz
d7764e2eb7
Fix import script when using the search index
2021-02-19 15:04:58 +01:00
Chocobozzz
4cbdcf4409
Fix sending accept to old follows
2021-02-19 13:55:00 +01:00
Chocobozzz
300cb723eb
Fix tests
2021-02-19 11:27:38 +01:00
Chocobozzz
2a021e6cb6
Fix thread replies API response
2021-02-19 10:52:31 +01:00
Chocobozzz
285981f4dd
Optimize rate endpoint
2021-02-19 10:26:58 +01:00
Chocobozzz
9d6b9d10ef
Fix video comments display with deleted comments
2021-02-19 10:06:52 +01:00
Chocobozzz
fae6e4da8f
Try to speed up server tests
2021-02-19 09:36:50 +01:00
Chocobozzz
e33933e44c
Fix latest migrations
...
We made an historical mistake: we have a unique key on videoId,
resolution AND fps. But the filenames and torrent filenames do not have
fps in their name
Remove these duplicate entries
2021-02-19 08:41:32 +01:00
Chocobozzz
53c06121a4
Fix import tests
2021-02-18 14:08:16 +01:00
Chocobozzz
8efc27bf14
Cleanup
2021-02-18 13:38:09 +01:00
Chocobozzz
f66db4d5c8
Fix feeds
2021-02-18 13:38:09 +01:00
Chocobozzz
b3d5cb92b1
Add ability to update torrents cache in client
2021-02-18 13:38:09 +01:00
Chocobozzz
d9a2a03196
Don't guess remote tracker URL
2021-02-18 13:38:09 +01:00
Chocobozzz
2451916e45
Add video files migration
2021-02-18 13:38:09 +01:00
Chocobozzz
90a8bd305d
Dissociate video file names and video uuid
2021-02-18 13:38:09 +01:00
Chocobozzz
1664bc60eb
Optimize remote image processing
2021-02-16 10:36:44 +01:00
Chocobozzz
374b725df5
Optimize remote thumbnail processing
2021-02-16 10:36:44 +01:00
Chocobozzz
a35a22797c
Remove previous thumbnail if needed
2021-02-16 10:36:44 +01:00
Chocobozzz
6302d599cd
Generate a name for caption files
2021-02-16 10:36:44 +01:00
Chocobozzz
a8b1b40485
Generate a name for thumbnails
...
Allows aggressive caching
2021-02-16 10:36:44 +01:00
Chocobozzz
0472d474fd
Remove deprecated static routes
2021-02-16 10:36:44 +01:00
Chocobozzz
c15aff666d
Remove old code
...
We consider Dislike as a classic activity now
2021-02-12 14:53:07 +01:00
Chocobozzz
e3b4c084cd
Guess if we need to generate the thumbnail for imports
2021-02-12 09:37:01 +01:00
Chocobozzz
ff9112ad21
Increase logs test timeout
2021-02-11 14:34:55 +01:00
Chocobozzz
6559da2821
Allow plugins to load a video by id
2021-02-11 10:23:52 +01:00
Chocobozzz
44d1f7f2e8
Painfully debug concurrent import jobs
2021-02-09 11:46:30 +01:00
Chocobozzz
3933a127d2
Ensure we don't receive things from local actors
2021-02-08 16:06:32 +01:00
Chocobozzz
0c39df2536
Increase test timeout
2021-02-08 15:50:10 +01:00
Chocobozzz
9129b7694d
Allow to specify transcoding and import jobs concurrency
2021-02-08 15:38:45 +01:00
Chocobozzz
81b46cbc34
Optimize videos list API endpoint
2021-02-08 15:38:45 +01:00
Chocobozzz
9162476fe9
Support NodeJS 14 and 15, deprecate Node 10
2021-02-04 14:31:18 +01:00
Rigel Kent
3d4e112d16
add best trending strategy based on Reddit's best
...
inspired from https://www.reddit.com/r/changelog/comments/7spgg0/best_is_the_new_hotness/
this implementation only adds freshness, and doesn't personalize based
on subscribed communities yet.
2021-02-04 09:04:47 +01:00
Chocobozzz
f6267b6101
Upgrade tools dependencies
2021-02-03 13:49:56 +01:00
Chocobozzz
2e1e4af03b
Fix get video from redudancy
2021-02-03 09:57:47 +01:00
Chocobozzz
ba5a8d89bb
Update server dependencies
2021-02-03 09:45:08 +01:00
Chocobozzz
69eddafb17
Fix HLS generation after import script
2021-02-02 14:00:46 +01:00
Chocobozzz
aaedadd538
Transcode HLS playlists in a tmp directory
2021-02-02 11:50:29 +01:00
Chocobozzz
d8ba492119
Fix broken HLS playback with some audio streams
2021-02-02 11:19:46 +01:00
Chocobozzz
657bba2b29
Fix hls tests
2021-02-02 10:07:46 +01:00
Chocobozzz
40930fda86
Transcode audio uploads to lower resolutions
...
Better consistency
2021-02-02 09:45:42 +01:00
Chocobozzz
89613cb444
Purge entire video from redundancy
2021-02-02 08:50:30 +01:00
Chocobozzz
5e8dd6e08a
Fix lint
2021-02-01 16:05:22 +01:00
Chocobozzz
6d989edc66
Add ability to update plugin auth
2021-02-01 15:39:13 +01:00
Chocobozzz
6949a1a111
Fix tests
2021-02-01 15:03:28 +01:00
Chocobozzz
56df7815b5
Fix URI search config update
2021-02-01 11:30:01 +01:00
Chocobozzz
7e3592d70b
Correctly remove torrents with HLS only
2021-02-01 11:23:12 +01:00
Chocobozzz
7448551fe5
Fix redundancy with HLS only files
2021-02-01 11:23:12 +01:00
Chocobozzz
33c7131be5
Check banned status for external auths
2021-02-01 11:23:11 +01:00
Chocobozzz
7519c4a27b
Fix tests
2021-01-29 15:58:01 +01:00
Chocobozzz
a8537c622e
Use veryfast preset for default transcoding profile
2021-01-29 15:31:31 +01:00
Chocobozzz
789951460b
Try to support other codecs
2021-01-29 14:05:41 +01:00
Chocobozzz
ffd970faf9
Don't quick transcode if using a custom profile
2021-01-29 14:05:41 +01:00
Chocobozzz
2498aaead1
Add plugin transcoding profile guide
2021-01-29 14:05:41 +01:00
Chocobozzz
b3eafc5fc5
Reduce transcoding overhead by disabling resolutions
2021-01-29 08:44:36 +01:00
Chocobozzz
80ac2e5548
Support transcoding profile in client admin
2021-01-28 16:10:09 +01:00