home · contact · privacy
ytplom
13 hours agoSimplify _ReqMap code. master
Christian Heller [Thu, 26 Dec 2024 09:27:36 +0000 (10:27 +0100)]
Simplify _ReqMap code.

13 hours agoRe-organize http module code, mostly alphabetically.
Christian Heller [Thu, 26 Dec 2024 09:11:12 +0000 (10:11 +0100)]
Re-organize http module code, mostly alphabetically.

13 hours agoMinor re-organizations and refactorings of http module.
Christian Heller [Thu, 26 Dec 2024 09:04:31 +0000 (10:04 +0100)]
Minor re-organizations and refactorings of http module.

14 hours agoOn purge command, reload playlist, to avoid impossible accesses.
Christian Heller [Thu, 26 Dec 2024 08:33:45 +0000 (09:33 +0100)]
On purge command, reload playlist, to avoid impossible accesses.

14 hours agoOn sync, rather than only unlink "deleted" files, also remove their DB entries.
Christian Heller [Thu, 26 Dec 2024 08:07:07 +0000 (09:07 +0100)]
On sync, rather than only unlink "deleted" files, also remove their DB entries.

20 hours agoTo file view, add button to unlink locally.
Christian Heller [Thu, 26 Dec 2024 02:26:35 +0000 (03:26 +0100)]
To file view, add button to unlink locally.

26 hours agoAdd "do not sync" flag to keep files from syncing without deleting them.
Christian Heller [Wed, 25 Dec 2024 20:27:05 +0000 (21:27 +0100)]
Add "do not sync" flag to keep files from syncing without deleting them.

26 hours agoDon't try to ffprobe for duration if file is not actually present.
Christian Heller [Wed, 25 Dec 2024 20:24:51 +0000 (21:24 +0100)]
Don't try to ffprobe for duration if file is not actually present.

26 hours agoFix sync using from hash representation for retrieving "missing" files.
Christian Heller [Wed, 25 Dec 2024 19:59:20 +0000 (20:59 +0100)]
Fix sync using from hash representation for retrieving "missing" files.

27 hours agoFor sync, identify missing files by .digest.b64 rather than relative path.
Christian Heller [Wed, 25 Dec 2024 19:55:58 +0000 (20:55 +0100)]
For sync, identify missing files by .digest.b64 rather than relative path.

28 hours agoTo file data view, add duration as per ffprobe.
Christian Heller [Wed, 25 Dec 2024 18:28:56 +0000 (19:28 +0100)]
To file data view, add duration as per ffprobe.

3 days agoFix variability of VideoFile hash due to missing sorting of joined tags.
Christian Heller [Mon, 23 Dec 2024 16:14:51 +0000 (17:14 +0100)]
Fix variability of VideoFile hash due to missing sorting of joined tags.

3 days agoImprove verbosity of sync script.
Christian Heller [Mon, 23 Dec 2024 16:14:20 +0000 (17:14 +0100)]
Improve verbosity of sync script.

4 days agoDon't start right into playback, simplify player control.
Christian Heller [Sun, 22 Dec 2024 13:21:27 +0000 (14:21 +0100)]
Don't start right into playback, simplify player control.

7 days agoFix broken tag editing.
Christian Heller [Thu, 19 Dec 2024 04:38:10 +0000 (05:38 +0100)]
Fix broken tag editing.

7 days agoFix tags not showing in file view.
Christian Heller [Thu, 19 Dec 2024 04:07:32 +0000 (05:07 +0100)]
Fix tags not showing in file view.

7 days agoFix playing link brokenness.
Christian Heller [Thu, 19 Dec 2024 03:30:18 +0000 (04:30 +0100)]
Fix playing link brokenness.

8 days agoSimplify keeping alive of events stream.
Christian Heller [Wed, 18 Dec 2024 16:49:56 +0000 (17:49 +0100)]
Simplify keeping alive of events stream.

8 days agoMinor improvements to events connection handling.
Christian Heller [Wed, 18 Dec 2024 15:02:24 +0000 (16:02 +0100)]
Minor improvements to events connection handling.

8 days agoMinor code clean-up.
Christian Heller [Wed, 18 Dec 2024 13:23:59 +0000 (14:23 +0100)]
Minor code clean-up.

9 days agoIdentify "playing" entry in playlist by playlist.idx rather than digest, to avoid...
Christian Heller [Tue, 17 Dec 2024 00:34:01 +0000 (01:34 +0100)]
Identify "playing" entry in playlist by playlist.idx rather than digest, to avoid entries of same file claiming to be "playing" in parallel.

9 days agoRestart playlist after ending of last file.
Christian Heller [Tue, 17 Dec 2024 00:29:34 +0000 (01:29 +0100)]
Restart playlist after ending of last file.

10 days agoIn /playlist, don't block moving up/down towards playing entry, rather jump over it.
Christian Heller [Mon, 16 Dec 2024 14:33:36 +0000 (15:33 +0100)]
In /playlist, don't block moving up/down towards playing entry, rather jump over it.

10 days agoRe-organize Player code.
Christian Heller [Mon, 16 Dec 2024 13:52:49 +0000 (14:52 +0100)]
Re-organize Player code.

11 days agoSlightly reorganize sync script.
Christian Heller [Sun, 15 Dec 2024 08:05:09 +0000 (09:05 +0100)]
Slightly reorganize sync script.

11 days agoClose events stream earlier by checking for frequent client pings.
Christian Heller [Sun, 15 Dec 2024 07:27:41 +0000 (08:27 +0100)]
Close events stream earlier by checking for frequent client pings.

11 days agoSimplify config file tagset fields.
Christian Heller [Sun, 15 Dec 2024 02:45:22 +0000 (03:45 +0100)]
Simplify config file tagset fields.

11 days agoRe-organize tags code.
Christian Heller [Sun, 15 Dec 2024 02:37:53 +0000 (03:37 +0100)]
Re-organize tags code.

2 weeks agoAdd option for tags whitelist prefilter, i.e. tags of which to show files even if...
Christian Heller [Wed, 11 Dec 2024 06:28:10 +0000 (07:28 +0100)]
Add option for tags whitelist prefilter, i.e. tags of which to show files even if not matching needed-tags prefilter.

2 weeks agoMinor redesigns/refactorings/renamings on Tag code.
Christian Heller [Wed, 11 Dec 2024 05:55:03 +0000 (06:55 +0100)]
Minor redesigns/refactorings/renamings on Tag code.

2 weeks agoAdd config option to (dis-)allow file data editing.
Christian Heller [Wed, 11 Dec 2024 02:17:44 +0000 (03:17 +0100)]
Add config option to (dis-)allow file data editing.

2 weeks agoAdd config option to always apply invisible AND tag filter.
Christian Heller [Wed, 11 Dec 2024 00:28:56 +0000 (01:28 +0100)]
Add config option to always apply invisible AND tag filter.

2 weeks agoTurn tags-filtering from OR into AND filter.
Christian Heller [Tue, 10 Dec 2024 23:45:54 +0000 (00:45 +0100)]
Turn tags-filtering from OR into AND filter.

2 weeks agoTreat tag filter input fields as OR of comma-delimited terms.
Christian Heller [Tue, 10 Dec 2024 23:38:43 +0000 (00:38 +0100)]
Treat tag filter input fields as OR of comma-delimited terms.

2 weeks agoIn YT result page, don't directly link files, instead link their pages.
Christian Heller [Tue, 10 Dec 2024 22:38:26 +0000 (23:38 +0100)]
In YT result page, don't directly link files, instead link their pages.

2 weeks agoTo each new file, add "new" tag.
Christian Heller [Tue, 10 Dec 2024 22:16:42 +0000 (23:16 +0100)]
To each new file, add "new" tag.

2 weeks agoUpdate yt-dlp version.
Christian Heller [Tue, 10 Dec 2024 22:15:51 +0000 (23:15 +0100)]
Update yt-dlp version.

2 weeks agoReduce overkill in type definitions.
Christian Heller [Tue, 10 Dec 2024 22:06:02 +0000 (23:06 +0100)]
Reduce overkill in type definitions.

2 weeks agoAdd config option to hide YT queries older than a defined cutoff datetime.
Christian Heller [Tue, 10 Dec 2024 20:41:57 +0000 (21:41 +0100)]
Add config option to hide YT queries older than a defined cutoff datetime.

2 weeks agoRemove over-complicating tag editing in playlist view.
Christian Heller [Tue, 10 Dec 2024 16:21:37 +0000 (17:21 +0100)]
Remove over-complicating tag editing in playlist view.

2 weeks agoIn all-pages player control, show playing titles tags.
Christian Heller [Tue, 10 Dec 2024 16:14:20 +0000 (17:14 +0100)]
In all-pages player control, show playing titles tags.

2 weeks agoIn all-pages player control, link playing title to file page.
Christian Heller [Tue, 10 Dec 2024 15:57:51 +0000 (16:57 +0100)]
In all-pages player control, link playing title to file page.

2 weeks agoReorganize playlist page to only use JS API, smaller changes along the other template...
Christian Heller [Tue, 10 Dec 2024 14:30:39 +0000 (15:30 +0100)]
Reorganize playlist page to only use JS API, smaller changes along the other templates too.

2 weeks agoGreatly simplify template context type checking.
Christian Heller [Fri, 6 Dec 2024 16:17:05 +0000 (17:17 +0100)]
Greatly simplify template context type checking.

2 weeks agoHave basic player control as part of every page's head rather than only as playlist...
Christian Heller [Fri, 6 Dec 2024 15:54:53 +0000 (16:54 +0100)]
Have basic player control as part of every page's head rather than only as playlist page element.

3 weeks agoImmediately start player after loading files.
Christian Heller [Thu, 5 Dec 2024 04:37:37 +0000 (05:37 +0100)]
Immediately start player after loading files.

3 weeks agoFix broken redir_target passing.
Christian Heller [Thu, 5 Dec 2024 03:21:06 +0000 (04:21 +0100)]
Fix broken redir_target passing.

3 weeks agoAdd filtering to /playlist.
Christian Heller [Thu, 5 Dec 2024 03:01:44 +0000 (04:01 +0100)]
Add filtering to /playlist.

3 weeks agoMake background color configurable.
Christian Heller [Wed, 4 Dec 2024 17:21:55 +0000 (18:21 +0100)]
Make background color configurable.

3 weeks agoShow reduced file data form/table in playlist view.
Christian Heller [Wed, 4 Dec 2024 16:24:00 +0000 (17:24 +0100)]
Show reduced file data form/table in playlist view.

3 weeks agoFor VideoFiles, renew .last_update any time .save() saves actual changes to other...
Christian Heller [Tue, 3 Dec 2024 06:01:52 +0000 (07:01 +0100)]
For VideoFiles, renew .last_update any time .save() saves actual changes to other DB-recored fields.

3 weeks agoTo /files view, add filtering by tags.
Christian Heller [Tue, 3 Dec 2024 05:22:44 +0000 (06:22 +0100)]
To /files view, add filtering by tags.

3 weeks agoIn /file view, for tag addition propose tags used elsewhere.
Christian Heller [Tue, 3 Dec 2024 05:01:11 +0000 (06:01 +0100)]
In /file view, for tag addition propose tags used elsewhere.

3 weeks agoAdd file tagging.
Christian Heller [Tue, 3 Dec 2024 04:21:16 +0000 (05:21 +0100)]
Add file tagging.

3 weeks agoIn /file view, move deletion checkbox out of danger zone.
Christian Heller [Tue, 3 Dec 2024 03:34:58 +0000 (04:34 +0100)]
In /file view, move deletion checkbox out of danger zone.

3 weeks agoTo fix sync, add comparison and string representation to Hash class.
Christian Heller [Tue, 3 Dec 2024 03:03:33 +0000 (04:03 +0100)]
To fix sync, add comparison and string representation to Hash class.

3 weeks agoStore files hash digest as BLOB field .digest, overhaul DB and migrations code.
Christian Heller [Tue, 3 Dec 2024 02:58:45 +0000 (03:58 +0100)]
Store files hash digest as BLOB field .digest, overhaul DB and migrations code.

3 weeks agoReorganize DB code and especially migrations handling.
Christian Heller [Mon, 2 Dec 2024 13:30:29 +0000 (14:30 +0100)]
Reorganize DB code and especially migrations handling.

3 weeks agoEnsure DbConn encapsulates its executions into rollbackable transactions.
Christian Heller [Mon, 2 Dec 2024 11:12:04 +0000 (12:12 +0100)]
Ensure DbConn encapsulates its executions into rollbackable transactions.

3 weeks agoFrom sync script, remove no-longer-necessary ID name differentiation.
Christian Heller [Sun, 1 Dec 2024 07:48:57 +0000 (08:48 +0100)]
From sync script, remove no-longer-necessary ID name differentiation.

3 weeks agoTurn files.sha512_digest into new primary key, get rid of .rel_path base64-encoding...
Christian Heller [Sun, 1 Dec 2024 07:42:28 +0000 (08:42 +0100)]
Turn files.sha512_digest into new primary key, get rid of .rel_path base64-encoding shenanigans.

3 weeks agoTo files table, add sha512 checksum field.
Christian Heller [Sun, 1 Dec 2024 07:07:59 +0000 (08:07 +0100)]
To files table, add sha512 checksum field.

3 weeks agoMove "delete" flag in files.flags into highest bit.
Christian Heller [Sun, 1 Dec 2024 01:43:50 +0000 (02:43 +0100)]
Move "delete" flag in files.flags into highest bit.

3 weeks agoFix sync script bug of trying to JSONize pathlib.Path objects.
Christian Heller [Sun, 1 Dec 2024 01:35:21 +0000 (02:35 +0100)]
Fix sync script bug of trying to JSONize pathlib.Path objects.

3 weeks agoMinor DbConnection usage fixes, a renaming for convenience.
Christian Heller [Sat, 30 Nov 2024 22:55:21 +0000 (23:55 +0100)]
Minor DbConnection usage fixes, a renaming for convenience.

3 weeks agoRefactor DbConnection into context manager.
Christian Heller [Sat, 30 Nov 2024 22:45:10 +0000 (23:45 +0100)]
Refactor DbConnection into context manager.

3 weeks agoIn http module, mark with underscore constants not used outside.
Christian Heller [Sat, 30 Nov 2024 18:44:13 +0000 (19:44 +0100)]
In http module, mark with underscore constants not used outside.

3 weeks agoRefactor YoutubeQuery creation.
Christian Heller [Sat, 30 Nov 2024 18:40:55 +0000 (19:40 +0100)]
Refactor YoutubeQuery creation.

3 weeks agoFix /yt_result showing file path even if file not .present.
Christian Heller [Sat, 30 Nov 2024 18:23:21 +0000 (19:23 +0100)]
Fix /yt_result showing file path even if file not .present.

3 weeks agoRefactor VideoFile.flags setting.
Christian Heller [Sat, 30 Nov 2024 18:18:36 +0000 (19:18 +0100)]
Refactor VideoFile.flags setting.

3 weeks agoStart moving HTTP-related code to dedicated file.
Christian Heller [Sat, 30 Nov 2024 18:05:21 +0000 (19:05 +0100)]
Start moving HTTP-related code to dedicated file.

3 weeks agoFrom /files path filtering, remove case sensitivity.
Christian Heller [Fri, 29 Nov 2024 06:29:49 +0000 (07:29 +0100)]
From /files path filtering, remove case sensitivity.

3 weeks agoIn /files view, also show file sizes.
Christian Heller [Fri, 29 Nov 2024 06:27:09 +0000 (07:27 +0100)]
In /files view, also show file sizes.

3 weeks agoTo /files view, add "play" button for immediate playing of (present) files.
Christian Heller [Fri, 29 Nov 2024 05:58:26 +0000 (06:58 +0100)]
To /files view, add "play" button for immediate playing of (present) files.

3 weeks agoFix sync script bug of adding paths rather than lists of paths to missings.
Christian Heller [Fri, 29 Nov 2024 05:10:15 +0000 (06:10 +0100)]
Fix sync script bug of adding paths rather than lists of paths to missings.

3 weeks agoReplace PathStr hassles with pathlib.Path.
Christian Heller [Fri, 29 Nov 2024 05:06:14 +0000 (06:06 +0100)]
Replace PathStr hassles with pathlib.Path.

3 weeks agoOn playlist view, if playlist empty, force Player (re-)loading files.
Christian Heller [Fri, 29 Nov 2024 01:11:25 +0000 (02:11 +0100)]
On playlist view, if playlist empty, force Player (re-)loading files.

3 weeks agoGet rid of unnecessary "./" prefixes to VideoFile.rel_path.
Christian Heller [Fri, 29 Nov 2024 01:06:21 +0000 (02:06 +0100)]
Get rid of unnecessary "./" prefixes to VideoFile.rel_path.

3 weeks agoTo files view, add VideoFile.present filter.
Christian Heller [Fri, 29 Nov 2024 00:48:37 +0000 (01:48 +0100)]
To files view, add VideoFile.present filter.

4 weeks agoDon't try to sync file missing on both sides.
Christian Heller [Thu, 28 Nov 2024 22:45:57 +0000 (23:45 +0100)]
Don't try to sync file missing on both sides.

4 weeks agoAdd basic filtering by filename to /files view.
Christian Heller [Thu, 28 Nov 2024 21:14:53 +0000 (22:14 +0100)]
Add basic filtering by filename to /files view.

4 weeks agoEnforce proper mpv window closing even on direct keystroke input.
Christian Heller [Thu, 28 Nov 2024 18:53:29 +0000 (19:53 +0100)]
Enforce proper mpv window closing even on direct keystroke input.

4 weeks agoAdd up/down movement of playlist entries.
Christian Heller [Thu, 28 Nov 2024 16:32:13 +0000 (17:32 +0100)]
Add up/down movement of playlist entries.

4 weeks agoAllow greater playlist control even if mpv not directly running.
Christian Heller [Thu, 28 Nov 2024 15:41:41 +0000 (16:41 +0100)]
Allow greater playlist control even if mpv not directly running.

4 weeks agoAdd playlist jumping.
Christian Heller [Thu, 28 Nov 2024 14:52:54 +0000 (15:52 +0100)]
Add playlist jumping.

4 weeks agoImprove/simplify templating.
Christian Heller [Thu, 28 Nov 2024 14:27:34 +0000 (15:27 +0100)]
Improve/simplify templating.

4 weeks agoReduce reliance on mpv.py conveniences for raw libmpv command access.
Christian Heller [Thu, 28 Nov 2024 13:57:36 +0000 (14:57 +0100)]
Reduce reliance on mpv.py conveniences for raw libmpv command access.

4 weeks agoRefactor redirects.
Christian Heller [Wed, 27 Nov 2024 06:54:10 +0000 (07:54 +0100)]
Refactor redirects.

4 weeks agoReduce dependency on DownloadsManager for mere VideoFile data retrievals.
Christian Heller [Wed, 27 Nov 2024 06:49:42 +0000 (07:49 +0100)]
Reduce dependency on DownloadsManager for mere VideoFile data retrievals.

4 weeks agoLink playlist entries to file data pages.
Christian Heller [Wed, 27 Nov 2024 06:24:17 +0000 (07:24 +0100)]
Link playlist entries to file data pages.

4 weeks agoMore broadly use .rel_path for ID'ing VideoFiles, base64-encode where necessary.
Christian Heller [Wed, 27 Nov 2024 05:40:05 +0000 (06:40 +0100)]
More broadly use .rel_path for ID'ing VideoFiles, base64-encode where necessary.

4 weeks agoSome variable renamings for better clarity.
Christian Heller [Wed, 27 Nov 2024 04:53:51 +0000 (05:53 +0100)]
Some variable renamings for better clarity.

4 weeks agoAdd Config class reading from DEFAULTS, environ, and config file.
Christian Heller [Wed, 27 Nov 2024 03:41:13 +0000 (04:41 +0100)]
Add Config class reading from DEFAULTS, environ, and config file.

4 weeks agoRefactor DownloadsDb (now DownloadsManager).
Christian Heller [Wed, 27 Nov 2024 01:45:09 +0000 (02:45 +0100)]
Refactor DownloadsDb (now DownloadsManager).

4 weeks agoFix breakages due to previous unfinished commit.
Christian Heller [Tue, 26 Nov 2024 23:37:43 +0000 (00:37 +0100)]
Fix breakages due to previous unfinished commit.

4 weeks agoRefactor page naming.
Christian Heller [Tue, 26 Nov 2024 23:07:49 +0000 (00:07 +0100)]
Refactor page naming.

4 weeks agoUpdate sync script, prefer rows with newer .last_update.
Christian Heller [Tue, 26 Nov 2024 14:15:28 +0000 (15:15 +0100)]
Update sync script, prefer rows with newer .last_update.

4 weeks agoFix installer breaking on new install due to missing migrations dir.
Christian Heller [Tue, 26 Nov 2024 14:15:13 +0000 (15:15 +0100)]
Fix installer breaking on new install due to missing migrations dir.

4 weeks agoAdd files.last_update field to renew on file.flags changes, and migration mechanism...
Christian Heller [Mon, 25 Nov 2024 05:40:12 +0000 (06:40 +0100)]
Add files.last_update field to renew on file.flags changes, and migration mechanism to allow addition of field to table.

4 weeks agoFor sync script, download remote DB temporarily into PATH_TEMP.
Christian Heller [Mon, 25 Nov 2024 02:40:47 +0000 (03:40 +0100)]
For sync script, download remote DB temporarily into PATH_TEMP.