Jump to content
Ketarin forum

floele

Administrators
  • Posts

    1,629
  • Joined

  • Last visited

Posts posted by floele

  1. Indeed, Ketarin does not bother with HTTP accept. I will change that for the next version.

    The reason why HTTPX is not working is because you already have parameters in the URLs so you need to append the header with "&" instead of "?".

  2. Downloading the file works just fine for me.

    09.10.2017 21:54:26: Update started with 1 application(s)
    09.10.2017 21:54:26: gdrive_test: Replacing {gid} in '#GET GOOGLE DRIVE URL
    $flid  = "{gid}"
    $url   = "https://drive.google.com/uc?export=download"
    $resp1 = Invoke-WebRequest "$url&id=$flid" -SessionVariable sess -Method Post
    $json  = ConvertFrom-Json ($resp1.Content -replace "\)\]\}'")
    
    echo "====== GOOGLE DRIVE URL ======"
    
    #RETURN
    $json.downloadUrl' with '0ByWO0aO1eI_MUXVxdklKSEJNdkk'
    09.10.2017 21:54:26: gdrive_test: Replacing {downloadUrl} in '{downloadUrl:ps}' with '#GET GOOGLE DRIVE URL
    $flid  = "0ByWO0aO1eI_MUXVxdklKSEJNdkk"
    $url   = "https://drive.google.com/uc?export=download"
    $resp1 = Invoke-WebRequest "$url&id=$flid" -SessionVariable sess -Method Post
    $json  = ConvertFrom-Json ($resp1.Content -replace "\)\]\}'")
    
    echo "====== GOOGLE DRIVE URL ======"
    
    #RETURN
    $json.downloadUrl'
    09.10.2017 21:54:33: PowerShell: ====== GOOGLE DRIVE URL ======
    09.10.2017 21:54:33: PowerShell: https://doc-14-9o-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/vpapjgislhbtm76lud7ftrjed4fargul/1507572000000/08374791664467389418/*/0ByWO0aO1eI_MUXVxdklKSEJNdkk?e=download
    09.10.2017 21:54:33: gdrive_test: Using referer: https://drive.google.com/file/d/0B2imdK-us2swNElYanA3UEtYMTg/view?usp=sharing
    09.10.2017 21:54:34: gdrive_test: Server source file: /docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/vpapjgislhbtm76lud7ftrjed4fargul/1507572000000/08374791664467389418/*/0ByWO0aO1eI_MUXVxdklKSEJNdkk
    09.10.2017 21:54:34: gdrive_test: Determined target file name: C:\Users\floele-e5450\Downloads\Exercise files.zip
    09.10.2017 21:54:34: gdrive_test: Checking if update is required...
    09.10.2017 21:54:34: gdrive_test: Update required, 'C:\Users\floele-e5450\Downloads\Exercise files.zip' does not yet exist
    09.10.2017 21:54:35: gdrive_test: Using referer: https://drive.google.com/file/d/0B2imdK-us2swNElYanA3UEtYMTg/view?usp=sharing
    09.10.2017 21:54:35: gdrive_test: Server for https://doc-14-9o-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/vpapjgislhbtm76lud7ftrjed4fargul/1507572000000/08374791664467389418/*/0ByWO0aO1eI_MUXVxdklKSEJNdkk?e=download does not support segmented transfer
    09.10.2017 21:54:36: Update finished


     

  3. Please use the new beta for checking what file is being compared: 

    At the moment, you would have to delete the file in order to force a re-download.

    The reasoning behind this is when you have a dynamic target file name (only folder is specified and name depends on whatever the website gives you), there may not be a file at the target location if just the names changes. So Ketarin compares to the previously downloaded file. If you give your users a database with the last download location being on some server, Ketarin will not download locally either. I don't see how to change this without breaking the existing behaviour (or adding another option for this).

     

     

  4. I suppose that Ketarin compares to the file at the location it previously downloaded to successfully.

    If the file to compare to is missing and the option "delete previous file" is on, it will check the location the file has been saved to the last time (I assume there is such a location and the file is still there). I added a log message for future versions of Ketarin which shows the behaviour.

  5. Please post an application exported as XML for someone else to reproduce. I'd assume Ketarin gets be basic functionality right, but it may very well be that the application is misconfigured and isn't working as expected.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.