Commit Graph

63 Commits

Author SHA1 Message Date
simon a4d42573ef
move DurationConverter to separate module 2023-04-13 17:29:17 +07:00
simon 06c7968070
fix silly host_clean and direct access TA_PASSWORD 2023-04-09 13:35:13 +07:00
simon a98a30cc85
elaborate TA_HOST parsed, #441 2023-04-09 13:27:47 +07:00
simon ee4dbf99b3
add type hints 2023-03-31 13:15:30 +07:00
simon 2a0a04ac65
cleanup notifications 2023-03-30 18:20:53 +07:00
simon db0ade203a
return task commands to notification backend 2023-03-30 11:39:22 +07:00
simon 81701df1c7
speed up comments and channel extraction by disabling format test 2023-03-24 10:21:38 +07:00
simon 33b9a012d4
implement api-stop for download_pending 2023-03-23 10:48:43 +07:00
simon 860213c427
fix empty reply 2023-03-23 09:57:16 +07:00
simon 272972429b
handle hard task reset at startup 2023-03-23 09:49:06 +07:00
simon db0e362b7d
make update_subscribed stoppable 2023-03-22 17:01:34 +07:00
simon 3bd6075a9b
[API] remove old task endpoint add task-name and task-id 2023-03-22 16:35:25 +07:00
simon 6b7354b14f
refactor reindex task 2023-03-15 16:59:20 +07:00
simon 58530563ce
fix empty is_pending 2023-03-14 15:07:01 +07:00
simon 2d2431364d
handle get single not found 2023-03-08 13:27:37 +07:00
simon 16440a4170
add generic task command handler 2023-03-08 12:31:03 +07:00
simon 1f08ea9eea
handle empty tasks return 2023-03-07 17:31:21 +07:00
simon 5617d1c7ae
sort by date and delete task results 2023-03-02 14:43:05 +07:00
simon 666074ed49
refactor download task, consolidate tasks 2023-03-02 14:17:03 +07:00
simon 6328e316f4
add task manager integration 2023-03-01 18:13:51 +07:00
simon 571c2ce3a4
ensure load_new_defaults for all manage.py commands, #434 2023-02-18 09:20:09 +07:00
simon 2d942fe9b5
load defaults for schedule builder at startup 2023-02-02 13:06:00 +07:00
simon 114c7c2811
return new version in is_updated 2023-02-02 12:06:24 +07:00
simon 83057d9e54
return files clearded from clear_dl_cache 2023-02-02 10:46:59 +07:00
simon 5d0689abba
fix startup schedule builder for new installs, #408 2023-01-16 09:13:58 +07:00
simon 00d7c33af6
randomize version_check schedule 2023-01-11 22:00:44 +07:00
simon d5885273ac
detect any shorts before adding to queue 2023-01-07 15:41:11 +07:00
simon d9f73622a5
refactor UrlParser into own module, rename enum fields 2023-01-06 15:37:55 +07:00
simon ce4288ff66
add is_short standalone helper function 2023-01-02 21:36:08 +07:00
simon 63f35b19fe
register version_check schedule 2022-12-22 11:17:06 +07:00
simon ef44cb852c
add new version notification to UI 2022-12-21 18:26:32 +07:00
simon 5244cddeb3
add version_check background task 2022-12-21 14:24:24 +07:00
simon f45a3095cb
fix cast, use ENABLE_CAST env var to enable, #331 2022-12-19 14:43:10 +07:00
simon 71dd63d3f0
[API] implement refresh GET and POST endpoints 2022-12-19 11:24:37 +07:00
simon 2753ce93a2
add contains to RedisQueue 2022-12-12 18:01:02 +07:00
simon 49b120ed2b
refactor RedisQueue to take a queue_name arg 2022-12-10 14:51:17 +07:00
simon f1b89345e2
refactor ElasticBackup and ElasticIndex for better startup handling 2022-11-27 15:41:59 +07:00
simon f6c702fba7
refactor and run clear_dl_cache at startup 2022-11-25 18:49:36 +07:00
simon baacd3ee39
better message for running and indexing queue 2022-10-23 12:21:27 +07:00
simon 1896e982b9
codespell lint fixes 2022-08-18 18:51:11 +07:00
simon 474ab22792
handle channel name redirect in UrlListParser, #276 2022-08-12 11:53:31 +07:00
simon eb229440d4
load config into redis on fresh install at startup 2022-07-21 23:01:01 +07:00
simon 0ec6558282
jump to timestamp from full search 2022-07-21 17:15:36 +07:00
simon 2cf30e1127
refactor: default set_message in RedisArchivist to True 2022-06-16 10:37:46 +07:00
simon 09a94d0df5
set relative values directly with path arg 2022-06-15 10:27:29 +07:00
lamusmaser bbb16bb3c2
Update TaskAPIView with GET - #257 PR (#258)
* Initial commit for GET response for TaskAPIView.

* Update for missing space - linting issue.

* Additional linting fixes.

* add is_locked method to check if lock is set

* Update to use `.is_locked` method and add decorator.

* Fix linting issue.

* Fix doubled "rescan" call for locked file.
Removed call to ".owned()" under "is_locked".

* Commenting out GET call in TaskAPI view to revert change for testing.

* Commenting is_locked function to see if Server Response 500 is stopped.

* Reassert is_locked function within RedisArchivist class.

* Create test GET responder.

* Reverting simple GET response change.

* Reapplying simple GET response for `/api/task/`.

* Reapplying change with modification to lock key.

* Documentation update for new GET calls.

* README: fix returned value as `bool` instead of `str`.

* Updating the `is_locked` key reference to "rescan" and "downloading" to fix which key is being retrieved.

* Use dictionary keys, rather than line-by-line statements.

* Fix typo in README for Task View.

Co-authored-by: simon <simobilleter@gmail.com>
2022-06-15 09:15:59 +07:00
simon 0ac9243389
remove unused monitor_cache_dir method 2022-05-24 15:54:41 +07:00
simon a7d9b4584b
implement new YtBase class for index classes 2022-05-24 10:01:30 +07:00
simon 34c18e75f5
add LL and WL as valid playlists with cookie 2022-05-02 11:30:38 +07:00
simon 3a21690309
implement post_process_updated for settings, import cookie 2022-04-30 18:35:04 +07:00