Buying Quick $10 for Youku.com FLV Grabber

Discussion in 'Programming' started by believer1984, Feb 5, 2010.

Thread Status:
Not open for further replies.
  1. #1
    I just can't get my head around it so I have decided to pay $10 usd to the first person to create a working script to output the flv URL.

    Yes I have already seen the open source scripts but none seem to work.

    function yk_decrypt($key1, $key2){
    $key1 = hexdec($key1) ^ hexdec(A55AA5A5);
    return $key2.dechex($key1);
    }
    
    $info = fakereq($inurl);
    $fid = inbtwn($info, "videoId2= '", "'");
    $info2 = fakereq("http://v.youku.com/player/getPlayList/VideoIDS/".$fid."/version/5/source/index");
    $key1 = inbtwn($info2, "\"key1\":\"", "\"");
    $key2 = inbtwn($info2, "\"key2\":\"", "\"");
    $key = yk_decrypt($key1, $key2);
    $outurl = 'http://f.youku.com/player/getFlvPath/sid/'.rand(10000,20000).rand(100000,200000).'00'.rand(10,99).rand(1000,9999).'00_00/st/flv/fileid/'.$fid.'?K='.$key;
    PHP:
    That is what i have so far.

    Just so you know: inbtwn() is a function i made to get the string between two strings.
    fakereq() is a function to get contents of a url with curl

    Need it A.S.A.P. Will pay via PayPal only.
    MSN:
     
    Last edited by a moderator: Feb 5, 2010
    believer1984, Feb 5, 2010 IP
  2. believer1984

    believer1984 Peon

    Messages:
    1,544
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    ok i figured out i only need to get a vaild $fid for this part:
    $outurl = 'http://f.youku.com/player/getFlvPath/sid/'.rand(10000,20000).rand(100000,200000).'00'.rand(10,99).rand(1000,9999).'00_00/st/flv/fileid/'.$fid.'?K='.$key;
    PHP:
    Anyone? I need it done now and will pay once script is working.
     
    believer1984, Feb 5, 2010 IP
  3. gapz101

    gapz101 Well-Known Member

    Messages:
    524
    Likes Received:
    8
    Best Answers:
    2
    Trophy Points:
    150
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    no, you need to get valid sid and key
     
    gapz101, Feb 6, 2010 IP
  4. believer1984

    believer1984 Peon

    Messages:
    1,544
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    no i need valid fileid

    sid can be 00 so its not necessary
    key is already valid

    here is a working download url:
    http://f.youku.com/player/getFlvPath/sid/12654510429039038899_00/st/flv/fileid/03000201004B6715A0CD63001B3C8CB6B3C3E3-1FB4-4E9C-A6CE-5C3DC34ED349?K=1a0ec8aee035788118258bb7
    Code (markup):
    here is the download url without sid (still working):
    http://f.youku.com/player/getFlvPath/sid/00_00/st/flv/fileid/03000201004B6715A0CD63001B3C8CB6B3C3E3-1FB4-4E9C-A6CE-5C3DC34ED349?K=1a0ec8aee035788118258bb7
    Code (markup):
    so just to clarify, i need the fileid. In this case it is:
    03000201004B6715A0CD63001B3C8CB6B3C3E3-1FB4-4E9C-A6CE-5C3DC34ED349
    Code (markup):
     
    believer1984, Feb 6, 2010 IP
  5. gapz101

    gapz101 Well-Known Member

    Messages:
    524
    Likes Received:
    8
    Best Answers:
    2
    Trophy Points:
    150
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    solved, got the payment. thanks
     
    gapz101, Feb 6, 2010 IP
Thread Status:
Not open for further replies.