Commit Graph

183 Commits

Author SHA1 Message Date
Simon 86d157699a
better 404 handling in views 2024-05-14 17:05:47 +02:00
Simon 9366b8eab9
Feature beat model (#713)
* add django-celery-beat

* implement schedule migration

* fix version_check migration

* remove old schedule init

* better schedule migration

* fix task_config migration

* show task config on settings page

* fix notify url builder

* refactor celery initiation

* fix get task

* fix scheduler mig

* fix linter

* better task_config store on periodic task

* save new schedules

* fix task_config extraction from custom model

* implement auto schedule

* implement schedule delete

* refactor notifications to ES config storage

* downgrade redis

* better notification migration to ES

* add notification url handling

* fix worker start

* fix docs spelling

* don't resend form data on notification refresh

* fix type hints

* move TASK_CONFIG to separate module

* fix partial task config imports

* fix yt_obs typing

* delete schedule

* remove outdated instructions

* create initial schedules

* fix reindex days config key

* fix doc string

* unregister BeatModels
2024-05-09 20:22:36 +07:00
Simon a72be27982
more robust channel title building 2024-03-15 12:01:09 +01:00
Greg 090d88c336
Feature 590 custom playlist (#620)
* add remove custom playlist

* custom playlist page, move video controls

* align to existing code patterns

* cleanup

* resolve merge conflict

* cleanup

* cleanup

* polish

* polish

* some fixes for lint

* resolve merge conflict

* bugfix on delete video/playlist/channel - preserve custom playlist but
delete corresponding videos in custom playlist

* cleanup

* ./deploy.sh validate isort fix - validate runs clean now

* sync to latest master branch

* sync to master

* updates per admin guidance. sync to master

* attempt to resolve merge conflict

* attempt to resolve merge conflict - reintroduce changes to file.

* validate playlist_type

* validate playlist custom action

* move custom id creation to view

* stricter custom playlist matching

* revert unreachable playlist delete check

* undo unneeded playlist matching

---------

Co-authored-by: Simon <simobilleter@gmail.com>
2024-03-10 22:57:59 +07:00
Simon 0ff27ebfb9
fix black linting 2024-01-27 10:26:23 +07:00
spechter 832259ce48
Expanded sorting functionality (#589)
* - Added duration and filesize as options in sorting menu on Home and ChannelId views
- Added keys 'duration' and 'filesize' as valid parameters to sort by
- Mapped 'duration' and 'filesize' to their corresponding es keys

* Fixed spelling

* Changed formatting to comply to maximum line length.

* Locally running "deploy.sh validate" before committing

---------

Co-authored-by: spechter <spechter@spechter.net>
2023-11-15 11:06:51 +07:00
extome 7133d6b441
Better CSS support (#583)
* Remove banner hardcoding

* Refactor "colors" to "stylesheet"

* Remove logo hardcoding

* Remove stylesheet hardcoding

* Add very basic static CSS scanning and a new style

* Respect environment settings

* Check if selected stylesheet still exists

* New theme and title formatting

* Revert migration change

* Code linting

* More outlines for Matrix style

* Change wording in settings

* Forgot this wording

* Add suggested changes
2023-11-09 09:33:03 +07:00
Simon d677f9579e
replace old process view, use user conf api 2023-11-01 22:49: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
Simon 8e79cba7d5
fix continue watching progress matching 2023-10-01 09:34:43 +07:00
Simon 77fef5de57
fix standard duration str agg 2023-09-25 14:53:12 +07:00
Simon 7801ed0d60
fix find_results through SearchProcess 2023-09-25 10:14:14 +07:00
Simon 1cdb9e1ad5
refactor find_results use ElasticWrap directly 2023-09-22 23:54:31 +07:00
Simon 7afeb41469
use SearchProcess for single_lookup 2023-09-22 21:51:27 +07:00
Simon bae11fe1f1
fix appconfig init 2023-09-22 21:27:38 +07:00
Simon 0cacaee213
merge testing 2023-09-22 21:22:32 +07:00
Clark 85b56300b3
Move user configuration from Redis to ES (#533)
* ES Client must bootstrap itself to be the source of config

If this is not done a cyclic loop is created between the config loader and the ES client.
This lays the ground work for ES being the source of all app config.

* auto_download is not used anymore

* Add UserConfig class that encapsulates user config storage

This class will allow the rest of the code to 'not care' about how user properties are stored.
This requires the addition of a ta_users index in ES.

* Create migration task for user config transfer

* Replace getters and setters for each property

Strongly type the user configuration
Migrate missed sponsorblock ID

* Other DB settings will be another PR
2023-09-21 21:46:55 +07:00
Simon a7fc7902f0
refactor single video page to use SearchProcess 2023-09-04 21:43:09 +07:00
Simon 879f5ab52f
refactor match_progress to use SearchProcess 2023-09-04 21:05:29 +07:00
Simon 52d6c59f3f
fix incomplete messages outside of sendprogress task method 2023-08-31 12:16:42 +07:00
Clark fcc1c2a648
Split the settings page (#528)
* Split the settings page

* Add a dashboard page for future use

Create a settings base to keep all the settings pages consistent

* Correct Python formatting

* Fix snapshots not showing in new view
2023-08-31 11:11:31 +07:00
Simon a2eb42ebb9
validate subscribe url type, #299 2023-08-23 21:22:09 +07:00
simon dbaa13bfb0
apply auto_start sort to dl queue 2023-05-07 19:41:37 +07:00
simon 76535c6304
move add to queue to api call 2023-04-22 11:57:09 +07:00
simon 4067b6c182
add channel aggs 2023-04-15 22:55:30 +07:00
simon 8cf41a4043
merge redis backend branch into testing 2023-03-23 11:35:46 +07:00
simon 4f89a0696b
remove legacy progress view 2023-03-19 17:28:13 +07:00
simon f194259ab3
refactor subscribe task backend 2023-03-18 17:46:51 +07:00
simon b2fa92a8c3
refactor channel playlist index task backend 2023-03-18 12:59:16 +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 72f091b85e
fix download filter for ignored videos, #401 2023-02-17 14:04:52 +07:00
simon a34c9479f2
use channel from queue for download query filtering, #431 2023-02-17 12:21:00 +07:00
simon d033573bd6
hide empty shorts and streams from page 2023-01-07 18:12:09 +07:00
simon d9f73622a5
refactor UrlParser into own module, rename enum fields 2023-01-06 15:37:55 +07:00
simon e299308711
match VideoTypeEnum with yt channel paths 2023-01-06 10:11:52 +07:00
Chance Turner 98f5b66826
Lives and shorts (#395)
* Initial shot at adding in live and short videos

* Fix for typo on config variable names

* Remove was_live youtube flag

* Adding startup script to support setting vid_type on ta_video for videos created prior to support for live and shorts

* Linting updates

* More linting fixes

* Removing title variable from loop tuple unpacking
2023-01-02 10:11:06 +07:00
simon ef44cb852c
add new version notification to UI 2022-12-21 18:26:32 +07:00
simon ae6bb4e757
consolidate min var initiate for simple views 2022-12-21 17:44:28 +07:00
simon 18f6455eb2
add reindex buttons to templates 2022-12-19 13:04:53 +07:00
simon f1b89345e2
refactor ElasticBackup and ElasticIndex for better startup handling 2022-11-27 15:41:59 +07:00
simon 1fbd603374
frontend implementation for snapshot integration 2022-10-29 15:49:47 +07:00
simon a5788117de
add dropdown channel agg for download page 2022-10-22 21:23:57 +07:00
simon bd7cdb3942
append query parameters to pagination 2022-10-17 18:40:20 +07:00
simon 9dfd967a32
implement downloads filter per channel 2022-10-17 13:29:21 +07:00
simon fbb52dc93f
implement basic channel query string for downloads page 2022-10-05 15:47:17 +02:00
simon 4b1ebf44c9
handle filenotfounderror for manual cookie import 2022-07-21 23:01:32 +07:00
simon 0ec6558282
jump to timestamp from full search 2022-07-21 17:15:36 +07:00
simon 6e012383ab
toggle playlist subscribed filter 2022-07-04 21:12:54 +07:00
simon ef3abd01b1
implement channel_id_playlist, handle channel_id_about post 2022-07-04 20:25:52 +07:00