Skip to content

Google Drive downloads broken because of updated API #19

@spijet

Description

@spijet

Hello @PhasecoreX!

First of all, thank you for your awesome work in dockerizing the dedicated servers for UT99 and UT2004!

Today I tried to deploy a UT2004 server using your image and found that the GDrive link always responds with a "this file may contain viruses" banner, and now there's no confirm field in the cookie the server sends to the user. After some digging around I found that the confirm cookie is now always t, but now we also need to send a unique-for-every-request UUID that is contained inside the banner page:

<form id="download-form" action="https://drive.usercontent.google.com/download" method="get">
    <input type="submit" id="uc-download-link" class="goog-inline-block jfk-button jfk-button-action" value="Download anyway">
    <input type="hidden" name="id" value="XXXX">
    <input type="hidden" name="export" value="download">
    <input type="hidden" name="confirm" value="t">
    <input type="hidden" name="uuid" value="9a863b7f-d1d3-43aa-8b4f-f9352715d79e">
</form>

I'm currently trying to come up with a good enough way to parse it and will ping you back if I get any meaningful results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions