VideoHelp Forum




+ Reply to Thread
Results 1 to 8 of 8
  1. hello, i can't understand why the following command:

    Code:
    N_m3u8DL-RE <amzn-mpd-url> -H <various-headers> --key <key1> --key <key2> --key <key3> --use-shaka-packager -M format=mkv
    works perfectly under windows, but gives me 403 error under linux (obviously tools are same versions).
    note: command is generated by WidevineProxy2 firefox addon.
    thanks for help.
    Quote Quote  
  2. Did you copy the command from Windows to your Linux console? Or did you generate the command on the same Linux machine where you used it? I guess it's a mismatch in headers and ip address used (just a guess).
    Quote Quote  
  3. thank you for reply.
    tried in several ways: 1) generate on windows and paste it into wsl does not work; 2) generate on linux and paste into terminal does not work; 3) generate on windows and paste into command prompt does work.
    Quote Quote  
  4. Personal experience: when I download from WidevineProxy2 addon firefox, in the Linux terminal i add "./" so the command becomes "./N_m3u8DL-RE ......." otherwise it won't download. Try it...
    Quote Quote  
  5. Originally Posted by nstuffed View Post
    thank you for reply.
    tried in several ways: 1) generate on windows and paste it into wsl does not work; 2) generate on linux and paste into terminal does not work; 3) generate on windows and paste into command prompt does work.
    can you show the generated command from both OS?
    Quote Quote  
  6. sure.
    following is linux generated (gives 403 forbidden error):
    Code:
    N_m3u8DL-RE "https://***file.mpd?parameters" -H "User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:152.0) Gecko/20100101 Firefox/152.0" -H "Accept: */*" -H "Referer: https://www.p****video.com/" -H "Origin: https://www.p****video.com" --key ***:*** --key ***:*** --key ***:*** --use-shaka-packager -M format=mkv
    and the following is windows generated (working):
    Code:
    N_m3u8DL-RE "https://***file.mpd?parameters" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:153.0) Gecko/20100101 Firefox/153.0" -H "Accept: */*" -H "Referer: https://www.p****video.com/" -H "Origin: https://www.p****video.com" --key ***:*** --key ***:*** --key ***:*** --use-shaka-packager -M format=mkv
    Quote Quote  
  7. SOLVED.
    in linux MUST use single quote (') instead of double (") in main url, as:
    Code:
    N_m3u8DL-RE 'https://***file.mpd?parameters' -H "User-Agent: Mozilla/5.0...
    I guess it's because special chars like & and ?
    Quote Quote  
  8. Yes, but & and ? don't have a special meaning within double quotes. It's more likely the $ that changed your command.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!