Commit Graph

11640 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 fa3da7a623
End runner live transcoding on update error 2023-05-22 15:24:19 +02:00
Chocobozzz 6a9b315182
Fix tests 2023-05-22 15:03:14 +02:00
Chocobozzz 8762b1c7ff
Include err type in res 2023-05-22 14:10:59 +02:00
Chocobozzz 17ecdf61ce
Force stop remote live transcoding 2023-05-22 13:54:46 +02:00
Chocobozzz f3bc1b5416
Help button must not send the parent form 2023-05-22 11:13:01 +02:00
Chocobozzz b9393464a8
Lock when removing video files 2023-05-22 11:06:04 +02:00
Chocobozzz 33b91e53d2
Remove low timeouts
Default timeout is 30s
2023-05-22 09:22:08 +02:00
Chocobozzz 679f8800cd
Update translations 2023-05-22 09:03:05 +02:00
Zet 9fa05c206f Translated using Weblate (Arabic)
Currently translated at 100.0% (135 of 135 strings)

Translation: PeerTube/player
Translate-URL: https://weblate.framasoft.org/projects/peertube/player/ar/
2023-05-22 09:00:53 +02:00
Zet 26a3f6b212 Translated using Weblate (Arabic)
Currently translated at 71.3% (1600 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/ar/
2023-05-22 09:00:53 +02:00
Payman Moghadam db4d0eef52 Translated using Weblate (Persian)
Currently translated at 95.1% (2134 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/fa/
2023-05-22 09:00:53 +02:00
Payman Moghadam 2937c36871 Translated using Weblate (Persian)
Currently translated at 95.0% (2133 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/fa/
2023-05-22 09:00:53 +02:00
Payman Moghadam 811ea73c65 Translated using Weblate (Persian)
Currently translated at 94.9% (2129 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/fa/
2023-05-22 09:00:53 +02:00
Payman Moghadam 32c968bf3c Translated using Weblate (Persian)
Currently translated at 94.9% (2129 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/fa/
2023-05-22 09:00:53 +02:00
Payman Moghadam 6cfcb09fe3 Translated using Weblate (Persian)
Currently translated at 94.9% (2129 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/fa/
2023-05-22 09:00:53 +02:00
Hồ Nhất Duy 66fc91e479 Translated using Weblate (Vietnamese)
Currently translated at 100.0% (2243 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/vi/
2023-05-22 09:00:52 +02:00
Payman Moghadam 6292fb9843 Translated using Weblate (Persian)
Currently translated at 94.8% (2128 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/fa/
2023-05-22 09:00:52 +02:00
Hồ Nhất Duy 77cea2114c Translated using Weblate (Vietnamese)
Currently translated at 98.6% (2212 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/vi/
2023-05-22 09:00:52 +02:00
Александр 4b9c3bff7b Translated using Weblate (Russian)
Currently translated at 100.0% (2243 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/ru/
2023-05-22 09:00:52 +02:00
Payman Moghadam 47282e8198 Translated using Weblate (Persian)
Currently translated at 94.8% (2128 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/fa/
2023-05-22 09:00:52 +02:00
Milo Ivir 788273d84f Translated using Weblate (Croatian)
Currently translated at 99.1% (2224 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/hr/
2023-05-22 09:00:52 +02:00
Payman Moghadam b4f0259e27 Translated using Weblate (Persian)
Currently translated at 94.8% (2127 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/fa/
2023-05-22 09:00:52 +02:00
Sveinn í Felli f4a034c60e Translated using Weblate (Icelandic)
Currently translated at 98.4% (2208 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/is/
2023-05-22 09:00:52 +02:00
chocobozzz 54c70a2b5e Translated using Weblate (French (France) (fr_FR))
Currently translated at 95.1% (2135 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/fr_FR/
2023-05-22 09:00:52 +02:00
Milo Ivir b6e14be7a9 Translated using Weblate (Croatian)
Currently translated at 98.6% (2213 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/hr/
2023-05-22 09:00:52 +02:00
Milo Ivir de31d9c50a Translated using Weblate (Croatian)
Currently translated at 100.0% (267 of 267 strings)

Translation: PeerTube/server
Translate-URL: https://weblate.framasoft.org/projects/peertube/server/hr/
2023-05-22 09:00:52 +02:00
Milo Ivir 167e28c6eb Translated using Weblate (Croatian)
Currently translated at 98.2% (2203 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/hr/
2023-05-22 09:00:52 +02:00
Milo Ivir 71d1bbb6bd Translated using Weblate (Croatian)
Currently translated at 100.0% (267 of 267 strings)

Translation: PeerTube/server
Translate-URL: https://weblate.framasoft.org/projects/peertube/server/hr/
2023-05-22 09:00:52 +02:00
Milo Ivir 02455465ef Translated using Weblate (Croatian)
Currently translated at 98.1% (2201 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/hr/
2023-05-22 09:00:52 +02:00
DignifiedSilence 0858844ecf Translated using Weblate (Japanese)
Currently translated at 100.0% (2243 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/ja/
2023-05-22 09:00:52 +02:00
Payman Moghadam 79ae5f6cf0 Translated using Weblate (Persian)
Currently translated at 94.7% (2125 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/fa/
2023-05-22 09:00:52 +02:00
Hồ Nhất Duy 4cf800a350 Translated using Weblate (Vietnamese)
Currently translated at 98.2% (2204 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/vi/
2023-05-22 09:00:52 +02:00
Ihor Hordiichuk 57ba36d6c2 Translated using Weblate (Ukrainian)
Currently translated at 98.2% (2203 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/uk/
2023-05-22 09:00:52 +02:00
Payman Moghadam b00f185643 Translated using Weblate (Persian)
Currently translated at 94.3% (2117 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/fa/
2023-05-22 09:00:52 +02:00
Anael González Paz c6ffe7fb2b Translated using Weblate (Spanish)
Currently translated at 98.6% (2213 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/es/
2023-05-22 09:00:52 +02:00
Anael González Paz ea59064054 Translated using Weblate (Spanish)
Currently translated at 100.0% (135 of 135 strings)

Translation: PeerTube/player
Translate-URL: https://weblate.framasoft.org/projects/peertube/player/es/
2023-05-22 09:00:52 +02:00
Anael González Paz 6597fe00e3 Translated using Weblate (Spanish)
Currently translated at 98.2% (2203 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/es/
2023-05-22 09:00:52 +02:00
Александр 9d3d30318c Translated using Weblate (Russian)
Currently translated at 100.0% (2243 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/ru/
2023-05-22 09:00:52 +02:00
Jeff Huang af2c20b80c Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (2243 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/zh_Hant/
2023-05-22 09:00:52 +02:00
Ihor Hordiichuk 185af78dac Translated using Weblate (Ukrainian)
Currently translated at 97.9% (2196 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/uk/
2023-05-22 09:00:52 +02:00
Payman Moghadam e3a32a880c Translated using Weblate (Persian)
Currently translated at 94.3% (2117 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/fa/
2023-05-22 09:00:52 +02:00
Ihor Hordiichuk fc3fc07923 Translated using Weblate (Ukrainian)
Currently translated at 97.0% (2177 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/uk/
2023-05-22 09:00:52 +02:00
Payman Moghadam ddf36b2fa2 Translated using Weblate (Persian)
Currently translated at 94.3% (2117 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/fa/
2023-05-22 09:00:52 +02:00
Ihor Hordiichuk 22a4444096 Translated using Weblate (Ukrainian)
Currently translated at 97.0% (2176 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/uk/
2023-05-22 09:00:52 +02:00
Александр 5e84410027 Translated using Weblate (Russian)
Currently translated at 100.0% (2243 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/ru/
2023-05-22 09:00:52 +02:00
Ihor Hordiichuk 2633304afb Translated using Weblate (Ukrainian)
Currently translated at 97.0% (2176 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/uk/
2023-05-22 09:00:52 +02:00
Александр 0343b57e14 Translated using Weblate (Russian)
Currently translated at 98.3% (2207 of 2243 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/ru/
2023-05-22 09:00:52 +02:00