K-S-V / Scripts

Collection of my scripts
GNU General Public License v3.0
635 stars 227 forks source link

Nothing downloaded for a site with a complicated URL structure #95

Open subnet142 opened 7 years ago

subnet142 commented 7 years ago

I was trying to process via AdobeHDS.php a video on site: http://www.cecc.gov/events/hearings/tiananmen-at-25-enduring-influence-on-us-china-relations-and-china%E2%80%99s-political

The file name part of the fragment GETs issued by the flash player as noted on Firefox are quite messy. AdobeHDS.php fails with debug messages for all fragments similarly as: // Adding fragment 280122615 to download queue
Fragment 280122615 doesn't exist, Status: 404 Skipping failed fragment 280122615 // Many thanks for the help.

subnet142 commented 7 years ago

Oops, I am able to make a quick and dirty fix at the addDownload function: // function addDownload($url, $id) { $url = $url . '?hdcore=3.10.0&plugin=aasp-3.10.0.29.11'; ...... // I added the constant part of the dynamic URL string that I got from Firefox Tools network window. A sample full string: // https://srs-f.akamaihd-staging.net/z/cecc052014_1@76486/348_7e773c0ddc9a2e6d-p_Seg1-Frag280122754?als=302.8,300,2502.5,0,342,885016,14.96,79,0,91,f,391.63,7770.7,f,s,PBDLSRAMGRME,3.10.0,91&hdcore=3.10.0&plugin=aasp-3.10.0.29.11 // Not sure what's the correct fix though...

Hope it helps and thanks for a great tool.