dertuxmalwieder / yaydl

yet another youtube down loader (Git mirror)
https://code.rosaelefanten.org/yaydl
Other
283 stars 18 forks source link

voe.sx download not working #20

Open gauravsuman007 opened 2 months ago

gauravsuman007 commented 2 months ago

When trying to download the following link: https://voe.sx/e/etuuxebdxme7

I get an error message: The video title could not be extracted. Invalid link?

dertuxmalwieder commented 2 months ago

That might be because bethshouldercan.com isn't VOE. The problem here is that yaydl tries to catch all relevant domains.

Ironically, fixing it has other implications:

; ./target/debug/yaydl https://bethshouldercan.com/e/etuuxebdxme7 --webdriver 49944 Fetching from Voe (Catchall). Error: https://delivery-node-eu7doujwfdtzkhx0.voe-network.net/engine/hls2/01/12069/etuuxebdxme7_,n,.urlset/index-v1-a1.m3u8%3Ft=SC2iP9Z4IaCLYYis0kXzfCrySOiXKEEH-7jD99d9h6Y&s=1724887659&e=14400&f=60345407&node=delivery-node-eu7doujwfdtzkhx0.voe-network.net&i=185.209&sp=2500&asn=1?t=SC2iP9Z4IaCLYYis0kXzfCrySOiXKEEH-7jD99d9h6Y&s=1724887659&e=14400&f=60345407&node=delivery-node-eu7doujwfdtzkhx0.voe-network.net&i=185.209&sp=2500&asn=1: status code 400 https://delivery-node-eu7doujwfdtzkhx0.voe-network.net/engine/hls2/01/12069/etuuxebdxme7_,n,.urlset/master.m3u8?t=SC2iP9Z4IaCLYYis0kXzfCrySOiXKEEH-7jD99d9h6Y&s=1724887659&e=14400&f=60345407&node=delivery-node-eu7doujwfdtzkhx0.voe-network.net&i=185.209&sp=2500&asn=1

I'll investigate. 0.15.4 improves something. As I currently don't have access to a sane desktop, can you figure out (F12) where the URL is stored?

gauravsuman007 commented 2 months ago

I just fethched the page: https://voe.sx/e/etuuxebdxme7 using python requests and I got the redirect URL inside the JS script they threw at me

<script>
        if (typeof localStorage !== 'undefined') {
            const permanentToken = localStorage.getItem('permanentToken');
            if (permanentToken) {
                const currentUrl = new URL(window.location.href);
                currentUrl.searchParams.set('permanentToken', permanentToken);
                window.location.href = currentUrl.toString();
            } else {
                window.location.href = 'https://bethshouldercan.com/e/etuuxebdxme7';
            }
        } else {
            window.location.href = 'https://bethshouldercan.com/e/etuuxebdxme7';
        }
    </script>