a0f315be51
feature/hls: Add HLS playback support, and refactors documentation for better usability and maintainability. ( #1 )
...
git-sync-with-mirror / git-sync (push) Successful in 32s
CI / test (push) Successful in 46s
## Overview
This PR introduces HLS playback support, improves the player experience, and refactors documentation for better usability and maintainability.
## Key Features
### HLS Playback Support
- Add HLS integration via new JavaScript assets:
- `hls.min.js`
- `plyr.hls.start.js`
- `watch.hls.js`
- Separate DASH and HLS logic:
- `plyr-start.js` → `plyr.dash.start.js`
- `watch.js` → `watch.dash.js`
- Update templates (`embed.html`, `watch.html`) for conditional player loading
### Native Storyboard Preview
- Add `native_player_storyboard` setting in `settings.py`
- Implement hover thumbnail preview for native player modes
- Add `storyboard-preview.js`
### UI and Player Adjustments
- Update templates and styles (`custom_plyr.css`)
- Modify backend modules to support new player modes:
- `watch.py`, `channel.py`, `util.py`, and related components
### Internationalization
- Update translation files:
- `messages.po`
- `messages.pot`
### Testing and CI
- Add and update tests:
- `test_shorts.py`
- `test_util.py`
- Minor CI and release script improvements
## Documentation
### OpenRC Service Guide Rewrite
- Restructure `docs/basic-script-openrc/README.md` into:
- Prerequisites
- Installation
- Service Management
- Verification
- Troubleshooting
- Add admonition blocks:
- `[!NOTE]`, `[!TIP]`, `[!IMPORTANT]`, `[!WARNING]`, `[!CAUTION]`
- Fix log inspection command:
```bash
doas tail -f /var/log/ytlocal.log
````
* Add path placeholders and clarify permission requirements
* Remove legacy and duplicate content
Reviewed-on: #1
Co-authored-by: Astounds <kirito@disroot.org >
Co-committed-by: Astounds <kirito@disroot.org >
2026-04-20 01:22:55 -04:00
e03f40d728
fix error handling, null URLs in templates, and Radio playlist support
...
git-sync-with-mirror / git-sync (push) Successful in 13s
CI / test (push) Successful in 49s
- Global error handler: friendly messages for 429, 502, 403, 400
instead of raw tracebacks. Filter FetchError from Flask logger.
- Fix None URLs in templates: protect href/src in common_elements,
playlist, watch, and comments templates against None values.
- Radio playlists (RD...): redirect /playlist?list=RD... to
/watch?v=...&list=RD... since YouTube only supports them in player.
- Wrap player client fallbacks (ios, tv_embedded) in try/catch so
a failed fallback doesn't crash the whole page.
2026-03-27 21:23:03 -05:00
James Taylor
a9edc54aac
Use extract_approx_int for comment likes
...
Full digits no longer available
Closes #64
Signed-off-by: Jesús <heckyel@hyperbola.info >
2021-06-10 12:47:09 -05:00
Jesús
65300003cd
Fix data comments 00ef1c8627
2021-02-26 13:16:01 -05:00
James Taylor
00ef1c8627
Fix comment replies
...
Comment reply protobuf now requires the channel id of the uploader
of the video. Otherwise the endpoint returns 500.
Instead of making the protobuf ourselves and passing this data
around through query parameters, just use the ctoken provided to us
but modify the max_replies field from 10 to 250.
Fixes #53
Signed-off-by: Jesús <heckyel@hyperbola.info >
2021-02-26 11:39:23 -05:00
Jesús
1f4d7cc958
General theme: fix syntax W3C markup and add improve 'Published' date
...
Signed-off-by: Jesús <heckyel@hyperbola.info >
2020-12-30 16:52:26 -05:00
Jesús
7a765dc664
Change general design theme
2020-12-14 23:44:29 -05:00
James Taylor
b126ce1aa6
Video comments: replace with error message if there is error
...
Such as 429 error, or an exception
2020-11-29 18:56:22 -08:00
James Taylor
d3230e8daf
Remove commenting system. Because:
...
- Actually using it will result in comments being shadowbanned,
even those posted from Youtube's interfacs, because your account
gets downranked since no analytics are present so it looks like a
bot posting the comment.
- It's been broken for awhile
2020-10-21 19:58:31 -07:00
James Taylor
95f2f027ea
Comments.js: Add open in new tab button under replies as fallback
...
if xhr request fails
2020-10-20 17:48:18 -07:00
zrose584
debc11931f
add comments.js
2020-10-07 20:32:57 +02:00
James Taylor
753f6c5389
Jump video to timestamp in description or comments
2020-09-18 17:32:28 -07:00
James Taylor
98777ee825
Extraction: Rewrite item_extraction for better error handling and readability, rename extracted names for more consistency
2019-12-18 19:39:16 -08:00
James Taylor
d9517a3322
Layout: Put related videos below video when page is too small
2019-08-23 19:24:42 -07:00
James Taylor
fc295ac93d
Convert comment posting system to flask framework
2019-07-21 21:48:54 -07:00
James Taylor
8cad77ad0d
Convert comments to flask framework
2019-07-19 22:27:10 -07:00