mirror of
https://github.com/ngthanhvu/kr-phim.git
synced 2026-08-10 15:27:46 +00:00
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:
+3
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user