Closed SilentDemonSD closed 4 months ago
This pull request refactors and improves the handling of Gofile API interactions in both the upload and download utilities. Key changes include better error handling, response checking, and token management. Additionally, the version number has been updated to v1.3.4-x0.
Files | Changes |
---|---|
bot/helper/mirror_utils/upload_utils/ddlserver/gofile.py bot/helper/mirror_utils/download_utils/direct_link_generator.py |
Refactored and improved the handling of Gofile API interactions, including better error handling, response checking, and token management. |
Summary by Sourcery
This pull request refactors the Gofile API interactions to improve reliability and error handling, updates the
upload_file
method to use a random server choice, and enhances various methods for better handling of folder IDs and options. Additionally, it updates thegofile
function to use a consistent user-agent and better handle API responses. The version number is also updated to v1.3.4-x0.upload_file
method to use a random server choice for file uploads.upload_folder
method to correctly handle folder IDs and set options.__getAccount
method to fetch account details using a more reliable API endpoint.__setOptions
method to include additional valid options for Gofile content.gofile
function indirect_link_generator.py
to use a consistent user-agent and better handle API responses.version.py
.