SilentDemonSD / WZML-X

A Super Enhanced Telegram bot which can download torrents, mega, google drive links, telegram file, direct links and all yt-dlp sites, upload to google drive, telegram cloud, rclone clouds or ddl servers. Made with Pyrogram in Python by WZML-X Devs.
http://wzmlx.mysterysd.in
GNU General Public License v3.0
857 stars 1.79k forks source link

v1.3.4-x0 #264

Closed SilentDemonSD closed 4 months ago

SilentDemonSD commented 4 months ago

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 the gofile function to use a consistent user-agent and better handle API responses. The version number is also updated to v1.3.4-x0.

sourcery-ai[bot] commented 4 months ago

Reviewer's Guide by Sourcery

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.

File-Level Changes

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.

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.