ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
130.18k stars 9.82k forks source link

site support request: xvidstage.com #4335

Closed smichaelsen closed 8 years ago

smichaelsen commented 9 years ago

video file hoster

smichaelsen commented 9 years ago

youtube-dl http://xvidstage.com/1wxxky6awjj3 [generic] 1wxxky6awjj3: Requesting header WARNING: Falling back on generic information extractor. [generic] 1wxxky6awjj3: Downloading webpage [generic] 1wxxky6awjj3: Extracting information ERROR: Unsupported URL: http://xvidstage.com/1wxxky6awjj3; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

naglis commented 9 years ago

Could you post another example URL? The one you've provided seems to be expired/deleted.

msmuenchen commented 8 years ago

http://xvidstage.com/amfy7atlkx25 is an example.

You will encounter a form there:

        <form method="POST" action="http://xvidstage.com/" name="FL">
            <input type="hidden" name="op" value="login">
            <input type="hidden" name="redirect" value="">
            <table cellpadding="0" cellspacing="0">
            <tr>
            <td class="user"><input type="text" name="login" value="" class="myForm" placeholder="Usename"></td>
            <td class="pswd"><input type="password" name="password" class="myForm" placeholder="Password"></td>
            <td align="left"><input type="submit" value=" " class="btn_login"></td>
            <td align="left" style="padding-left:5px;"><a href="http://xvidstage.com/?op=registration"><img src="http://xvidstage.com/images_classic/btn_signup.png" border=0></a></td>
            </tr>
            <tr>
            <td>&nbsp;</td>
            <td><a href="http://xvidstage.com/?op=forgot_pass" class="forget_pswd">Forgot Password?</a></td>
            </tr>
            </table>

        </form>

Submitting this form yields packed javascript in the HTML, inside the <div id="player_code">:

eval(function(p,a,c,k,e,d){while(c--)if(k[c])p=p.replace(new RegExp('\\b'+c.toString(a)+'\\b','g'),k[c]);return p}('1j.1i(\'<b 12="1h"1g="1f:1e-1d-1c-1b-1a"t="s"r="q"19="4://g.8.f/e/18.17"><3 2="x"1="w"/><3 2="v"1="u"/><3 2="9"1="4://7.0.6.0/i/p/o.n"/><3 2="k"1="5"><3 2="l"1="5"/><3 2="j"1="h"/><3 2="m"1="5"/><3 2="11"1="4://7.0.6.0:10/d/z/a.y"/><c 12="16"15="a/8"11="4://7.0.6.0:10/d/z/a.y"x="w"v="u"t="s"r="q"9="4://7.0.6.0/i/p/o.n"m="5"l="5"9=""k="5"j="h"14="4://g.8.f/e/13/"></c></b>\');',36,56,'115|value|name|param|http|false|82|93|divx|previewImage|video|object|embed||plugin|com|go|Play||previewMessage|allowContextMenu|bannerEnabled|autoPlay|jpg|amfy7atlkx25|00166|380|height|715|width|transparent|wmode|Stage6|custommode|avi|tauaziktgii5uaadfe5bz4sdhedcrrseamfrimascjkrezxwjmreomqs|182|src|id|download|pluginspage|type|np_vid|cab|DivXBrowserPlugin|codebase|CC0F21721616|9C46|41fa|D0AB|67DABFBF|clsid|classid|ie_vid|write|document'.split('|')))

Unpacked with http://www.strictly-software.com/unpacker gives:

document.write('<object id="ie_vid"classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"width="715"height="380"codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab"><param name="custommode"value="Stage6"/><param name="wmode"value="transparent"/><param name="previewImage"value="http://93.115.82.115/i/00166/amfy7atlkx25.jpg"/><param name="allowContextMenu"value="false"><param name="bannerEnabled"value="false"/><param name="previewMessage"value="Play"/><param name="autoPlay"value="false"/><param name="src"value="http://93.115.82.115:182/d/tauaziktgii5uaadfe5bz4sdhedcrrseamfrimascjkrezxwjmreomqs/video.avi"/><embed id="np_vid"type="video/divx"src="http://93.115.82.115:182/d/tauaziktgii5uaadfe5bz4sdhedcrrseamfrimascjkrezxwjmreomqs/video.avi"custommode="Stage6"wmode="transparent"width="715"height="380"previewImage="http://93.115.82.115/i/00166/amfy7atlkx25.jpg"autoPlay="false"bannerEnabled="false"previewImage=""allowContextMenu="false"previewMessage="Play"pluginspage="http://go.divx.com/plugin/download/"></embed></object>');
siddht4 commented 8 years ago

it fails , but u can download the video using link http://93.115.82.115:182/d/tauaziktgii5uaadfe5bz4sdhedcrrseamfrimascjkz2lqwzhvva3yk/video.avi

msmuenchen commented 8 years ago

As for the packed JS, I guess that https://github.com/beautify-web/js-beautify/blob/master/python/jsbeautifier/unpackers/packer.py could be used to unpack it. I don't speak enough python to actually judge this, though.

dstftw commented 8 years ago

xvidstage support has been added in youtube-dl 2016.06.14.