Commit Graph

89 Commits

Author SHA1 Message Date
Simon 285e2042ae
[API] add backup endpoints 2023-11-01 14:05:11 +07:00
Simon 8247314d01
refactor admin permisson classes 2023-10-31 15:50:33 +07:00
Clark 4d111aff82
Move the startup application settings to a new class (#571)
* Move the startup application settings to a new class

* Replace settings methods with static fields

* Move Redis and ES configuration to the settings class

* Fix environment python imports

* Update envcheck to use the new settings
2023-10-28 10:27:03 +07:00
Simon 572b23169c
finetune limited permission user 2023-10-15 14:56:54 +07:00
Steve Ovens e1fce06f97
View only user (#539)
* Remove repo docs in favor of hosted docs (#537)

* updated base, channel, video htmls to hide elements based on if user is staff or in the group 'admin'

* added the load auth_extras

* updated auth_extras

* updated views.py to block api calls from deleting files from unprivileged users; The Templates needed to be updated to support the various group checks related to removing buttons an unprivileged user should not see

* bumped the channel templates to remove conflict

* fix linting issues

* more linting

---------

Co-authored-by: Merlin <4706504+MerlinScheurer@users.noreply.github.com>
2023-10-15 13:58:06 +07:00
Simon 57d8b060d2
fix spelling 2023-10-03 21:03:31 +07:00
Merlin 317942b7e1
Refac biggest channels to be 3 seperate tables with ordering and right align (#536)
* Add right align to numbers on biggest channels in dashboard

* Refac biggest channels to be 3 seperate tables with ordering

* Fix aggs linting
2023-09-04 17:51:06 +07:00
Simon 5ee37eb0cb
add biggest chanel aggs 2023-09-01 09:28:56 +07:00
Simon 4ded8988c3
add channel aggregation 2023-08-30 18:42:03 +07:00
Simon 988c2b8af7
add download video histogram stats 2023-08-30 17:42:10 +07:00
Simon 3e9f1a392a
[API] add index count and video view progress stats views 2023-08-29 15:45:55 +07:00
Simon d42bd612d0
handle 404 video sponsorblock, #526 2023-08-26 21:05:17 +07:00
Simon f1e25c9a20
[API] add channel search endpoint 2023-08-24 22:46:35 +07:00
Simon a514dda1ff
[API] implement delete playlist endpoint 2023-08-23 23:54:36 +07:00
Simon b005b7bcfe
[API] validate sub type, add sub/unsub channel and playlist 2023-08-23 22:28:09 +07:00
Simon a2eb42ebb9
validate subscribe url type, #299 2023-08-23 21:22:09 +07:00
Simon 313bbe8b49
fix wrong resolve doc string 2023-08-06 10:26:47 +07:00
Simon 6022bdd3cd
fix doc string 2023-07-24 11:27:19 +07:00
lamusmaser 1be80b24c2
Implement #490 - Add version API and add local_version function. (#491)
* Add version API and add local_version function.

* Minor adjustments for linting.

* Add missing newlines for linter.

* Add missing comma to `urls.py`.

* Remove `version/` endpoint.

* Remove the `VersionView`.

* Prepare `PingView` for removal of the `is_static` response.

* Remove the `is_unstable` response from `ReleaseVersion`.

* Readd missing class instantiation for first call of `ReleaseVersion`.
2023-06-28 10:50:28 +07:00
simon efca460e9d
download now task handling 2023-04-29 13:22:10 +07:00
simon 8f3b832069
[API] add dl autostart query param 2023-04-29 12:55:12 +07:00
simon 790ba3d20e
fix linter 2023-04-22 11:19:44 +07:00
simon 89779ec13b
consolidate update status priority 2023-04-21 17:25:04 +07:00
simon 5cd845e55d
fix type compatibility 2023-04-21 16:09:12 +07:00
simon db0ade203a
return task commands to notification backend 2023-03-30 11:39:22 +07:00
simon 8cf41a4043
merge redis backend branch into testing 2023-03-23 11:35:46 +07:00
simon 3bd6075a9b
[API] remove old task endpoint add task-name and task-id 2023-03-22 16:35:25 +07:00
simon 259008df50
add notification api endpoint 2023-03-14 15:00:39 +07:00
Gavin Palmer 9afd81b372
reset token api refactor (#446)
* move reset-token from home to api

* cleanup

* cleanup markdown

* more dev readme cleanup

* remove dev files

* format

* make robot happier

---------

Co-authored-by: Gavin Palmer <gavin@herolfg.com>
2023-03-13 10:07:06 +07:00
simon 666074ed49
refactor download task, consolidate tasks 2023-03-02 14:17:03 +07:00
simon 162c05628c
rename PendingInteract youtube_id kwargs 2023-02-17 10:26:10 +07:00
simon 5ec0636807
[API] add filter subscribed to channel list 2023-02-14 11:12:58 +07:00
simon d9f73622a5
refactor UrlParser into own module, rename enum fields 2023-01-06 15:37:55 +07:00
simon 46229db64c
[API] add download now endpoint, fix vid_type 2023-01-02 16:50:53 +07:00
simon 6ed2308f99
[API] add watched state endpoints 2022-12-23 20:39:14 +07:00
simon 8af10f8c07
switch ignore to API call 2022-12-22 19:42:59 +07:00
simon 7a9f5e5685
[API] add and use DELETE channel endpoint 2022-12-22 19:24:48 +07:00
simon db21ee8bcb
[API] add and use DELETE video endpoint 2022-12-22 19:01:13 +07:00
simon 71dd63d3f0
[API] implement refresh GET and POST endpoints 2022-12-19 11:24:37 +07:00
simon 018b578982
[API] add reindex endpoing 2022-12-11 17:13:07 +07:00
simon 49b120ed2b
refactor RedisQueue to take a queue_name arg 2022-12-10 14:51:17 +07:00
simon 13d1927840
clean up API logging 2022-11-24 11:11:36 +07:00
simon aa1d0b759e
[API] implement similar video endpoint 2022-11-21 15:13:15 +07:00
simon fb046bed5b
[API] implement get comments API view 2022-11-12 12:42:08 +07:00
simon a18723991a
implement snapshot API views 2022-10-29 17:43:38 +07:00
simon 927e6fa909
create channel parameter for downloads api view 2022-10-17 18:58:21 +07:00
simon bd7cdb3942
append query parameters to pagination 2022-10-17 18:40:20 +07:00
PrivateGER 57a9fff82b
Add API endpoint for searching (#303)
* Add API endpoint for searching + use it in frontend

* Fix linting warnings

* Remove multisearch API call

* Avoid 301 and fix up multiline comment
2022-08-19 17:52:37 +07:00
simon 74d74d95a1
store validation result, return in API 2022-06-23 06:48:55 +07:00
simon e5f43e5fe9
API: implement cookie PUT request to import cookie 2022-06-21 08:06:38 +07:00