Commit Graph

3631 Commits

Author SHA1 Message Date
Chocobozzz
e0f49a19ea
Reduce db retry log on failure 2022-07-13 10:59:55 +02:00
Chocobozzz
39d117a47d
Prevent error logs when aborting a stream 2022-07-13 10:57:04 +02:00
Chocobozzz
14f7ad399f
Add more error logs 2022-07-13 10:17:47 +02:00
Chocobozzz
3b0525106d
Prevent duplicated HLS playlist on transcoding 2022-07-13 10:15:41 +02:00
Chocobozzz
b0f4204266
Relax log level
401 is expected when the token has expired
federation issues are not very important
2022-07-13 10:04:22 +02:00
Chocobozzz
3d401c1b3d
Correctly set mp3 codec string in hls playlist 2022-07-13 08:42:07 +02:00
Chocobozzz
eaaf316fe1
Don't display errors when SMTP is not configured
info is enough
2022-07-12 16:32:05 +02:00
Chocobozzz
46f7cd6837
Fix handling broken lives
We want the latest session that may already be finished
2022-07-12 16:30:59 +02:00
Chocobozzz
4ddb53f65d
Auto retry video state db query on failure 2022-07-12 16:25:21 +02:00
Chocobozzz
f686f5ed0a
Fix audio file merge
Image streams are considered as video streams by ffmpeg
Filter out image codec name
2022-07-12 16:00:15 +02:00
Chocobozzz
5d7cb63ede
Add compat with openssl 3 2022-07-12 12:08:12 +02:00
Chocobozzz
a49407524f
Prevent invalid watch sections 2022-07-12 09:51:21 +02:00
Chocobozzz
f614635d6a
Fix unknown infohash setting 2022-07-11 14:37:58 +02:00
Chocobozzz
6504b3bfd9
Fix videos stats 2022-07-08 11:51:41 +02:00
Chocobozzz
17d85f48b5
Fix unknown infohash skip log 2022-07-06 16:19:08 +02:00
Chocobozzz
9452d4fd33
/!\ Use a dedicated config file for development
It means you have to replace NODE_ENV=test to NODE_ENV=dev if you use it
npm run dev:* commands are already updated
2022-07-06 16:12:17 +02:00
Chocobozzz
630d0a1bf5
Introduce experimental telemetry 2022-07-06 15:13:55 +02:00
Chocobozzz
15b43b214e
Increase test timeout 2022-07-04 13:34:03 +02:00
Chocobozzz
cd25344f74
Reduce lazy static error logs 2022-06-30 09:25:17 +02:00
Chocobozzz
a4152bed14
Add ability to disable unknown infohash log 2022-06-30 09:13:11 +02:00
Chocobozzz
031bbcd25d
Upgrade oauth2-server 2022-06-28 15:32:57 +02:00
Chocobozzz
4fae2b1f30
Rename video full loading 2022-06-28 15:06:15 +02:00
Chocobozzz
daa0226b0a
Lazy load piscina 2022-06-28 09:09:03 +02:00
Chocobozzz
ccd62a4502
Fix workers constants 2022-06-27 15:56:57 +02:00
Chocobozzz
3a54605d4e
Process images in a dedicated worker 2022-06-27 11:53:12 +02:00
Chocobozzz
e722fb5923
Merge branch 'release/4.2.0' into develop 2022-06-27 10:36:31 +02:00
Chocobozzz
41e74ec9cd
Fix broken feeds with published live 2022-06-27 10:36:16 +02:00
Chocobozzz
7a5c3d77fe
Fix feed with live stream 2022-06-27 10:20:49 +02:00
Chocobozzz
7fb45bdacb
Optimize feeds query 2022-06-27 09:34:26 +02:00
Chocobozzz
c53853ca1b
Introduce worker threads to process remote images 2022-06-24 16:31:48 +02:00
Chocobozzz
978489b64c
Add toki pona in video languages 2022-06-24 11:59:12 +02:00
Chocobozzz
4e56f0fff1
Merge branch 'release/4.2.0' into develop 2022-06-24 10:33:26 +02:00
Chocobozzz
c3fb12b31f
Fix lint 2022-06-24 10:13:09 +02:00
Chocobozzz
92083e4228
Fix removed sha segments on fast restream 2022-06-24 09:57:55 +02:00
Chocobozzz
b6e2b5df73
Fix removed sha segments on fast restream 2022-06-24 09:35:30 +02:00
Chocobozzz
371d4c6063
Merge branch 'release/4.2.0' into develop 2022-06-23 11:01:55 +02:00
Chocobozzz
f2623febd8
Fix duplicated tags error 2022-06-23 11:01:44 +02:00
Chocobozzz
64324ac646
Merge branch 'release/4.2.0' into develop 2022-06-23 10:53:16 +02:00
Chocobozzz
20886f4bf9
Fix search index tests 2022-06-23 10:31:17 +02:00
Chocobozzz
53023be33a
Fix fast restream in saved permanent live 2022-06-23 10:30:48 +02:00
Chocobozzz
2c2befaaca
Fix video right check 2022-06-22 14:03:50 +02:00
Chocobozzz
ff9d43f62a
Refactor video rights checker 2022-06-22 10:25:31 +02:00
kontrollanten
2e401e8575
store uploaded video filename (#4885)
* store uploaded video filename

closes #4731

* dont crash if videos channel exist

* migration: use raw query

* video source: fixes after code review

* cleanup

* bump migration

* updates after code review

* refactor: use checkUserCanManageVideo

* videoSource: add openapi doc

* test(check-params/video-source): fix timeout

* Styling

* Correctly set original filename as source

Co-authored-by: Chocobozzz <me@florianbigard.com>
2022-06-21 15:31:25 +02:00
Durgaraj Karki
c8bac5396c
fixes video not played from defined parameters in embed service (#5023)
* fixes video not played from defined parameters in embed service

* adds parameters to the oembed services

* Styling

Co-authored-by: Chocobozzz <me@florianbigard.com>
2022-06-21 14:38:15 +02:00
Chocobozzz
a91e9beb3f
Update server dependencies 2022-06-21 11:23:32 +02:00
Chocobozzz
2b621ac0eb
Merge branch 'release/4.2.0' into develop 2022-06-21 09:03:20 +02:00
Chocobozzz
8633ad22a7
Fix AP element with deleted video federation 2022-06-21 08:59:46 +02:00
Chocobozzz
0f07c28951
Correctly handle unknown remote actor image size 2022-06-20 11:48:40 +02:00
Chocobozzz
714e33a742
Merge branch 'release/4.2.0' into develop 2022-06-20 10:23:19 +02:00
Chocobozzz
f53e1fcd99
Relax views federation 2022-06-20 10:04:52 +02:00
Chocobozzz
5e0dbb3e52
Fix users stats 2022-06-17 16:23:13 +02:00
Chocobozzz
d3976db269
Fix searching in blocklist 2022-06-17 16:06:58 +02:00
Chocobozzz
aa2ce188d1
Optimize view endpoint 2022-06-17 14:56:16 +02:00
Chocobozzz
fba911e2c8
Merge branch 'release/4.2.0' into develop 2022-06-17 14:17:06 +02:00
Chocobozzz
f27b7a750f
Send views in a dedicated queue 2022-06-17 14:08:13 +02:00
Chocobozzz
3396e65345
Optimize broadcast job creation 2022-06-17 11:55:03 +02:00
Chocobozzz
42e6a7a747
Increase max watch sections 2022-06-17 09:04:45 +02:00
Chocobozzz
68d6e57870
Fix transaction when processing local viewer 2022-06-17 09:03:28 +02:00
Chocobozzz
e69d1ed5cd
Increase test timeout 2022-06-17 08:01:58 +02:00
Chocobozzz
ef2b5520f9
Increase test timeout 2022-06-16 16:01:37 +02:00
Chocobozzz
3256771725
More robust move to object storage job failure 2022-06-16 14:29:53 +02:00
Chocobozzz
0c9a835466
Merge branch 'release/4.2.0' into develop 2022-06-16 14:11:31 +02:00
Chocobozzz
cdd838168d
Fix live ending job that breaks new live session 2022-06-16 13:39:57 +02:00
Chocobozzz
c371016de2
More robust duration parsing 2022-06-14 08:47:26 +02:00
Chocobozzz
b89b0bfce9
Clearer video creation from API regarding rates 2022-06-08 15:42:09 +02:00
Chocobozzz
1a99dc647f
Fix search index tests 2022-06-08 14:58:34 +02:00
Chocobozzz
e435cf44c0
Fix abuse tests 2022-06-08 13:40:40 +02:00
luz paz
7a4fd56ccd Fix various typos
Found via `codespell -q 3 -S ./CREDITS.md,./CHANGELOG.md,./client/src/locale,./yarn.lock,./client/yarn.lock -L doubleclick,followings,nd,ot,ro,serie,splitted,tread,truthy`
2022-06-07 16:41:21 +02:00
Chocobozzz
6d9ed0b6cb
Merge branch 'release/4.2.0' into develop 2022-06-07 09:59:15 +02:00
Chocobozzz
4d52690134
Fix schema.org context 2022-06-07 08:47:41 +02:00
Chocobozzz
e815f566f3
Remove unused function 2022-06-03 16:28:20 +02:00
Chocobozzz
38f57175e7
Update tsconfig 2022-06-03 16:17:28 +02:00
Chocobozzz
5d2fd66ab4
Merge branch 'release/4.2.0' into develop 2022-06-03 15:14:16 +02:00
Chocobozzz
ceecd871a4
Fix search index tests 2022-06-03 15:14:12 +02:00
Chocobozzz
e771ff815d
Merge branch 'release/4.2.0' into develop 2022-06-03 14:32:44 +02:00
Chocobozzz
62f53731cf
Fix invalid download filename 2022-06-03 14:28:43 +02:00
Chocobozzz
010382b603
Completely remove best default trending algorithm 2022-06-03 14:04:52 +02:00
Florian CUNY
c6f8ca4d65
Added "total views" in the my channels list (#5007)
* Added "total views" in the my channels list

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

* Fix lint

* applied suggested change

* updated openAPI spec for the use "withStats" when getting video channels

* applied code change

* removed GROUP BY in query

* Fixed test
2022-05-31 16:01:11 +02:00
Chocobozzz
d3f4689bde
Add live autostart/messages in embed 2022-05-31 14:24:07 +02:00
Chocobozzz
e5a781ec25
Bypass rate limits for admins and moderators 2022-05-30 11:39:44 +02:00
Chocobozzz
ab623c0e0b
Merge branch 'release/4.2.0' into develop 2022-05-25 15:22:28 +02:00
Chocobozzz
c8fdfab0e3
More robust live ending job 2022-05-25 15:18:29 +02:00
Chocobozzz
5333788c08
Fix saving permanent live replay on quick restream 2022-05-25 14:54:16 +02:00
Chocobozzz
b34ee7fa5f
Cleanup muxing session method options 2022-05-25 11:08:12 +02:00
Chocobozzz
a220b84b0e
Fix avatars in notifications 2022-05-25 09:37:30 +02:00
Chocobozzz
600befbd61
Check feeds config at startup 2022-05-24 15:57:02 +02:00
Chocobozzz
db9d882c25
Add ability to set default feed items count 2022-05-24 15:56:23 +02:00
Chocobozzz
87a0cac618
Improve admin users list table
* Fix last login sort with null values
 * Remember last selected columns
 * Display last login date by default
2022-05-24 15:29:17 +02:00
Chocobozzz
3eba7ab815
Add ability to set a custom video import timeout 2022-05-24 14:55:07 +02:00
Chocobozzz
3cb60ca19e
Increase test timeout 2022-05-24 13:38:01 +02:00
Chocobozzz
3329325a64
Fix email action button label for reports 2022-05-24 09:19:03 +02:00
Chocobozzz
a65858746c
Fix my videos total counter 2022-05-24 09:16:42 +02:00
Chocobozzz
10178c47d0
Increase test timeout 2022-05-20 17:12:00 +02:00
Chocobozzz
6b3aa06804
Correctly fix import tests 2022-05-20 08:33:49 +02:00
Chocobozzz
8d57e72875
Increase timeouts 2022-05-19 08:27:04 +02:00
Chocobozzz
cf0dd18abc
Increase timeouts 2022-05-18 15:16:34 +02:00
Chocobozzz
941d28cc7f
Reduce error logs 2022-05-18 12:01:02 +02:00
Chocobozzz
305ec38496
Add total viewers overall stat 2022-05-18 09:18:39 +02:00
Chocobozzz
0cc253c971
Fix import tests 2022-05-18 08:44:20 +02:00
Chocobozzz
ca3d5912e1
Add use proxy for s3 (#4973)
* Fix object storage to be accessible via proxy

* fix lint

* Use hpagent

* Fix lint

* Fix PR

Co-authored-by: noellabo <noel.yoshiba@gmail.com>
2022-05-09 11:49:25 +02:00
Chocobozzz
f82ea670d8
Fix collection type 2022-05-09 09:51:11 +02:00
Chocobozzz
543affef08
Don't sign (created) when using rsa-sha256 2022-05-09 09:43:36 +02:00
Chocobozzz
e08ec7a723
Handle HTTP signature draft 11 2022-05-06 15:13:59 +02:00
Chocobozzz
67ad83d0fa
Fix stats time metric 2022-05-06 14:49:42 +02:00
Chocobozzz
f40712abbb
Add ability to filter overall video stats by date 2022-05-06 14:23:02 +02:00
Chocobozzz
49f0468d44
Add filter by start/end date overall stats in api 2022-05-05 14:13:14 +02:00
Chocobozzz
f18a060a83
Remove comments, rates and views from stats
It prevent us to apply date filters
2022-05-05 13:47:51 +02:00
Chocobozzz
bae616273d
Convert followers/following in raw SQL queries
Prevent weird bug in SQL generation
2022-05-05 10:29:35 +02:00
Chocobozzz
d493e2d4bf
Fix lint 2022-05-04 16:13:31 +02:00
Chocobozzz
9a82ce2455
Fix quota inconstistencies with lives 2022-05-04 10:32:49 +02:00
Chocobozzz
9295c68b74
Fix live constraints tests 2022-05-03 16:12:10 +02:00
Chocobozzz
26e3e98ff0
Support live session in server 2022-05-03 14:49:15 +02:00
Chocobozzz
86c5229b4d
Save replay of permanent live in client 2022-05-03 08:32:20 +02:00
Chocobozzz
98ebfa3950
Fix getting live by anonymous user 2022-05-03 08:32:20 +02:00
Chocobozzz
c74cd9feab
Fix removing directory content 2022-05-03 08:23:59 +02:00
Chocobozzz
21d70a7302
Support readonly tmp directory 2022-05-03 08:18:48 +02:00
Chocobozzz
b3d9dedcc3
Allow oembed to fetch unlisted videos 2022-05-02 15:14:23 +02:00
Chocobozzz
d05af385f4
Ensure rtmp public_hostname is set 2022-05-02 14:38:37 +02:00
Chocobozzz
cfbe6be516
Add ability to provide rtmp listening hostname 2022-05-02 14:32:12 +02:00
Chocobozzz
4b3145a7f8
Typo 2022-05-02 11:13:41 +02:00
Chocobozzz
40fa53ac99
Increase test timeout 2022-05-02 10:50:09 +02:00
Chocobozzz
5d9b867ed3
Fix lint 2022-04-22 10:54:05 +02:00
Chocobozzz
961cbe4269
Fix getting live by anonymous user 2022-04-22 09:50:20 +02:00
Chocobozzz
4ec52d04dc
Add ability to save replay of permanent lives 2022-04-21 11:47:57 +02:00
Chocobozzz
4b7a20d88b
Add missing video mime types 2022-04-20 10:23:07 +02:00
Chocobozzz
ffcfb32b2f
Add program date time to live playlist 2022-04-19 16:24:49 +02:00
kontrollanten
156cdbac22
object-storage: @aws-sdk/lib-storage for multipart (#4903)
* object-storage: @aws-sdk/lib-storage for multipart

* gitignore: add .DS_Store

* test(object-storage): remove only

* test(object-storage/multipart): generate video

* fix lint issue

* test(obj-storage/video): ensure file size

* Styling

Co-authored-by: Chocobozzz <me@florianbigard.com>
2022-04-19 15:22:18 +02:00
Chocobozzz
33ac85bf61
Test digest check for resumable upload 2022-04-19 14:25:33 +02:00
Chocobozzz
77d0ae7b20
Fix 2 hours limit on uploads 2022-04-19 11:44:03 +02:00
Chocobozzz
f692fc8d6f
Support uploads of videos with unknown duration 2022-04-19 11:20:10 +02:00
Chocobozzz
e85a36cb96
Fix email text containing links 2022-04-15 15:17:32 +02:00
Chocobozzz
3c7ddd7daa
Fix email links displayed twice as text 2022-04-15 14:19:07 +02:00
Chocobozzz
389444e048
Increase test timeout 2022-04-15 11:38:01 +02:00
Chocobozzz
3eda9b775a Support interactive video stats graph 2022-04-15 09:49:35 +02:00
Chocobozzz
901bcf5c18 Add ability to set start/end date to timeserie 2022-04-15 09:49:35 +02:00
Chocobozzz
ac907dc7c1 Improve viewer counter
More precise, avoid weird decrease, reuse an id to federate viewers
2022-04-15 09:49:35 +02:00
Chocobozzz
dfbcefc20d Improve views/viewers documentation 2022-04-15 09:49:35 +02:00
Chocobozzz
d74bb0647c Fix videos history tests 2022-04-15 09:49:35 +02:00
Chocobozzz
b211106695 Support video views/viewers stats in server
* Add "currentTime" and "event" body params to view endpoint
 * Merge watching and view endpoints
 * Introduce WatchAction AP activity
 * Add tables to store viewer information of local videos
 * Add endpoints to fetch video views/viewers stats of local videos
 * Refactor views/viewers handlers
 * Support "views" and "viewers" counters for both VOD and live videos
2022-04-15 09:49:35 +02:00
Chocobozzz
69d48ee30c
Don't clean mastodon rates
Workaround of https://github.com/mastodon/mastodon/issues/13571
2022-04-15 09:17:16 +02:00
Chocobozzz
1159c4a600
Fix lint 2022-04-08 16:47:00 +02:00
Chocobozzz
7ca0363f75
Remove duplicated test 2022-04-08 16:30:22 +02:00
Chocobozzz
c6d20c84a7
Disallow unlisted video indexation 2022-04-08 16:28:14 +02:00
Chocobozzz
a219c9100b
Refactor AP context builder 2022-03-24 09:40:46 +01:00
Chocobozzz
7e98a7df7d
Remove activitypub helper
Put functions in lib/activitypub instead
2022-03-23 14:24:50 +01:00
Chocobozzz
851e808dc9
Fix angular build 2022-03-22 18:27:29 +01:00
Chocobozzz
92e66e04f7
Rename studio to editor 2022-03-22 17:24:32 +01:00
Chocobozzz
1808a1f8e4
Add video edition finished notification 2022-03-22 16:25:14 +01:00
Chocobozzz
348c2ce3ff
Remove old migration files 2022-03-21 14:54:29 +01:00
Chocobozzz
f4110e0a72
Update server dependencies 2022-03-21 14:20:47 +01:00
Chocobozzz
11d70211af
Fix channels creation creation limit count 2022-03-21 09:27:49 +01:00
Chocobozzz
43fc899a10
Fix channels list count 2022-03-21 09:26:48 +01:00
Chocobozzz
88f1692781
Ensure bin dir exists before dl youtube-dl 2022-03-21 08:34:45 +01:00
Chocobozzz
57e4e1c1a9
Don't store remote rates of remote videos
In the future we'll stop to expose all available rates to improve users
privacy
2022-03-18 11:21:50 +01:00
Chocobozzz
db1ccd05d3
Fix CI 2022-03-17 10:50:26 +01:00
Chocobozzz
2769876fb2
Fix client html cache on theme update 2022-03-17 09:09:06 +01:00
Chocobozzz
52fe4b671a
Fix torrent creation 2022-03-16 18:35:05 +01:00
Chocobozzz
f012319a64
Process video torrents in order
Prevent update before video torrent generation for example
2022-03-16 15:45:58 +01:00
Doug Luce
f9915efa5e Make object storage ACL configurable
Override this value to allow uploads to non-public S3
buckets. Otherwise "AccessDenied: Access Denied" errors will end up in
the log.

Fixes #4850
2022-03-16 10:58:01 +01:00
kontrollanten
60233e90d2
add client.videos.upload.maxChunkSize config (#4857)
* add client.videos.upload.maxChunkSize config

* updates after review

* remove maxChunkSize from custom-config
2022-03-16 10:57:36 +01:00
Chocobozzz
74220dba9d
Fix username/password CLI options 2022-03-15 09:21:05 +01:00
Chocobozzz
f443a74649 Add latency setting support 2022-03-09 09:23:10 +01:00
kontrollanten
2c102aac13
Display avatar in video miniatures (#4823)
* show avatar in video miniatures

closes #4040

* fix: videos for api, include avatars

* add config for display video miniature avatar

* Revert "fix: videos for api, include avatars"

This reverts commit 5520a3eda6.

* video-min: set display avatar to false as default

* remove empty line

* rename display_avatar > display_author_avatar

* fix renaming displayAvatar > displayAuthorAvatar
2022-03-08 13:39:27 +01:00
Chocobozzz
cc45cc9ac1
Remove uneeded memoize 2022-03-08 11:39:56 +01:00
Chocobozzz
7b51ede977
Merge branch 'release/4.1.0' into develop 2022-03-08 11:28:32 +01:00
Chocobozzz
f6f48301a9
More robust transcoding checker 2022-03-08 09:42:22 +01:00
Chocobozzz
c47c3bcb0a
Fix multiple servers tests 2022-03-08 09:18:43 +01:00
Chocobozzz
4c6d99e5b6
Fix channel tests 2022-03-08 08:50:38 +01:00
Chocobozzz
0c058f256a
Remove exif tags when processing images 2022-03-07 17:23:12 +01:00
Chocobozzz
41878d3397
Remove unnecessary comment 2022-03-07 11:52:29 +01:00
Chocobozzz
2f19481147
Optimize markdown renderer 2022-03-07 11:48:53 +01:00
Chocobozzz
ab4b897499
Merge branch 'release/4.1.0' into develop 2022-03-04 17:01:02 +01:00
Chocobozzz
907ba7e270
Fix live update error 2022-03-04 17:00:53 +01:00
Chocobozzz
d3d3deaa7a
Refactor user build and express file middlewares 2022-03-04 10:57:36 +01:00
Chocobozzz
156c44c8f6
Refactor a little bit raw sql builders 2022-03-03 10:23:44 +01:00
Chocobozzz
135c38bbc5
Fix search index tests 2022-03-02 08:40:57 +01:00
Chocobozzz
90fbb78498
Node 12 is not supported anymore 2022-03-01 14:08:03 +01:00
Chocobozzz
7bde625050
Fill width of local avatars 2022-03-01 13:37:40 +01:00
kontrollanten
8d07888728
Possibility to set custom RTMP/RTMPS hostname (#4811)
* live: set custom RTMP/RTMPS hostname

closes #4786

* dont use webserver.hostname as default

* check that rtmp/s.hostname is set
2022-03-01 13:37:34 +01:00
Chocobozzz
b5c00b9b67
Fix lint 2022-03-01 08:33:23 +01:00
Chocobozzz
242f52253e
Fix getting avatars in videos list 2022-03-01 08:32:49 +01:00
Chocobozzz
f1c70a8666
Remove unnecessary code 2022-02-28 16:04:31 +01:00
Chocobozzz
95faf1eaff
Create another test suite for transcoding jobs 2022-02-28 16:02:08 +01:00
Chocobozzz
f7ac03ee94
Fix client html performance regression 2022-02-28 15:13:56 +01:00
kontrollanten
c5ca7e1e0c add filter:api.video-playlist.videos.list.* hooks
closes #4775
2022-02-28 10:56:37 +01:00
Chocobozzz
c729caf6cc Add basic video editor support 2022-02-28 10:42:19 +01:00
kontrollanten
d0800f7661
Implement avatar miniatures (#4639)
* client: remove unused file

* refactor(client/my-actor-avatar): size from input

Read size from component input instead of scss, to make it possible to
use smaller avatar images when implemented.

* implement avatar miniatures

close #4560

* fix(test): max file size

* fix(search-index): normalize res acc to avatarMini

* refactor avatars to an array

* client/search: resize channel avatar to 120

* refactor(client/videos): remove unused function

* client(actor-avatar): set default size

* fix tests and avatars full result

When findOne is used only an array containting one avatar is returned.

* update migration version and version notations

* server/search: harmonize normalizing

* Cleanup avatar miniature PR

Co-authored-by: Chocobozzz <me@florianbigard.com>
2022-02-28 08:34:43 +01:00
Chocobozzz
8296984de4
Fix max buffer size for youtube-dl 2022-02-22 15:03:13 +01:00
Chocobozzz
5301e7762b
Fix video file storage column consistency 2022-02-22 14:49:23 +01:00
Chocobozzz
6ea9295b8f
Check video privacy when creating comments/rates 2022-02-22 14:16:51 +01:00
Chocobozzz
bdb54e6f8c
Use local URL for feed guid 2022-02-22 11:16:29 +01:00
Chocobozzz
ebee0c0427
Increase test timeout 2022-02-10 10:43:42 +01:00
Chocobozzz
9d8ef212ff
Fix broken dep 2022-02-09 17:48:15 +01:00
Chocobozzz
d4727de48b
Upgrade tools dependencies 2022-02-09 13:51:26 +01:00
Chocobozzz
c9f27d9881
Update server dependencies 2022-02-09 13:51:24 +01:00
Chocobozzz
350b866fdd
Fix CLI build 2022-02-09 13:37:04 +01:00
Chocobozzz
400ed2ab41
Add log on user plugin auth conflict 2022-02-09 11:54:18 +01:00
Chocobozzz
7630e1c893
Fix import timeout inconsistency 2022-02-09 11:54:18 +01:00
Chocobozzz
474542d7ac
Add additional checks when importing a video 2022-02-09 11:54:18 +01:00
Chocobozzz
f33e515991
Correctly check import target URL IP 2022-02-07 11:21:25 +01:00
Chocobozzz
4393b2552c
Move to peertube feed fork 2022-02-07 09:38:24 +01:00
Chocobozzz
c68e2b2d22
Fix plaintext markdown converter 2022-02-04 10:38:32 +01:00
Chocobozzz
6e0ee5a53a
Update changelog 2022-02-04 09:01:40 +01:00
Chocobozzz
cd8f207a8e
Case insensitive search on tags 2022-02-03 10:24:48 +01:00
Chocobozzz
b25fdc73fd
Add fixme info 2022-02-02 09:20:40 +01:00
Chocobozzz
a2caee9f51
Fix HLS re transcoding with object storage enabled 2022-02-01 14:19:44 +01:00
Chocobozzz
0f11ec8dd3
Prevent HLS transcoding after webtorrent transcoding 2022-02-01 11:27:38 +01:00
Chocobozzz
228d8e8e47
Convert markdown to html/plain text for feeds 2022-01-31 10:07:38 +01:00
Chocobozzz
ebe4b3df5c
Remove fixed workaround 2022-01-21 11:11:03 +01:00
lutangar
d2d4a5a999 Fix plugin settings manager definition
This mainly fix the `onSettingsChange` argument typing.
I'm not 100% sure the setting `value` can be a boolean though.
But this is how it was typed before so I just made it consistent.

Feel free to change - or suggest change - to the type names / location.
2022-01-20 13:43:20 +01:00
Chocobozzz
82b9a1005c
Fix abuse crash on deleted reporter account 2022-01-20 10:52:50 +01:00
Chocobozzz
4abc7b053a
Fix peertube tools auth 2022-01-20 09:33:49 +01:00
Chocobozzz
d511df2890
Add ability to filter my imports by target URL 2022-01-19 14:58:16 +01:00
Chocobozzz
419b520ca4
Add ability to cancel & delete video imports 2022-01-19 14:31:05 +01:00
Chocobozzz
52435e467a
Handle quota for 413 2022-01-19 10:50:34 +01:00
Chocobozzz
7177b46ca1
Add ability to delete history element 2022-01-18 11:23:41 +01:00
Chocobozzz
2f0a0ae217
Upgrade uploadx dependency 2022-01-18 10:47:26 +01:00
Chocobozzz
743dab5517
Better 413 error handling in cli script 2022-01-18 09:19:59 +01:00
Chocobozzz
4dfd57ae6f
Better auth args handling for peertube cli 2022-01-18 09:13:36 +01:00
Chocobozzz
8f7d35fd0f
Add simplified/traditional chinese languages 2022-01-17 11:33:50 +01:00
Chocobozzz
ff4d2c73fd
Fix bull redis options 2022-01-14 15:06:33 +01:00
Chocobozzz
5cd0a3aead
Upgrade server tools dependencies 2022-01-14 14:41:03 +01:00
Chocobozzz
c0d2eac332
Update server dependencies 2022-01-14 14:15:23 +01:00
Chocobozzz
ce7c099f0e
Increase captions max size 2022-01-14 08:47:27 +01:00
Chocobozzz
3726c37255
Add missing mediaType info to AP objects 2022-01-13 14:16:32 +01:00
John Livingston
dd200d3477 Fix missing Account.name on getAuthUser return type. 2022-01-12 15:26:13 +01:00
Chocobozzz
73e64592b9
Fix lint 2022-01-10 17:03:11 +01:00
Chocobozzz
ac75f640fe
Display all user history
Not limited to instance federation bubble
2022-01-10 16:40:56 +01:00
Chocobozzz
3318147300
Merge branch 'release/4.0.0' into develop 2022-01-10 16:17:46 +01:00
Chocobozzz
84c8d98668
Don't display comments of private/internal videos 2022-01-10 16:15:09 +01:00
Florent
22c7778630 Give the ability to define python path for youtube-dl / yt-dlp 2022-01-10 10:01:43 +01:00
Chocobozzz
f332d502d5
Fix abuse test 2022-01-07 08:45:05 +01:00
Chocobozzz
cbe2f36d93
Fix audio transcoding with video only file 2022-01-06 17:55:37 +01:00
Chocobozzz
c3edc5b074
Merge branch 'release/4.0.0' into develop 2022-01-06 13:31:37 +01:00
Chocobozzz
795212f7ac
Prevent caption listing of private videos 2022-01-06 13:27:29 +01:00
Chocobozzz
7b54a81ccc
Prevent video import on non unicast ips 2022-01-06 11:16:35 +01:00
Chocobozzz
75b7117f07
Remove unnecessary NPM_RUN_BUILD_OPTS docker arg 2022-01-06 10:37:55 +01:00
Chocobozzz
f8360396ff
Stop using tsconfig register
Prefer to replace paths at compile time
2022-01-06 08:26:14 +01:00
Chocobozzz
cea093bca5
Fix redis connection timeout
We don't need to start it at this point
And it could lead to issues when nodejs is compiling peertube using sync
calls
2022-01-04 10:45:50 +01:00
Chocobozzz
8f5a1f36b5
Try to fix tests 2022-01-04 09:16:43 +01:00
Chocobozzz
b18a501a0e
Try to fix docker build 2022-01-03 14:20:56 +01:00
Chocobozzz
0628157fe9
Move uuid stuff in extra utils
Since it requires an external dependency
2021-12-29 14:44:58 +01:00
Chocobozzz
fb3c9e2bf5
Translate plugin settings 2021-12-29 14:08:07 +01:00
Chocobozzz
fba87e27c1
Resolve enums at compile time 2021-12-28 15:34:55 +01:00
Chocobozzz
81d02aac56
Fix types package dependencies 2021-12-28 15:10:55 +01:00
Chocobozzz
10a72a7e61
Fix tests 2021-12-28 14:12:57 +01:00
Chocobozzz
f1569117f9
Cleanup unavailable remote AP resource 2021-12-28 11:37:05 +01:00
Chocobozzz
21d68e6803
Add version to generate types packages 2021-12-28 10:27:06 +01:00
Chocobozzz
6627dbc957
Move types package in packages/ 2021-12-28 10:18:15 +01:00
Chocobozzz
656ed49f24
Increase timeout 2021-12-24 15:19:45 +01:00
Chocobozzz
ae4e417ab0
Update CREDITS 2021-12-24 14:56:33 +01:00
Chocobozzz
e5d91a9b9c
Upgrade redis dep 2021-12-24 14:52:24 +01:00
Chocobozzz
2d28b0c21d
Upgrade fast xml parser dep 2021-12-24 13:55:47 +01:00
Chocobozzz
4ff75a3b2c
Deprecate node 12 2021-12-24 13:52:32 +01:00
Chocobozzz
5a63748877
Node 10 is not supported anymore 2021-12-24 13:43:59 +01:00
Chocobozzz
c7cdac4409
Fix type conflict 2021-12-24 10:40:51 +01:00
Chocobozzz
d17c7b4e8c
Fix shared imports 2021-12-24 10:14:47 +01:00
Chocobozzz
5354af75b3
Fix video import transcoding 2021-12-23 13:40:47 +01:00
Chocobozzz
dbd9fb44dd
Don't stuck state when move transcoding job failed 2021-12-23 11:13:06 +01:00
Chocobozzz
482b26231b
Fix audio only transcoding 2021-12-23 10:57:55 +01:00
lutangar
5e3d29ab21 Add video caption created and deleted hooks 2021-12-23 09:35:35 +01:00
Chocobozzz
293074ae79
Fix video upload with big preview 2021-12-17 15:50:02 +01:00
Chocobozzz
8484599294
Fix subscriptions 2021-12-17 15:21:24 +01:00
Chocobozzz
9e2789aa4b
Fix internal user subscription 2021-12-17 14:42:31 +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
6b5f72beda
Move typescript utils in its own directory 2021-12-16 18:04:16 +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
b8fa3e8c73 refactor(types): create dedicated folder for types package src
fix guide examples and add types package readme

refactor(tsconfig): move back base tsconfig to base directory
2021-12-16 10:08:43 +01:00
lutangar
8b03e2ce1a feat(types): create peertube-types package
Create dedicated Typescript "types" configuration file for each "projects".
Create a types folder which includes every useful ts definition:
- client
- server
- shared
Add tooling to create a proper package, extract dependencies, etc...
Add CI Github task.

refactor(types): publish types package in release script
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
Chocobozzz
14857212f1
Move b frame strategy in transcoding profile
We may use a too high value for some encoders and it allows to specify
custom values/strategy
2021-12-14 10:46:31 +01:00
John Livingston
9234110650 Fix typo. 2021-12-14 09:00:08 +01:00
Chocobozzz
ab18fadfd1
Fix AP audience 2021-12-13 17:33:59 +01:00
Chocobozzz
b5e1cd9a30
Handle channel owner update of remote server 2021-12-13 16:03:16 +01:00
Florian CUNY
81547acb25
Added "zxx" (no linguistic content) in available video languages (#4631)
* Added "zxx" (no linguistic content) in available video languages

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

* FIx lint

* Fix lint

* Put other languages below instance languages

Co-authored-by: Chocobozzz <me@florianbigard.com>
2021-12-13 15:32:14 +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
6ba93fa639
Fix torrent metadata update for hls 2021-12-09 11:23:02 +01:00
Chocobozzz
38d69d6501
Update torrents info name on video update 2021-12-08 16:12:49 +01:00
Chocobozzz
9b293cd6a2
Update torrent metadata on video update 2021-12-08 11:07:19 +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
4c6757f2fd
Fix live log tags 2021-12-07 13:45:01 +01:00
Chocobozzz
d9f9804d86
Merge branch 'release/4.0.0' into develop 2021-12-07 11:06:57 +01:00
Chocobozzz
6e14e40053
Fix iframe allow-popups for oembed 2021-12-07 11:06:35 +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
Chocobozzz
9ea02c48a7
Merge branch 'release/4.0.0' into develop 2021-12-03 14:40:52 +01:00
Chocobozzz
025d858e79
Fix pending transcoding with failed job 2021-12-03 14:40:29 +01:00
Chocobozzz
453537426a
Fix too long filename video upload 2021-12-03 14:23:45 +01:00
Chocobozzz
6d472b4046
Decrease time to cleanup resumable uploads 2021-12-03 14:01:38 +01:00
Chocobozzz
9213df1d79
Fix comment 2021-12-03 10:49:36 +01:00
Chocobozzz
63a3d336f6
Remove uneeded function 2021-12-03 10:14:33 +01:00
Chocobozzz
ca87d95bcb
Fix plugin upgrade
Correctly decache all plugin paths
2021-12-03 10:14:17 +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
kontrollanten
5fc44b57f8
Add header Vary Accept-Language (#4588)
* nginx: add header Vary Accept-Language

solves #3647

* Revert "nginx: add header Vary Accept-Language"

This reverts commit 90dccf5324.

* add resp header Vary Accept-Language

solves #3647

* don't add vary header to embed page
2021-12-02 09:14:54 +01:00
Chocobozzz
1da843eeac
Don't notify when transcoding ends on manual run 2021-12-01 12:33:46 +01:00
Chocobozzz
a5ee023cf3
Fix redundancy timeout 2021-11-30 08:40:30 +01:00
Chocobozzz
55cb8bc73c
Correctly escape meta tags 2021-11-30 08:31:56 +01:00
Chocobozzz
7b0c61e743
Fix build 2021-11-29 15:46:52 +01:00
Chocobozzz
4c99953acd
Fix redundancy timeout 2021-11-29 15:45:02 +01:00
Chocobozzz
fa7388f087
Fix transcoding job count inconsistency 2021-11-29 11:20:17 +01:00
Chocobozzz
7137377d09
Auto update publishedAt in live restream 2021-11-26 17:36:55 +01:00
lutangar
7226e90fdc Add req and res as controllers hooks parameters
Hooks prefixed by `action:api` now give access the original express req and res.
Checkout guide.md for possible usage.
2021-11-25 09:54:22 +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
d972ca5658
Upgrade tools dependencies 2021-11-22 16:12:01 +01:00
mj-saunders
e291096f78
Apply import interval only when reasonable (#4552)
* Apply import interval only when reasonable

When importing videos from another service, an interval can be applied
between each download.
It only really makes sense to apply this interval when the last
attempted download actually happened, and not when it was skipped.

* Fix boolean notation
2021-11-22 16:10:00 +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
98846837eb
Stop killing peertube in ci script 2021-11-18 15:32:06 +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
9c7cf0072f
Prefer cover instead of contain for images 2021-11-16 16:11:10 +01:00
Chocobozzz
7196a70b28
Fix thumbnails/previews for portrait videos 2021-11-16 15:59:56 +01:00
Chocobozzz
b3ed044ded
Simplify search video channel 2021-11-16 13:52:46 +01:00
Chocobozzz
3455c2656e
Test and log request retries 2021-11-16 11:34:24 +01:00
Chocobozzz
ac03618098
Don't display log tag filter for audit logs 2021-11-16 10:49:03 +01:00
Chocobozzz
a2f99b54df
Optimize AP fetch 2021-11-16 10:28:31 +01:00
Chocobozzz
11a554cfcf
Fix unused parameter 2021-11-16 09:29:54 +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
3ef5909aec
Fix extendsLocalExpiration for redundancy 2021-11-12 09:02:53 +01:00
Chocobozzz
597f771f3f
Fix video update transaction 2021-11-10 15:52:22 +01:00
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