Commit graph

240 commits

Author SHA1 Message Date
Kavin
3a009407ad
Run server on new thread. (#297) 2022-07-02 13:32:20 +01:00
Kavin
943e4a3de8
Add some parameter checking to search and feed routes. (#294) 2022-06-28 18:13:29 +01:00
Kavin
374d067a95
Implement RYD-Proxy API implementation. (#293) 2022-06-27 17:11:22 +01:00
Kavin
b7a91036f9
Cleanup Transactions. (#275)
- use hibernate 6 methods
- Don't use session.getTransaction()
- regex to validate channelId for saving channels
2022-06-26 10:03:02 +01:00
Kavin
e8e055a676
Case insensitive sort for subscriptions. (#292) 2022-06-26 03:44:07 +01:00
Kavin
f5e881e0e4
Add length check for username. 2022-06-26 03:01:19 +01:00
Kavin
c558572953
Import mapper statically. 2022-06-26 03:00:45 +01:00
Kavin
e085d4c8a3
Allow having a different url for pubsub. (#290)
This would be useful for onion instances.
2022-06-25 10:22:45 +01:00
Kavin
160e6933d3
Allow disabling pubsub timer to lower cpu usage. (#289) 2022-06-25 10:19:06 +01:00
Kavin
18211a3eed
Add route to import playlist from YouTube. (#282) 2022-06-18 19:10:26 +01:00
Kavin
c23805288f
Update to Hibernate 6. 2022-06-17 17:05:59 +01:00
Kavin
87917f0da2
Use parallel streams for some operations. (#264) 2022-05-12 11:54:28 +01:00
Kavin
ce70bd037b
Limit RSS feed size to 100 entries (#263) 2022-05-10 09:40:26 +01:00
the_4n0nym0u53
d3d1ee420b
Feature: Implement account deletion (#248)
* Add backend code for user deletion

* Add endpoint and delete user test

* Delete all user content from db

* Delete from playlist_videos table on user deletion

* Avoid raw SQL in unsubscribeResponse()

* Fix unsubscribeResponse()

* Don't delete PlaylistVideos from other users' playlists

* Fix pruneUnusedPlaylistVideos()

* Remove unused commented-out code

* Fix oopsie

* Proper type declaration due to false error-reporting by VSCode

* Use delete query for better performance

* Cleanup and add OneToMany relationship.

* Revert unsubscribe logic.

Co-authored-by: Kavin <20838718+FireMasterK@users.noreply.github.com>
2022-05-05 19:51:51 +01:00
Kavin
a5296d6e5a
Add support for a different address for proxying images. (#252) 2022-04-25 07:42:59 +01:00
Kavin
11b53e8c00
Update NewPipeExtractor. (#249) 2022-04-24 18:01:00 +01:00
Kavin
9c1c165fb2
Significantly speed up import process. (#242) 2022-04-11 00:02:25 +01:00
Kavin
ce50b7523f
Handle lbryId timeout gracefully. (#241) 2022-04-09 23:22:16 +01:00
Kavin
561a4f44e1
Add index for playlist owner. (#240) 2022-04-09 22:04:16 +01:00
Kavin
cef4b1dcb7
Handle JSON data better. 2022-04-07 18:40:34 +01:00
Kavin
dc0e4c1bbb
Cache based on playlistId length. 2022-04-07 02:43:01 +01:00
Kavin
ad89de49a0
Change table declaration so unique unique constraints aren't generated. 2022-04-06 17:34:20 +01:00
Kavin
46d9dd1a2e
Add videos size to custom playlist response. 2022-04-06 16:29:30 +01:00
Kavin
76c5fe9273
Fix rss for empty playlist. 2022-04-06 16:27:04 +01:00
Kavin
9e320c914e
Set playlist thumbnail when adding first thumbnail. 2022-04-06 16:15:44 +01:00
Kavin
f7a5f5051a
Add route to delete playlist. 2022-04-06 16:11:28 +01:00
Kavin
1135e20c3d
Add support for Piped playlists in RSS. 2022-04-06 15:05:18 +01:00
Kavin
3d6aefdd0e
Add route to remove from playlist. 2022-04-06 14:31:16 +01:00
Kavin
00e32dc992
Add route to add video to playlist. 2022-04-06 13:07:50 +01:00
Kavin
797a621b51
Add tests for playlist. 2022-04-06 04:23:31 +01:00
Kavin
b049848e79
Add playlist creation route. 2022-04-06 03:46:40 +01:00
FireMaskterK
056d61f2d2
Add playlist object. 2022-04-05 21:59:56 +01:00
Kavin
11845f26fc
Fix ClassCastException. (#235) 2022-03-30 17:47:05 +01:00
Kavin
0cea0a50f5
Change future code and add uploaderSubscriberCount. (#234) 2022-03-30 17:23:56 +01:00
Kavin
5b6dc2b097
Add check for database session in healthcheck. (#232)
* Add check for database session in healthcheck.

* Add curl test for healthcheck.
2022-03-29 09:49:42 +01:00
Kavin
b1e875bcf5
Fix subscription imports and improve session handling. (#228) 2022-03-19 18:57:00 +00:00
Kavin
a4b6e1f804
Check if username and password is empty during registration. (#225) 2022-03-16 15:08:18 +00:00
Kavin
43d6dc93c0
Use try with for sessions (#222) 2022-03-16 03:21:24 +00:00
Kavin
6e88cf3050
Log and clear throttling cache every hour. (#220) 2022-03-14 14:54:47 +00:00
Kavin
8fb1871dce
Reduce response cache size. (#214) 2022-03-10 10:14:05 +00:00
Kavin
02ca78ee7a
Manually close okhttp responses. (#210)
Ensure response is closed properly.
2022-03-03 12:27:43 +00:00
Kavin
cec135933e
Update NPE and remove the caching of CommentsInfo instances. (#209) 2022-03-03 12:03:45 +00:00
Kavin
72666ecf83
Change no-cache to no-store. (#208) 2022-03-02 20:38:22 +00:00
Kavin
3d8d592768
Fix for bug where subscriptions can't be fetched on fresh accounts. (#205) 2022-03-01 21:02:35 +00:00
Kavin
597e861159
Replace in to equals. (#203) 2022-02-28 22:46:15 +00:00
Kavin
b0b651f44d
Don't perform authentication checks in subscribed route. (#201)
If the sessionId is invalid, false should be returned for subscribed, we make it the client's responsibility to ensure the sessionId is valid.
2022-02-24 19:06:38 +00:00
Kavin
014c9533c8
Optimize subscriptions query, by using Criteria API. (#200) 2022-02-24 12:32:39 +00:00
Kavin
78082742ad
Replace left joins with inner joins (#199)
* Replace left joins with inner joins.

* Temporarily disable YugabyteDB CI
2022-02-24 12:27:23 +00:00
Kavin
94f5fa37ac
Add route to display version information. (#195)
* Add version information route.

* Use build action for tests.

* Add version test to script.

* Add testing directory to dockerignore.

* Don't unnecessarily set permission for gradle wrapper script.
2022-02-22 09:16:45 +00:00
Kavin
a03ae434be
Replace native query with criteria api for PubSub subscriptions (#191) 2022-02-15 11:55:08 +00:00
Kavin
498849ec6b
Replace native query with criteria api for feeds (#190) 2022-02-15 11:37:21 +00:00
Kavin
166e14cf71
Add dedicated route for health check (#189) 2022-02-14 02:38:02 +00:00
FireMasterK
f28d40dffe
Add support for extracting videoId from clipId. 2022-02-10 14:57:08 +00:00
Kavin
7eeff6eec4
Refractor codebase and improve video data update handling. (#185) 2022-02-09 03:06:52 +00:00
Kavin
ec3b69b7a7
Add shortDescription parameter to StreamItem. (#184) 2022-02-08 14:43:45 +00:00
Kavin
cf32a60ed1
Add uploaded field to StreamItem. (#183) 2022-02-06 15:33:46 +00:00
Kavin
b54248b47f
Remove casts by specifying type. (#182) 2022-02-03 11:57:07 +00:00
Kavin
8ba39000b1
Simplify comparators (#181) 2022-02-03 11:29:59 +00:00
Kavin
3748afdd72
Fix for empty lbry streams. (#180) 2022-02-02 21:23:37 +00:00
Kavin
c07cf5fd1f
Refactor Utility methods and migrate to OkHttp (#179) 2022-02-02 21:05:22 +00:00
Kavin
9c926d3183
Force use HTTP 1.1 temporarily. (#177) 2022-02-02 08:05:43 +00:00
Kavin
8880a884c3
Add feed retention configuration option. (#174) 2022-01-31 04:17:16 +00:00
Kavin
9aa16b3299
Improvements to caffeine caching. (#171) 2022-01-26 04:00:56 +00:00
Kavin
322610dbbb
Rewrite chapter image URLs. (#167) 2022-01-13 04:22:09 +00:00
Kavin
c22e8d878b
Add proper mime for rss feeds, and preconnect header for proxy (#157) 2021-12-27 08:54:48 +00:00
Kavin
2923e1ec76
Fix feed validation errors (#155) 2021-12-25 16:46:39 +00:00
Kavin
49f439e761
Add null-check for SponsorBlock endpoint (#154) 2021-12-24 14:17:02 +00:00
Kavin
4c317a6158
Change rss entry from id to link (#150)
Uri -> Link
2021-12-20 14:36:20 +00:00
Kavin
b0872ce414
Update default frontend uri (#149) 2021-12-20 14:21:45 +00:00
FireMaskterK
d34e22790f
Add hibernate properties from env variables. 2021-11-23 01:50:06 +00:00
FireMaskterK
749cf48f4b
Read properties from environment if available.
Closes https://github.com/TeamPiped/Piped/issues/638
2021-11-23 00:21:18 +00:00
FireMaskterK
6ec517e0ef
Add index and improve pubsub db query. 2021-11-18 23:32:19 +00:00
FireMaskterK
376e068264
Add DownloaderImpl caching. 2021-11-17 09:54:56 +00:00
FireMaskterK
e1e5382959
Add registered users badge. 2021-11-11 11:35:50 +00:00
FireMaskterK
1c8e8b190e
Fix LBRY timeouts. 2021-11-09 08:06:13 +00:00
FireMaskterK
3de3b55d3c
Revert "Fix LBRY timeouts."
This reverts commit a7b02e9566.
2021-11-09 08:03:48 +00:00
FireMaskterK
a7b02e9566
Fix LBRY timeouts. 2021-11-09 08:03:21 +00:00
FireMaskterK
ced7b0ee9e
Add configuration property to disable registration. 2021-11-09 06:27:29 +00:00
FireMaskterK
2a87b7946d
Add index for session_id. 2021-11-08 23:46:56 +00:00
FireMaskterK
6012c1cd82
Attempt to fix index performance issues. 2021-11-08 21:28:08 +00:00
FireMaskterK
0d3b167e8a
Add index for video uploaded. 2021-11-08 20:53:48 +00:00
FireMaskterK
e629121c25
Log path only when exception is logged. 2021-11-08 20:35:02 +00:00
FireMaskterK
a7885f1ca1
Update privacy.resistFingerprinting UA. 2021-11-08 15:20:41 +00:00
FireMaskterK
98127b8c0e
Implement chapter segment support.
Closes https://github.com/TeamPiped/Piped/issues/600
2021-11-04 19:21:26 +00:00
FireMaskterK
5feec94220
Fix url rewrite issues
Closes https://github.com/TeamPiped/Piped/issues/598
2021-11-04 17:45:39 +00:00
FireMaskterK
759a6445f0
Fix for Comment repliesPage being "null" when not present. 2021-11-01 19:58:44 +00:00
FireMaskterK
86154a1a29
Allow Avatar URL to change in channel. 2021-10-31 17:48:34 +00:00
FireMaskterK
ceced61e60
Fix for Chromium depreciation warning. 2021-10-26 18:22:31 +01:00
FireMaskterK
f731308dcc
Implement OpenSearch api. 2021-10-25 23:55:29 +01:00
FireMaskterK
b63786a15e
Cache videos for a maximum of 30 seconds on the client side. 2021-10-23 23:13:54 +01:00
FireMaskterK
1c1dd05455
Add timeout for LBRY calls. 2021-10-12 11:44:21 +01:00
FireMaskterK
022a0af007
Include search corrections in API. 2021-10-10 00:24:29 +01:00
FireMaskterK
2c7baa0710
Don't fail hard when LBRY throws errors. 2021-10-06 16:37:47 +01:00
FireMaskterK
a1a3e717b2 Add option to disable HIBP password check.
Usage of this option is discouraged for password security reason.
2021-10-04 19:57:56 +01:00
FireMasterK
d03c677a7f
Fix for possible NPE. 2021-10-03 09:55:13 +01:00
FireMasterK
08aeefa099
Add support for legacy bcrypt hashes from Invidious 2021-10-03 09:02:43 +01:00
FireMasterK
cc3976b454
Improve livestream detection. 2021-10-01 18:53:54 +01:00
FireMasterK
29fb9b02a2
Add support for extracting replies and update NPE. 2021-09-22 15:18:24 +01:00
FireMasterK
84bd3aa164
Improve feed query performance. 2021-09-21 22:35:12 +01:00
FireMasterK
aae627a423
Remove debug constant. 2021-09-21 22:34:25 +01:00