aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/util.py
diff options
context:
space:
mode:
authorAstound <kirito@disroot.org>2025-03-05 12:12:22 +0800
committerAstound <kirito@disroot.org>2025-03-05 12:12:22 +0800
commite8b14ac52846d3c7d0b2842c3248ad475249ada4 (patch)
tree473f5fa962c3ff8c23f01a620e1b2d98b3eab439 /youtube/util.py
parent35daa8879f7e0741d7723d93dca681c061658c68 (diff)
downloadyt-local-e8b14ac52846d3c7d0b2842c3248ad475249ada4.tar.lz
yt-local-e8b14ac52846d3c7d0b2842c3248ad475249ada4.tar.xz
yt-local-e8b14ac52846d3c7d0b2842c3248ad475249ada4.zip
Improve buffer management for different platforms
- Introduced `BUFFER_CONFIG` to define buffer sizes for various systems (webOS, Samsung Tizen, Android TV, desktop). - Added `detectSystem()` function to determine the platform based on `navigator.userAgent`. - Updated `Stream` constructor to use platform-specific buffer sizes dynamically. - Added console log for debugging detected system and applied buffer size.
Diffstat (limited to 'youtube/util.py')
0 files changed, 0 insertions, 0 deletions