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
828 stars 1.76k forks source link

Metadata Add And Terabox Fix #272

Closed SonGoku1972 closed 3 weeks ago

SonGoku1972 commented 3 weeks ago

Summary by Sourcery

Add metadata editing capability for video files and enhance Terabox link support by including additional domains. Update user settings to accommodate metadata options and adjust the README to reflect these changes.

New Features:

Enhancements:

Documentation:

sourcery-ai[bot] commented 3 weeks ago

Reviewer's Guide by Sourcery

This pull request implements several changes to improve the functionality of a file downloading and processing bot. The main changes include adding metadata editing capabilities, updating the Terabox link generator, and enhancing user settings. Here's a summary of the key implementations:

  1. Metadata Editing: A new feature to add metadata to video files has been implemented. This includes changes to the tasks_listener.py file to handle metadata addition and a new MetadataStatus class.

  2. Terabox Link Generator: The terabox function in direct_link_generator.py has been completely rewritten to improve its functionality and reliability.

  3. User Settings: The user settings module has been updated to include new options for metadata text and to handle the new metadata feature.

  4. Bot Initialization: The init.py file has been updated to include a new METADATA configuration option.

  5. Status Updates: The bot_utils.py file has been modified to include a new status for metadata addition.

These changes significantly enhance the bot's capabilities, particularly in handling metadata for video files and improving the Terabox link generation process.

File-Level Changes

Files Changes
bot/helper/listeners/tasks_listener.py
bot/helper/mirror_utils/status_utils/metadata_status.py
bot/helper/ext_utils/fs_utils.py
Implemented metadata editing feature for video files
bot/helper/mirror_utils/download_utils/direct_link_generator.py Rewrote Terabox link generator function for improved functionality
bot/modules/users_settings.py Updated user settings to include metadata options
bot/__init__.py Added METADATA configuration option to bot initialization
bot/helper/ext_utils/bot_utils.py Added new status for metadata addition process
README.md Updated README.md with changes to supported direct links
bot/modules/bot_settings.py Removed reference to terabox.txt in bot settings

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - Continue your discussion with Sourcery by replying directly to review comments. - 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.
SonGoku1972 commented 3 weeks ago

Add this its working no issues in heroku repo