Commit Graph

90 Commits

Author SHA1 Message Date
Cursor Agent
b72691fc62 feat: add advanced popup and redirect protection
Multi-layered protection for English players:
- Block window.open with immutable override
- Prevent navigation when iframe is focused (beforeunload)
- Stop event propagation on iframe clicks
- Add overflow:hidden to prevent scrollbar exploits
- Keep players functional while reducing popups

Note: Some popups may still appear due to iframe cross-origin restrictions
2025-10-04 21:36:15 +00:00
Cursor Agent
d77e3f5694 fix: remove sandbox to allow English players to work
- Remove sandbox attribute that was blocking player functionality
- Add JavaScript popup blocker (limited effectiveness from parent frame)
- Add proper iframe permissions: autoplay, encrypted-media, fullscreen
- Players now work but may still show some popups
- Trade-off: functionality over strict popup blocking
2025-10-04 21:30:15 +00:00
Cursor Agent
d4b1e835e0 fix: use query params for Lumex instead of path
- Change from /movie/{id} and /tv-series/{id} to ?imdb_id={id}
- Movie: {LUMEX_URL}?imdb_id={imdb_id}
- TV: {LUMEX_URL}?imdb_id={imdb_id}&season=1&episode=3
- Now matches actual Lumex API format
2025-10-04 21:28:00 +00:00
Cursor Agent
edb54a8503 feat: block popups and redirects for English players
- Add sandbox attribute to vidsrc and vidlink iframes
- Sandbox allows: scripts, same-origin, forms, presentation
- Sandbox blocks: popups, top navigation, unwanted redirects
- Add referrerpolicy=no-referrer for extra security
- Improves user experience by preventing annoying popups
2025-10-04 21:23:13 +00:00
Cursor Agent
7126d0b5fb fix: implement Lumex API with correct URL format
- Use /movie/{id} for movies
- Use /tv-series/{id}?season=X&episode=Y for TV shows
- Keep route as /players/lumex/{imdb_id}
- Add autoplay=1 parameter
- Update API documentation with season/episode params
- Keep IMDb ID in route but format URL according to Lumex API
2025-10-04 21:20:39 +00:00
Cursor Agent
adefbb1c76 debug: add detailed logging for Lumex and Vibix players
- Log season/episode query parameters
- Log base URLs and final generated URLs
- Track query parameter separator logic
- Help diagnose why Lumex ignores params and Vibix only processes season
2025-10-04 21:17:37 +00:00
Cursor Agent
32cb07a283 fix: restore original Alloha API method with season/episode support
- Use Data.Iframe from Alloha API response (original method)
- Add season, episode, translation query parameters to iframe URL
- Keep season/episode support for Lumex and Vibix
- All Russian players now work with episode selection
2025-10-04 21:12:29 +00:00
Cursor Agent
a0e779f0c9 feat: add season/episode support for Russian players
- Alloha: now uses token_movie API with season/episode params
- Lumex: added season/episode query parameters
- Vibix: added season/episode to iframe URL
- All Russian players now support TV show episode selection
- Better control over playback for series
2025-10-04 20:56:19 +00:00
Cursor Agent
b9afe41156 revert: remove server-side parsing (Vercel limits)
- Removed client_parser.go with heavy HTTP parsing
- Back to simple iframe players for vidsrc and vidlink
- Avoids Vercel function timeout limits
2025-10-04 20:39:07 +00:00
Cursor Agent
1db7391533 feat: add client-side parsing players with Video.js
- Added client-side parsing for Vidsrc and Vidlink
- Custom Video.js player with HLS support
- Auto-detection of m3u8/mp4 streams from iframe
- New routes: /players/vidsrc-parse, /players/vidlink-parse
- Performance API monitoring for stream detection
- Fallback to original iframe if parsing fails
- Updated API documentation
2025-10-04 20:21:55 +00:00
Cursor Agent
1872222346 fix: correct player routes and IDs, add API documentation
- Vidsrc: uses IMDb ID for both movies and TV shows
- Vidlink: uses IMDb ID for movies, TMDB ID for TV shows
- Updated routes: /players/vidsrc/{media_type}/{imdb_id}
- Updated routes: /players/vidlink/movie/{imdb_id}
- New route: /players/vidlink/tv/{tmdb_id}
- Added comprehensive OpenAPI documentation for new players
2025-10-04 19:52:39 +00:00
Cursor Agent
237c035f97 fix: remove dead players (twoembed, autoembed) and fix unused variable 2025-10-04 19:43:50 +00:00
Cursor Agent
2f494c1225 add new players: vidsrc, twoembed, autoembed, vidlink 2025-10-04 19:18:44 +00:00
Cursor Agent
8f42a653c4 fix: remove AllowCredentials from CORS to support wildcard origin 2025-10-04 19:07:22 +00:00
d22a41d5fc Merge branch 'feature/add-streaming-players-v2' into 'main'
feat: add RgShows and IframeVideo streaming players

See merge request foxixus/neomovies-api!4
2025-09-29 10:12:28 +00:00
ad3b9cf664 Merge branch 'feature/remove-webtorrent-fix-issues' into 'main'
Remove WebTorrent player documentation from API docs

See merge request foxixus/neomovies-api!3
2025-09-29 09:29:52 +00:00
factory-droid[bot]
c00c18d208 Remove WebTorrent player documentation from API docs 2025-09-29 08:12:54 +00:00
factory-droid[bot]
8fb0faf9e2 feat: add RgShows and IframeVideo streaming players
🎬 New Streaming Players Added:
- RgShows player for movies and TV shows via TMDB ID
- IframeVideo player using Kinopoisk ID and IMDB ID
- Unified players manager for multiple streaming providers
- JSON API endpoints for programmatic access

📡 RgShows Player Features:
- Direct movie streaming: /api/v1/players/rgshows/{tmdb_id}
- TV show episodes: /api/v1/players/rgshows/{tmdb_id}/{season}/{episode}
- HTTP API integration with rgshows.com
- 40-second timeout for reliability
- Proper error handling and logging

🎯 IframeVideo Player Features:
- Two-step authentication process (search + token extraction)
- Support for both Kinopoisk and IMDB IDs
- HTML iframe parsing for token extraction
- Multipart form data for video URL requests
- Endpoint: /api/v1/players/iframevideo/{kinopoisk_id}/{imdb_id}

🔧 Technical Implementation:
- Clean Go architecture with pkg/players package
- StreamResult interface for consistent responses
- Proper HTTP headers mimicking browser requests
- Comprehensive error handling and logging
- RESTful API design following existing patterns

🌐 New API Endpoints:
- /api/v1/players/rgshows/{tmdb_id} - RgShows movie player
- /api/v1/players/rgshows/{tmdb_id}/{season}/{episode} - RgShows TV player
- /api/v1/players/iframevideo/{kinopoisk_id}/{imdb_id} - IframeVideo player
- /api/v1/stream/{provider}/{tmdb_id} - JSON API for stream info

 Quality Assurance:
- All code passes go vet without issues
- Proper Go formatting applied
- Modular design for easy extension
- Built from commit 70febe5 'Merge branch feature/jwt-refresh-and-favorites-fix'

Ready for production deployment! 🚀
2025-09-28 16:11:09 +00:00
70febe541c Merge branch 'feature/jwt-refresh-and-favorites-fix' into 'main'
feat: implement JWT refresh token mechanism and improve auth

See merge request foxixus/neomovies-api!1
2025-09-28 11:46:20 +00:00
c56d02d79a feat: implement JWT refresh token mechanism and improve auth 2025-09-28 11:46:20 +00:00
a68dbcdad4 bug fixes 2025-08-28 21:25:21 +03:00
dd53bd99dc Edit README.md 2025-08-26 20:57:07 +00:00
06f3b4817f Release 2.4.4 2025-08-17 11:58:43 +00:00
17ae8dd2eb Bug fix 2025-08-14 15:19:20 +00:00
df401b470a Bug fix 2025-08-14 13:36:22 +00:00
e7866c2da1 Fix docs 2025-08-14 13:19:49 +00:00
93f5b74465 Fix docs 2025-08-14 13:19:19 +00:00
b4256d8908 Fix documentation 2025-08-14 12:47:52 +00:00
2ffa63775d Add WebTorrent Player(Experimental) 2025-08-14 11:35:51 +00:00
7796e741d6 Add WebTorrent Player(Experimental) 2025-08-14 11:34:31 +00:00
3d81ae0331 Release 2.4.2 2025-08-13 18:02:03 +00:00
8d81a8b744 Edit docs.go 2025-08-11 19:11:52 +00:00
eeb96a9efb Add player: Vibix 2025-08-11 18:36:02 +00:00
3cfa75cc00 Bug fix: favourites route 2025-08-11 11:36:23 +03:00
cd60dec5b8 Add Google OAuth 2025-08-08 16:47:02 +00:00
abed5d75c1 Bug Fix: Fix Delete profile route 2025-08-08 10:35:07 +00:00
7d504e2d7a Bug fix 2025-08-07 19:23:10 +00:00
83ecac92c4 Bug fix 2025-08-07 18:25:43 +00:00
8131c7db8c Rewrite api to Go 2025-08-07 13:47:42 +00:00
8c47b81289 fix 2025-07-19 21:45:57 +03:00
ef9a2a3037 add size torrent 2025-07-19 19:36:27 +03:00
942923e1c4 fix seasons in JackRed 2025-07-17 21:00:58 +03:00
c8625e2db2 Add JackRed api 2025-07-17 20:35:20 +03:00
4d69eb8402 Delete useless code 2025-07-15 12:11:29 +00:00
eed8b2dfd2 improve db code 2025-07-10 22:22:57 +03:00
3e4e4bbd77 fix 2025-07-10 22:13:45 +03:00
8a847ef2e6 fix 2025-07-10 22:10:24 +03:00
3915592ca0 new fix CORS 2025-07-10 22:02:41 +03:00
e451291d2b fix CORS for new subdomain 2025-07-10 21:56:47 +03:00
c324d67d20 impove db code 2025-07-08 16:56:03 +03:00