Commit Graph

1337 Commits (73c82a91c096021ce62536a85d75780f696a2e32)
 

Author SHA1 Message Date
simon 6a6665bdf9
implement simple, aka none keyword query 2 years ago
simon 8e8c00af40
implement playlist keyword search, fix channel subscribed keyword 2 years ago
simon ae3cf7eb80
add channel keyword search 2 years ago
simon 0a2b6ee90a
add keyword search framework, implement video search 2 years ago
simon d065b5b90a
reduce uwsgi logging to errors only 2 years ago
simon 0528220b5e
authenticate media and thumb requests 2 years ago
simon f0850522a7 Merge branch 'master' into testing 2 years ago
simon cc2fff8bef
use info_dict for message, simplify cache template, #271 2 years ago
simon 2d13011866
bump yt-dlp 2 years ago
simon 146f17bf74
shutil.move fix take 2, #build
Changed:
- use shutil.copyfile for copy_function
- fixed typo
2 years ago
simon b406250ae2
use shutil.copyfile for shutil.move calls 2 years ago
simon ed9237b69d
fix typo 2 years ago
simon 393e00866b
Desc preview, nginx fix, #build
Changed:
- Requires new env var: TA_HOST, hostname of your application
- Showing preview for description text, by @p0358
- Fix nginx user permission, by @p0358
- Refactor IndexPaginate to take loop callback
- Fix backup for large index using loop callback
- Fix deactivating missing channels on reindex
2 years ago
p0358 411b09629a
Better description view for videos and playlists (#272)
* draft

* proper implementation of description line clamping

* use a JS event that's potentially faster for text expand button visibility update

* remove desc title text, move show button after desc

Co-authored-by: simon <simobilleter@gmail.com>
2 years ago
p0358 79996f6838
Fix permission/mount issues from #268 (#270)
* make nginx run as root within the container (#268)

* move file to videos path with fallback to regular copy with no metadata copying (#268)

* use `copy_function=shutil.copy` everywhere with `shutil.move`
2 years ago
simon 6bb7f80ea2
Refactor IndexPaginate
- add callback function
- implement callback for ElasticBackup
2 years ago
simon 3b17c01c6d
add TA_HOST env for ALLOWED_HOSTS 2 years ago
simon 91bccfd057
deactivate non existing channels on reindex 2 years ago
simon 8cca09e0ac
remove ta_json backup file, keep only es_ndjson 2 years ago
simon 1479516689
Reimagining the channel pages, #build
Changed:
- Split the channel-id page into subpages
- Channel videos, channel playlist, channel about
- Disable es startup check to test ES8
2 years ago
simon 831e59a626
bump django 2 years ago
simon 6e012383ab
toggle playlist subscribed filter 2 years ago
simon e988192343
add channel_id_about subheading 2 years ago
simon ef3abd01b1
implement channel_id_playlist, handle channel_id_about post 2 years ago
simon e664338845
implement basic channel_id_about view 2 years ago
simon 63a1237683
temporarily disable es version check for testing 2 years ago
simon 6d59da4c86
remove redundant latest tags 2 years ago
simon 5bc67104ea
set restart policy to unless-stopped 2 years ago
simon 72ec78e011
browser extension as prefered cookie sync method 2 years ago
simon de8b7d6b43
bump ES version 2 years ago
simon 048409bb1e
bump TA_VERSION to v0.1.7 2 years ago
simon efff4cd96d
change cookie documentation for v0.1.7 2 years ago
simon 78d7947a5c
a note about subtitle refresh, #260 2 years ago
simon c132a37f03
bump dependencies 2 years ago
simon 4678a7507b
bump dependencies 2 years ago
simon e8e240c89b
Startup fix, cookie improvements, #build
Changed
- lock creating superuser at startup by @dshoreman
- auto validate cookie
- API: return cookie validation state for browser extension
- Finetuning CSS mobile layout
2 years ago
simon 1857ac44ca
fix tablet css breakpoints and grid spacing 2 years ago
simon 8c07932071
delete cookie:valid key when revoking 2 years ago
simon 74d74d95a1
store validation result, return in API 2 years ago
simon b4add20d10
bump yt-dlp 2 years ago
Dave Shoreman e9619c1242
Fix repeated superuser creations after rename/removal (#263)
* Avoid creating superuser if variables are removed

Enables the removal of `TA_USERNAME` and/or `TA_PASSWORD` as a way of
preventing an additional superuser being created when another exists.

In the old code, `ELASTIC_USER` would never error due to the default, so
this replaces the loop with one requirement on `ELASTIC_PASSWORD`.

* Use .superuser_created to prevent re-creation

Creates an empty `.superuser_created` file after successful creation,
and uses this to skip the command on future runs. If the file doesn't
exist, then `TA_USERNAME` and `TA_PASSWORD` will also be required.

* The superuser password can't be empty

...well—it *can*—but the password input of the login form requires a
value so even though the account is created, you can't actually login.

* Parse createsuperuser output for 'exists' error

If a user already exists with the same name as the superuser being
created, the command fails with "Error: That name is already taken".

It's probably safe to assume that user is the one we expect. This parses
the output, treating it as successful so it can be skipped next time.

If it hits the catch-all, something probably failed so we exit.

* Use the cache for persistence

Updates the .superuser_created file to be placed in /cache so that it
gets persisted in a volume between config tweaks and container rebuilds.

Also makes `TA_PASSWORD` required always, because it seems to be needed
by tubearchivist/config/settings.py to generate a secret key.

* Let it work outside Docker

If /cache doesn't exist (i.e. when it's not running in Docker), this
falls back to a `cache` dir in the current working directory instead.

Also renames the file to 'initsu.lock' rather than having it hidden.

* Use flexible fallback path for `celery` command
2 years ago
simon 49d33a2765
Improved Cookie handeling, #build
Changed:
- Cookie: Use IO Stream from Redis directly for cookies
- Cookie: Don't load invalid cookie
- API: Import cookie with PUT request
- Redis: Don't expire Redis messages by default
- Redis: Connections expire automatically
2 years ago
simon ecc58f6c11
API: note about release lagging behind 2 years ago
simon e5f43e5fe9
API: implement cookie PUT request to import cookie 2 years ago
simon 499c47c7a1
move set_cookie to separate method for reusabliity 2 years ago
simon 2cf30e1127
refactor: default set_message in RedisArchivist to True 2 years ago
simon ebfc4a349f
center title and tiles 2 years ago
simon 150c1dc273
add tiles to readme 2 years ago
simon 30abbe9be7
rewrite cookie into redis from io stream, auto validate 2 years ago
simon 40e4ef0e05
auto expire redis connections after 3600secs 2 years ago