Commit graph

198 commits

Author SHA1 Message Date
Kavin
e6c0f7c0f4
Cleanup transaction code. (#306) 2022-07-04 18:44:16 +01:00
Kavin
7c087d82b3
Fetch user table as left join. (#304) 2022-07-04 08:37:52 +01:00
Kavin
c812ace4f6
Fix errors being logged due to invalid requests. (#303) 2022-07-04 07:09:29 +01:00
Kavin
606cbf5ca6
Use Criteria API for deleting old videos. (#302) 2022-07-04 07:09:20 +01:00
Kavin
17b9a974de
Attempt to use stateless sessions in read-only operations. (#301) 2022-07-04 06:42:01 +01:00
Kavin
cdd8a962d7
Avoid duplicate video errors. (#300) 2022-07-04 06:02:06 +01:00
Kavin
c8628dcf05
Simplify session handling for new videos. (#299) 2022-07-02 21:30:19 +01:00
Kavin
0158744506
Hold pubsub session for lesser time. (#298) 2022-07-02 18:13:58 +01:00
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