Hello everybody,
i have a small test program:
which i'm using to play a video on tubitv (https://tubitv.com/movies/447853/red-state) using nightly (firefox).Code:def wait_for_condition(page): p = promise.Promise() while True: if page.is_closed(): break try: page.wait_for_timeout(100) except TargetClosedError: pass return p if __name__ == '__main__': with sync_playwright() as p: browser = p.firefox.launch_persistent_context( user_data_dir="profile", headless=False, devtools=False, no_viewport=True ) page = browser.pages[0] wait_for_condition(page)
DRM is working (this particular video in 480p is not protected).
My problem is that i'm only getting 480p quality instead of 720p because the original manifest that's being loaded is getting an NS_BINDING_ABORTED error:
[Attachment 78511 - Click to enlarge]
This is what it looks like on normal firefox:
[Attachment 78512 - Click to enlarge]
I'm only having this issue in the Nightly browser started using playwright.
I'm able to get 720p quality using these methods:
- Normal Firefox
- Normal Nightly
- Nightly Private
- New PRIVATE Window opened from playwright nightly
I know that NS_BINDING_ABORTED means that the connection was terminated by the server before anything could be transferred.
Why is the server killing my connection/how is it identifying me?
Any help would be appreciated!
+ Reply to Thread
Results 1 to 9 of 9
-
Last edited by larley; 21st Apr 2024 at 06:15.
-
If what you're interested in is just the m3u8 link, why not get it directly from their page without relying on browsers? You can use just the requests library.
--[----->+<]>.++++++++++++.---.--------.
[*drm mass downloader: widefrog*]~~~~~~~~~~~[*how to make your own mass downloader: guide*] -
I don't want to reveal what the big project behind this is, but using a browser makes it easier the get the links if sites use jwt tokens or require a login because you don't have to reverse the whole api, you can just log in and play the video and my project "whose name shall not be said" will do the rest.
-
Fair enough
I ran your code and I can't play 720p. However the m3u8 is requested without errors for me:
[Attachment 78516 - Click to enlarge]--[----->+<]>.++++++++++++.---.--------.
[*drm mass downloader: widefrog*]~~~~~~~~~~~[*how to make your own mass downloader: guide*] -
What about the profile i specified?
Did you use ".launch()" instead of ".launch_persistent_context()" or did you create an empty profile folder?
I'm asking this because i know that it works with ".launch()".
TubiTV will load a "backup" manifest if DRM isn't working properly (license request fails, etc.) where streams are limited to 480p and only encrypted using AES-128.
The normal manifest is not resolution limited but all streams are DRM-protected.
Could you check whether the https://license.adrise.tv/challenge request fails for you?Last edited by larley; 21st Apr 2024 at 10:27.
-
I just ran your code in an empty folder. And your code has launch persistent. It created the profile folder. The license challenge call isn't even requested.
--[----->+<]>.++++++++++++.---.--------.
[*drm mass downloader: widefrog*]~~~~~~~~~~~[*how to make your own mass downloader: guide*] -
Can confirm. Could you give it a try with the profile i used?
Last edited by larley; 21st Apr 2024 at 10:59.
-
Same thing with m3u8 (200 status code, but can't see 720p). As for the license call, it fails. Unauthorized. Error code: 403
--[----->+<]>.++++++++++++.---.--------.
[*drm mass downloader: widefrog*]~~~~~~~~~~~[*how to make your own mass downloader: guide*] -
I kinda solved it by scraping the HTML for <script> elements containing the __data variable.
I'll leave this open in case somebody finds an answer (i still don't know why the NS_BINDING_ABORTED error occurs).
Similar Threads
-
Need help for python script
By kayrak in forum Video Streaming DownloadingReplies: 3Last Post: 14th Mar 2024, 07:30 -
Need help for python script
By kayrak in forum Video Streaming DownloadingReplies: 2Last Post: 12th Feb 2024, 06:44 -
yt-dlp in Python
By blanc in forum Video Streaming DownloadingReplies: 1Last Post: 4th Jan 2023, 05:37 -
TubiTV ?
By ChasVideo in forum Video Streaming DownloadingReplies: 31Last Post: 22nd Oct 2022, 04:55 -
TubiTV key extraction error
By hgfdgfui in forum Video Streaming DownloadingReplies: 10Last Post: 9th Jun 2022, 08:39