fa7273b328
fix: race condition in os.makedirs causing worker crashes
...
git-sync-with-mirror / git-sync (push) Successful in 13s
CI / test (push) Successful in 47s
Replace check-then-create pattern with exist_ok=True to prevent
FileExistsError when multiple workers initialize simultaneously.
Affects:
- subscriptions.py: open_database()
- watch.py: save_decrypt_cache()
- local_playlist.py: add_to_playlist()
- util.py: fetch_url(), get_visitor_data()
- settings.py: initialization
Fixes Gunicorn worker startup failures in multi-worker deployments.
2026-03-28 16:06:47 -05:00
Mageas
66f396ce32
Add a button to remove playlist
...
Signed-off-by: Jesús <heckyel@hyperbola.info >
2021-09-10 17:58:21 -05:00
James Taylor
0ee1aabc74
Add local playlist export option
...
Temporary workaround for #61
Signed-off-by: Jesús <heckyel@hyperbola.info >
2021-05-06 14:24:00 -05:00
Jesús
b9a3082e7c
pep8
2020-12-15 21:52:04 -05:00
zrose584
37d286fc7c
put the slash back
2020-10-12 13:46:50 +02:00
zrose584
7d7b072a5b
always proxy cached thumbnails
2020-10-10 18:42:54 +02:00
zrose584
f8d9be2d5a
settings.py: add 'proxy_images'
2020-10-07 19:28:52 +02:00
James Taylor
b4406df9cf
Merge branch 'modular-data-extract'
...
Commits in this branch are prefixed with "Extraction:"
This branch refactors data extraction. All such functionality has been moved to the yt_data_extract module.
Responses from requests are given to the module and it parses them into a consistent, more useful format.
The dependency on youtube-dl has also been dropped and this functionality has been built from scratch for these reasons:
(1) I've noticed youtube-dl breaks more often than invidious (which uses watch page extraction built from scratch) in response to changes from Youtube, so I'm hoping what I wrote will also be less brittle.
(2) Such breakage is inconvenient because I have to manually merge the fixes since I had to make changes to youtube-dl to make it do things such as extracting related videos.
(3) I have no control over error handling and request pooling with youtube-dl, since it does all the requests (these would require intrusive changes I don't want to maintain).
(4) I will now be able to finally display the number of comments and whether comments are disabled without making additional requests.
2019-12-19 21:33:54 -08:00
James Taylor
d1d908d5b1
Extraction: Move html post processing stuff from yt_data_extract to util
2019-12-19 19:48:53 -08:00
James Taylor
014da8d3ae
Fix list of local playlists not being given on subscriptions page and local playlist page
2019-09-15 15:15:23 -07:00
James Taylor
ac32b24b2a
Merge subscriptions into master
2019-09-06 15:45:01 -07:00
James Taylor
85572c94de
Layout: refactor item system to be more maintainable, add vertical item type
2019-08-23 14:48:00 -07:00
James Taylor
2e75c6d960
Merge flask framework and other stuff from master
2019-08-09 22:01:04 -07:00
James Taylor
adc40bc760
Add pagination for local playlists
2019-08-09 21:18:43 -07:00
James Taylor
6261add37d
Convert local_playlist to flask framework
2019-07-06 23:08:04 -07:00
James Taylor
ae5fd9eb00
Make thumbnails work and other stuff
2019-06-05 00:41:15 -07:00
James Taylor
b32330be4f
refactor common.py into 3 files
2019-02-21 21:32:31 -08:00
James Taylor
1ba38a5c9c
Content-type: text/plain for errors or status messages
2019-01-06 19:31:01 -08:00
James Taylor
36e0409db4
Add newline to end of files
2019-01-06 18:20:29 -08:00
James Taylor
bb2d40ac83
rename env['fields'] to env['parameters'] and rename fields to parameters in general
2019-01-06 01:33:52 -08:00
James Taylor
eea16e5ac3
WSGI for GET and POST requests with path data
2019-01-06 01:19:03 -08:00
James Taylor
31a60602de
WSGI for /edit_playlist
2019-01-05 01:23:04 -08:00
James Taylor
717bf21093
Can now store settings&data in ~/.youtube-local, keeping program files separate
2018-11-10 00:27:43 -08:00
James Taylor
2f76eafbd6
Local playlists: save video thumbnails locally
2018-10-31 14:50:39 -07:00
James Taylor
f982273f85
Don't add duplicates to playlists
2018-10-30 14:58:08 -07:00
James Taylor
eea034d5a9
fix errors when data directory doesn't exist already
2018-07-31 16:44:21 -07:00
James Taylor
d170a75a93
ability to remove videos from playlist
2018-07-20 01:41:12 -07:00
James Taylor
52835db0a8
add support for viewing local playlists
2018-07-08 18:40:39 -07:00
James Taylor
26620cbac8
front-end support for adding to playlists
2018-07-08 16:22:23 -07:00
James Taylor
6ad09eb53a
server-side support for adding to local playlists
2018-07-08 01:06:54 -07:00