Commit Graph

1574 Commits

Author SHA1 Message Date
Chocobozzz
57c318653e
Fix live quota tests 2023-05-22 16:23:28 +02:00
Alecks Gates
cb0eda5602
Add Podcast RSS feeds (#5487)
* Initial test implementation of Podcast RSS

This is a pretty simple implementation to add support for The Podcast Namespace in RSS -- instead of affecting the existing RSS implementation, this adds a new UI option.

I attempted to retain compatibility with the rest of the RSS feed implementation as much as possible and have created a temporary fork of the "pfeed" library to support this effort.

* Update to pfeed-podcast 1.2.2

* Initial test implementation of Podcast RSS

This is a pretty simple implementation to add support for The Podcast Namespace in RSS -- instead of affecting the existing RSS implementation, this adds a new UI option.

I attempted to retain compatibility with the rest of the RSS feed implementation as much as possible and have created a temporary fork of the "pfeed" library to support this effort.

* Update to pfeed-podcast 1.2.2

* Initial test implementation of Podcast RSS

This is a pretty simple implementation to add support for The Podcast Namespace in RSS -- instead of affecting the existing RSS implementation, this adds a new UI option.

I attempted to retain compatibility with the rest of the RSS feed implementation as much as possible and have created a temporary fork of the "pfeed" library to support this effort.

* Update to pfeed-podcast 1.2.2

* Add correct feed image to RSS channel

* Prefer HLS videos for podcast RSS

Remove video/stream titles, add optional height attribute to podcast RSS

* Prefix podcast RSS images with root server URL

* Add optional video query support to include captions

* Add transcripts & person images to podcast RSS feed

* Prefer webseed/webtorrent files over HLS fragmented mp4s

* Experimentally adding podcast fields to basic config page

* Add validation for new basic config fields

* Don't include "content" in podcast feed, use full description for "description"

* Initial test implementation of Podcast RSS

This is a pretty simple implementation to add support for The Podcast Namespace in RSS -- instead of affecting the existing RSS implementation, this adds a new UI option.

I attempted to retain compatibility with the rest of the RSS feed implementation as much as possible and have created a temporary fork of the "pfeed" library to support this effort.

* Update to pfeed-podcast 1.2.2

* Add correct feed image to RSS channel

* Prefer HLS videos for podcast RSS

Remove video/stream titles, add optional height attribute to podcast RSS

* Prefix podcast RSS images with root server URL

* Add optional video query support to include captions

* Add transcripts & person images to podcast RSS feed

* Prefer webseed/webtorrent files over HLS fragmented mp4s

* Experimentally adding podcast fields to basic config page

* Add validation for new basic config fields

* Don't include "content" in podcast feed, use full description for "description"

* Add medium/socialInteract to podcast RSS feeds. Use HTML for description

* Change base production image to bullseye, install prosody in image

* Add liveItem and trackers to Podcast RSS feeds

Remove height from alternateEnclosure, replaced with title.

* Clear Podcast RSS feed cache when live streams start/end

* Upgrade to Node 16

* Refactor clearCacheRoute to use ApiCache

* Remove unnecessary type hint

* Update dockerfile to node 16, install python-is-python2

* Use new file paths for captions/playlists

* Fix legacy videos in RSS after migration to object storage

* Improve method of identifying non-fragmented mp4s in podcast RSS feeds

* Don't include fragmented MP4s in podcast RSS feeds

* Add experimental support for podcast:categories on the podcast RSS item

* Fix undefined category when no videos exist

Allows for empty feeds to exist (important for feeds that might only go live)

* Add support for podcast:locked -- user has to opt in to show their email

* Use comma for podcast:categories delimiter

* Make cache clearing async

* Fix merge, temporarily test with pfeed-podcast

* Syntax changes

* Add EXT_MIMETYPE constants for captions

* Update & fix tests, fix enclosure mimetypes, remove admin email

* Add test for podacst:socialInteract

* Add filters hooks for podcast customTags

* Remove showdown, updated to pfeed-podcast 6.1.2

* Add 'action:api.live-video.state.updated' hook

* Avoid assigning undefined category to podcast feeds

* Remove nvmrc

* Remove comment

* Remove unused podcast config

* Remove more unused podcast config

* Fix MChannelAccountDefault type hint missed in merge

* Remove extra line

* Re-add newline in config

* Fix lint errors for isEmailPublic

* Fix thumbnails in podcast feeds

* Requested changes based on review

* Provide podcast rss 2.0 only on video channels

* Misc cleanup for a less messy PR

* Lint fixes

* Remove pfeed-podcast

* Add peertube version to new hooks

* Don't use query include, remove TODO

* Remove film medium hack

* Clear podcast rss cache before video/channel update hooks

* Clear podcast rss cache before video uploaded/deleted hooks

* Refactor podcast feed cache clearing

* Set correct person name from video channel

* Styling

* Fix tests

---------

Co-authored-by: Chocobozzz <me@florianbigard.com>
2023-05-22 16:00:05 +02:00
Chocobozzz
3f0ceab06e
More robust quota check
Avoid concurrency issues with permanent lives
2023-05-22 15:52:59 +02:00
Chocobozzz
6a9b315182
Fix tests 2023-05-22 15:03:14 +02:00
Chocobozzz
17ecdf61ce
Force stop remote live transcoding 2023-05-22 13:54:46 +02:00
Chocobozzz
33b91e53d2
Remove low timeouts
Default timeout is 30s
2023-05-22 09:22:08 +02:00
Chocobozzz
8527f4b163
Fix menu dropdowns
Better responsive
Avoid menu scrollbar displayed in notification popove
2023-05-22 08:22:57 +02:00
Chocobozzz
9ba1faa2ee
Fix lowest email port 2023-05-19 15:33:26 +02:00
Chocobozzz
d1c64fd970
Fix missing wait jobs 2023-05-19 15:05:32 +02:00
Chocobozzz
26818a73ba
Add expect message to ease debug 2023-05-19 14:49:00 +02:00
Chocobozzz
cfa6176381
Fix runner cleanup test 2023-05-19 14:35:03 +02:00
Chocobozzz
01283e2066
Improve remote runner config UX 2023-05-19 14:11:22 +02:00
Chocobozzz
6403a6bd01
peertube runner tests in parallel 2023-05-19 13:33:27 +02:00
Chocobozzz
fe7019b232
Fix peertube runner concurrency 2023-05-19 09:23:20 +02:00
Chocobozzz
e901579b00
Fix tests 2023-05-17 16:43:05 +02:00
Chocobozzz
cc518fdbcb
Fix test 2023-05-16 10:10:58 +02:00
Chocobozzz
aa54733149
Add retries to all webtorrent tests 2023-05-15 16:16:41 +02:00
Chocobozzz
261dac403a
More robust test 2023-05-15 15:42:16 +02:00
Chocobozzz
5a05c14573
Force live stream termination 2023-05-15 15:06:14 +02:00
Chocobozzz
8eb6a9eb2b
Fix test 2023-05-15 13:56:08 +02:00
Chocobozzz
339d3fba83
Allow to retry some tests that may fail 2023-05-15 11:41:55 +02:00
Chocobozzz
5752683ea5
Increase test timeouts 2023-05-11 16:33:30 +02:00
Chocobozzz
823c34c07f
Fix reset sequelize instance 2023-05-11 15:03:47 +02:00
Chocobozzz
81f14b9112
Correctly wait for live segment generation 2023-05-11 11:41:43 +02:00
Chocobozzz
c106db1413
Fix tests 2023-05-10 16:23:55 +02:00
Chocobozzz
644391bee6
Fix test cleanup 2023-05-10 13:57:06 +02:00
Chocobozzz
7590f7a868
Add more tests on registration request conflict 2023-05-10 11:53:04 +02:00
Chocobozzz
5170f492b9
Try to have more robust live tests 2023-05-10 09:30:33 +02:00
Chocobozzz
9d1e41e8bb
Increase timeouts 2023-05-10 09:02:42 +02:00
Chocobozzz
ce1b5ba78c
Correctly cleanup sql command 2023-05-10 08:43:16 +02:00
Chocobozzz
2f63f629ad
Fix subscribe button responsive 2023-05-09 13:53:33 +02:00
Chocobozzz
1c7fbce4fa
Increase timeout 2023-05-09 08:58:15 +02:00
Chocobozzz
21609258de Increase timeouts 2023-05-09 08:57:34 +02:00
Chocobozzz
a687879e94 Reload the video after waiting for the files lock 2023-05-09 08:57:34 +02:00
Chocobozzz
e7d8e2b245 Fix audio transcoding copy 2023-05-09 08:57:34 +02:00
Chocobozzz
dd3f99434c Fix studio tests 2023-05-09 08:57:34 +02:00
Chocobozzz
ab14f0e0dc Prefer video studio instead of video edition
Clearer and easier to find in the project
2023-05-09 08:57:34 +02:00
Chocobozzz
5e47f6ab98 Support studio transcoding in peertube runner 2023-05-09 08:57:34 +02:00
Chocobozzz
6a49056026 Add TMP persistent directory
To store files that must be preserved between peertube restarts
2023-05-09 08:57:34 +02:00
Chocobozzz
3a0c2a77b1 Enable external plugins to test the PR 2023-05-09 08:57:34 +02:00
Chocobozzz
d102de1b38 Add runner server tests 2023-05-09 08:57:34 +02:00
Chocobozzz
e7c89cc3f3
Allow to update a live with untouched privacy 2023-04-14 10:14:40 +02:00
Wicklow
2a4c0d8bbe
Feature/filter already watched videos (#5739)
* filter already watched videos

* Updated code based on review comments
2023-04-12 09:32:20 +02:00
Wicklow
b302c80dc0
feature/ability to disable video history by default (#5728)
* draft: ability to disable video history by default

* Update configuration and add tests

* Updated code based on review comments

* Add tests on registration and video quota

* Remove required video quotas in query

* Fix tests
2023-04-07 10:09:54 +02:00
Wicklow
05a60d8599
Feature/Add replay privacy (#5692)
* Add replay settings feature

* Fix replay settings behaviour

* Fix tests

* Fix tests

* Fix tests

* Update openapi doc and fix tests

* Add tests and fix code

* Models correction

* Add migration and update controller and middleware

* Add check params tests

* Fix video live middleware

* Updated code based on review comments
2023-03-31 09:12:21 +02:00
Chocobozzz
1e3e64a679
Fix tests 2023-03-27 08:43:50 +02:00
Chocobozzz
d91ce83d39
Add filter:html.client.json-ld.result hook 2023-03-24 18:37:55 +01:00
Chocobozzz
b926a23c62
Stop testing broken youtube-dl 2023-03-22 11:25:30 +01:00
Chocobozzz
951414fc62
Merge branch 'release/5.1.0' into develop 2023-03-21 09:17:25 +01:00
Chocobozzz
1c41b5c1ac
Add infohash test for VOD 2023-03-20 08:57:01 +01:00
Chocobozzz
8b197aca90
Fix flaky tests 2023-03-17 10:05:40 +01:00
Chocobozzz
47d883de2e
Merge branch 'release/5.1.0' into develop 2023-03-16 14:24:50 +01:00
Chocobozzz
c3441b0320
Add video AP hooks 2023-03-16 10:36:33 +01:00
Chocobozzz
2b02a9b98c
Fix tests 2023-03-10 15:45:52 +01:00
Chocobozzz
58e735dd77
Add test on AP hooks 2023-03-10 15:45:52 +01:00
Chocobozzz
3b504f6ed4
Add ability for plugins to alter video jsonld 2023-03-10 15:45:52 +01:00
Chocobozzz
2dbcc3741b
Fix tests 2023-03-10 15:45:31 +01:00
Chocobozzz
96d00a997b
Add test on AP hooks 2023-03-10 15:19:33 +01:00
Chocobozzz
866b5d3f52
Add ability for plugins to alter video jsonld 2023-03-10 14:42:18 +01:00
Chocobozzz
09f3d81e0c
Merge branch 'release/5.1.0' into develop 2023-03-07 11:17:12 +01:00
Wicklow
73fb3dc535 Fix file token reinjection on fragments 2023-03-07 11:16:56 +01:00
Chocobozzz
d9dbf27a7d
Merge branch 'release/5.1.0' into develop 2023-03-07 10:42:31 +01:00
Chocobozzz
b52f504848
Add test to ensure files are deleted 2023-03-07 10:18:32 +01:00
Wicklow
692ae8c31c
Hotfix/filter subscription videos (#5665)
* Fix filters on subscription videos

* Add tests to common video filters

* Improve reliability when skipping subscrition path

* Better parameters for skipping subscription videos
2023-03-02 14:50:55 +01:00
Chocobozzz
c0a4982ebe
Fix 404 when having ;threadId param 2023-03-02 10:35:59 +01:00
Chocobozzz
8d1f78044c
Add ability to disable http duration OTEL metrics 2023-02-27 13:53:54 +01:00
Chocobozzz
5b94394a1a
Fix E2E with firefox 2023-02-27 11:58:35 +01:00
Chocobozzz
4765348107
Add x-powered-by header 2023-02-27 09:22:59 +01:00
Wicklow
c0687c91b9 Add server hooks for listing subscription 2023-02-25 15:47:48 +01:00
Chocobozzz
d41f4a6dc6
Improve image test comparison 2023-02-24 15:10:13 +01:00
Wicklow
16ccb43767 Fix filters on playlists 2023-02-23 16:07:44 +01:00
Chocobozzz
c5c95361e6
Move to new documentation links 2023-02-22 16:15:14 +01:00
Chocobozzz
82e3ae1523
Fix CI 2023-02-17 09:21:11 +01:00
Chocobozzz
9625be3857
Fix CI timeout 2023-02-14 09:04:49 +01:00
Chocobozzz
afb371d940
Refactor playlist creation for lives 2023-01-27 09:04:02 +01:00
Chocobozzz
a2be43f570
Merge branch 'release/5.0.0' into develop 2023-01-27 08:34:16 +01:00
Chocobozzz
8059e050ef
Fix live with base url object storage 2023-01-27 08:30:56 +01:00
Chocobozzz
2a720a0fac
Try to debug test timeout 2023-01-24 11:57:37 +01:00
Chocobozzz
ff71e06ad1
Add user registration policy info 2023-01-23 14:49:29 +01:00
Chocobozzz
4115f20084
Add ability to not send an email for registration 2023-01-20 15:34:01 +01:00
Chocobozzz
9436936cf6
Add more signup limit tests 2023-01-19 15:27:04 +01:00
Chocobozzz
a68ccaead6
(breaking): Always list nsfw videos in playlists
Keep the same behaviour as unlisted videos
The frontend is in charge to blur the video element if the nsfw setting
is "hide" or "blur"
2023-01-19 15:04:10 +01:00
Chocobozzz
32fde390f4
Use unknown when category is not set
Unstead of Misc, that could be a real category
2023-01-19 14:09:57 +01:00
Chocobozzz
6e06694fd6
Fix semver comparison 2023-01-19 13:54:53 +01:00
Chocobozzz
b379759f55 Add signup approval API tests 2023-01-19 13:53:40 +01:00
Chocobozzz
0b96a0fb77
Optimize again comments list sql query 2023-01-12 11:11:41 +01:00
Chocobozzz
9ec435c85d
Increase tests timeout 2023-01-11 08:44:06 +01:00
Chocobozzz
a8749f7c3b
Fix comments SQL pagination 2023-01-10 09:17:23 +01:00
Chocobozzz
0a8a79552c
Merge branch 'feature/SO035' into develop 2023-01-09 09:44:00 +01:00
Chocobozzz
cde3d90ded
Use raw sql for comments 2023-01-09 09:29:02 +01:00
Chocobozzz
60bab7b540
Implement getServerListeningConfig plugin helper 2023-01-04 11:52:54 +01:00
Chocobozzz
60b880acdf
External auth can update user on login 2023-01-04 11:41:29 +01:00
Chocobozzz
7e0c26066a
External auth can set more user fields
videoQuota, videoQuotaDaily, adminFlags
2023-01-04 11:41:29 +01:00
Chocobozzz
b65f5367ba
Add ability to customize token lifetime 2023-01-04 11:41:29 +01:00
Chocobozzz
518c5cc62d
Try to debug a CI issue 2023-01-03 14:52:35 +01:00
Chocobozzz
25691c9930
Prefer using sequelize replacements even for tests 2023-01-03 14:23:42 +01:00
Chocobozzz
9972ace3a3
Merge branch 'release/5.0.0' into develop 2022-12-30 15:28:49 +01:00
Chocobozzz
54db8e3d5c
Fix P2P with object storage 2022-12-30 15:05:14 +01:00
Chocobozzz
4fe7cde283
Fix build 2022-12-29 10:14:43 +01:00
Chocobozzz
7a07da01c4
Improve upgrade documentation 2022-12-28 10:29:37 +01:00