feat: add HLS proxy, view tracking, and player improvements

- Add HLS proxy middleware for CORS bypass
- Add view tracking API endpoint
- Improve HLS player with proxy fallback mechanism
- Add custom episode support in admin
- Update admin movie list with view count
- Add description expand/collapse on movie detail
- Fix hydration warnings in watch page
This commit is contained in:
ngthanhvu
2026-07-22 11:43:14 -04:00
parent d982449464
commit 221c132e60
15 changed files with 765 additions and 69 deletions
+3 -2
View File
@@ -96,8 +96,9 @@ function movieUpdateTime(movie: any) {
}
const topTrending = computed(() => [...homeCatalog.value]
.sort((a: any, b: any) => (Number(b.rating) || 0) - (Number(a.rating) || 0)
|| movieUpdateTime(b) - movieUpdateTime(a))
.filter((movie: any) => (movie.views || 0) > 0)
.sort((a: any, b: any) => (Number(b.views) || 0) - (Number(a.views) || 0)
|| (Number(b.rating) || 0) - (Number(a.rating) || 0))
.slice(0, 10))
const latestMovies = computed(() => withoutMovies(homeCatalog.value, topTrending.value)