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
+1
View File
@@ -27,6 +27,7 @@ export const movies = mysqlTable('movies', {
lang: varchar('lang', { length: 50 }),
type: varchar('type', { length: 50 }),
rating: int('rating'),
views: int('views').notNull().default(0),
content: text('content'),
categories: json('categories').$type<string[]>(),
countries: json('countries').$type<string[]>(),