fix: improve 4KHDHub and UHDMovies providers#69
Open
Yatin-Code wants to merge 3 commits intotapframe:masterfrom
Open
fix: improve 4KHDHub and UHDMovies providers#69Yatin-Code wants to merge 3 commits intotapframe:masterfrom
Yatin-Code wants to merge 3 commits intotapframe:masterfrom
Conversation
- Implemented Fetcher.js with automatic retries for network errors (ECONNRESET, ETIMEDOUT) - Added TMDBFetcher.js with mutex locks to prevent duplicate API calls - Created resolution extraction utility (supports 1080p, 720p, 4K detection) - Enhanced language flag detection for multi-audio releases - Refactored IMDb→TMDB conversion with webstreamr's cleaner auto-detection logic - Updated 4KHDHub: improved subtitle matching, resolution display, cleaner stream names - Updated UHDMovies: integrated TMDBFetcher for robust TMDB calls - Updated Showbox: simplified conversion logic, added Map caching Fixes intermittent ECONNRESET errors and improves stream metadata accuracy.
Owner
|
Thanks for the PR, Hublcoud (Hoster used by 4khdhub) has currently blocked our servers IP. the logic is fine and sound based on logs. so the issue is network related. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix: 4KHDHub & UHDMovies + Network Reliability
Important
This PR fixes critical failures in 4KHDHub and UHDMovies, and eliminates intermittent ECONNRESET errors through automatic retry logic.
4KHDHub: Complete Overhaul (now working)
The 4KHDHub provider was returning zero streams due to outdated extraction logic. After analyzing WebStreamr, I rewrote it using their proven approach.
What we borrowed from WebStreamr:
/?s=Title) instead ofTitle + Year- fixed all search failures{ useCollator: true }handles subtitles and special charactersNew features:
Before:
After:
UHDMovies: Domain Fix
Issue: Domain changed from
video-seed.pro→video-seed.dev, breaking all links.Fix: Dynamic domain detection - automatically handles domain changes.
Network Reliability: Fetcher with Retry Logic
Problem: Random
ECONNRESETand timeout errors from TMDB API (30% failure rate on slow connections).Solution: New Fetcher.js with automatic retries:
Impact:
IMDb→TMDB Conversion: Simplified & Cached
Before: nested conditionals, were slow and repeted.
After: 30 lines with WebStreamr's auto-detection logic + Map caching.
Performance: