Update popr.ts#45
Conversation
Credit to Gemini and @EndOverdosing on vyla-entertainment
|
Looks good. Implementation seems solid overall. Only thing I’d point out: in I’d personally would use |
EndOverdosing
left a comment
There was a problem hiding this comment.
This would be slightly slower overall, so I recommend testing each source individually. It would make it easier to identify which source is failing and why. Adding more detailed debugging to each source may be tedious, but it would be more effective overall.
userness
left a comment
There was a problem hiding this comment.
Ok I added more debuggs
|
I'll take a look at this. Thank you both |
|
Guys dont overthink to much. You can build the proxy manually and it will work on all devices just fine with the headers applies. Call url: proxifyStream(finallink), |
An0n-01
left a comment
There was a problem hiding this comment.
looks good. will test it out on dev branch before merging it tho.
|
thank you for the PR! |
Credit to @EndOverdosing on vyla-entertainment
Pull Request
Description
This does @EndOverdosing's recommendation to "add an isMasterOrVod" (checkStreamType) " "Also don't detect HLS by file extension since Popr's segments use .png, check the response content for #EXTM3U instead ... And make sure Referer and Origin from stream.headers are being forwarded when proxying"
Type of Change
Related Issues
Fixes This Discussion
Changes Made
#EXTM3Uinstead of.m3u8Checklist
General
Provider Checklist (if adding/modifying a provider)
BaseProviderfrom@omss/frameworkidand descriptivenamecapabilities(movies/tv support)getMovieSources()and/orgetTVSources()correctlythis.createProxyUrl()for proxyingthis.HEADERSProviderResultformatTesting
How Has This Been Tested?
The logic was verified by comparing the TypeScript implementation against the working JavaScript reference provided by @EndOverdosing..
Performance Impact
Details:
An extra check was added, to prevent the user being returned dead links, but causes a slight increase in resolve time.