Sync current dev state
Some checks failed
EasyStream Test Suite / test (pull_request) Has been cancelled
EasyStream Test Suite / code-quality (pull_request) Has been cancelled
EasyStream Test Suite / integration-test (pull_request) Has been cancelled

This commit is contained in:
SamiAhmed7777
2025-12-15 17:28:21 -08:00
parent 3bf64b1058
commit f0f346deb9
54 changed files with 11060 additions and 484 deletions

View File

@@ -9,6 +9,7 @@ This document lists concrete gaps, inconsistencies, and improvements identified
- Tasks:
- Decide on canonical filename; rename the actual SQL to `easystream.sql.gz` or fix `docker-compose.yml` to match.
- Update `__install/INSTALL.txt` references to the chosen name.
- Status: Fixed — compose mounts `__install/easystream.sql` and the file exists.
- Caddy root and HLS path
- Issues:
@@ -17,6 +18,7 @@ This document lists concrete gaps, inconsistencies, and improvements identified
- Tasks:
- Change `root * /srv/easystream`.
- In HLS block, set `root * /var/www/hls` (or rewrite to prefix) so `/hls/...` maps to files under `/var/www/hls`.
- Status: Fixed — `Caddyfile` now uses `/srv/easystream` and serves `/hls/*` from `/var/www/hls`.
- Cron image and scripts mismatch + broken init script
- Issues:
@@ -26,12 +28,14 @@ This document lists concrete gaps, inconsistencies, and improvements identified
- Replace all `/srv/viewshark` paths with `/srv/easystream`.
- Repair `init.sh` to write `cfg.php` files to the intended locations and use proper variable names.
- Ensure `crontab` uses the correct file (`/etc/cron.d/easystream`) and executable script names.
- Status: Fixed — cron paths use `/srv/easystream`; `init.sh` writes configs and loads `/etc/cron.d/easystream`.
- Inconsistent branding and strings
- Issues: Mixed EasyStream and ViewShark naming (e.g., `viewshark.sql.gz`, Telegram messages say ViewShark, Caddy paths).
- Issues: Mixed "EasyStream" and "ViewShark" naming (e.g., `viewshark.sql.gz`, Telegram messages say "ViewShark", Caddy paths).
- Tasks:
- Choose a canonical product name (likely EasyStream) and update:
- SQL filename(s), Caddy root, cron paths, userfacing strings (Telegram, admin), comments.
- Choose a canonical product name (likely "EasyStream") and update:
- SQL filename(s), Caddy root, cron paths, user-facing strings (Telegram, admin), comments.
- Status: Partially fixed — code/Caddy/cron now use "EasyStream". Remaining references are in seed data for `db_fileplayers` (JW Player config) inside `__install/easystream.sql` (logo/link and "Powered by VIewShark"). These are PHP-serialized; change via admin UI post-setup or add a PHP migration to safely rewrite.
- API DB helpers missing
- Issues: `api/telegram.php` and `api/auto_post.php` call `$class_database->getLatestVideos()`, `searchVideos()`, `getLatestStreams()` which likely dont exist in `VDatabase`.
@@ -56,6 +60,15 @@ This document lists concrete gaps, inconsistencies, and improvements identified
- Tasks:
- Implement/verify `VLogger::writeToDatabase` + migrations for a `logs` table.
- Extend `log_viewer.php` to page/filter by date, keyword, request id.
- Status: Partially verified — `VLogger::writeToDatabase` exists and `db_logs` table is present in the seed. Next: confirm admin viewer pagination/filters and permissions.
## Status Update (2025-10-29)
- Compose/Caddy/cron mismatches: fixed and validated in config files.
- DB helper methods: implemented in `f_core/f_classes/class.database.php`.
- Branding sweep: remaining only in JW Player seed config (serialized). Propose UI/migration approach.
- CSRF coverage audit: pending.
- Logger DB sink: implemented; UI/ops validation pending.
- Security: CSRF usage coverage
- Tasks: