Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mirror change #4

Open
wants to merge 21 commits into
base: Yamraaj
Choose a base branch
from
Open

mirror change #4

wants to merge 21 commits into from

Conversation

YaMraaJ-debug
Copy link
Owner

anas and others added 21 commits October 9, 2021 14:40
-Other changes:
 clone by reply
 tar removed
 del by reply
 bugs fixed

Signed-off-by: anas <[email protected]>
Sourcery refactored master branch
Set Description For G-Drive Folders
Reduce message  length
- Equal Split Size Optional
- custom name for leeched files
- fix set thumbnails for mutli users
- other bugs fixed

Signed-off-by: anas <[email protected]>
Signed-off-by: anas <[email protected]>
- httperror 500 with version 2.25.0 and 2.26.0

Signed-off-by: anas <[email protected]>
@sourcery-ai
Copy link

sourcery-ai bot commented Sep 3, 2022

Sourcery Code Quality Report

❌  Merging this PR will decrease code quality in the affected files by 0.46%.

Quality metrics Before After Change
Complexity 33.42 ⛔ 33.85 ⛔ 0.43 👎
Method Length 117.70 🙂 121.72 😞 4.02 👎
Working memory 13.09 😞 13.07 😞 -0.02 👍
Quality 40.25% 😞 39.79% 😞 -0.46% 👎
Other metrics Before After Change
Lines 3817 3929 112
Changed files Quality Before Quality After Quality Change
bot/init.py 17.64% ⛔ 17.00% ⛔ -0.64% 👎
bot/main.py 62.15% 🙂 62.30% 🙂 0.15% 👍
bot/helper/ext_utils/bot_utils.py 68.39% 🙂 68.91% 🙂 0.52% 👍
bot/helper/ext_utils/fs_utils.py 63.15% 🙂 62.51% 🙂 -0.64% 👎
bot/helper/mirror_utils/download_utils/aria2_download.py 51.31% 🙂 52.32% 🙂 1.01% 👍
bot/helper/mirror_utils/download_utils/mega_downloader.py 58.27% 🙂 59.64% 🙂 1.37% 👍
bot/helper/mirror_utils/download_utils/qbit_downloader.py 21.00% ⛔ 21.14% ⛔ 0.14% 👍
bot/helper/mirror_utils/upload_utils/gdriveTools.py 39.82% 😞 39.82% 😞 0.00%
bot/helper/mirror_utils/upload_utils/pyrogramEngine.py 53.42% 🙂 48.55% 😞 -4.87% 👎
bot/helper/telegram_helper/bot_commands.py 73.77% 🙂 75.43% ⭐ 1.66% 👍
bot/helper/telegram_helper/filters.py 73.97% 🙂 73.97% 🙂 0.00%
bot/helper/telegram_helper/message_utils.py 46.04% 😞 48.07% 😞 2.03% 👍
bot/modules/clone.py 17.92% ⛔ 17.61% ⛔ -0.31% 👎
bot/modules/delete.py 74.64% 🙂 64.26% 🙂 -10.38% 👎
bot/modules/leech_settings.py 51.22% 🙂 51.22% 🙂 0.00%
bot/modules/list.py 75.80% ⭐ 75.68% ⭐ -0.12% 👎
bot/modules/mirror.py 23.06% ⛔ 21.54% ⛔ -1.52% 👎
bot/modules/search.py 42.93% 😞
bot/modules/watch.py 60.39% 🙂 59.88% 🙂 -0.51% 👎

Here are some functions in these files that still need a tune-up:

File Function Complexity Length Working Memory Quality Recommendation
bot/modules/mirror.py _mirror 73 ⛔ 894 ⛔ 27 ⛔ 2.24% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
bot/helper/mirror_utils/upload_utils/gdriveTools.py GoogleDriveHelper.drive_list 91 ⛔ 640 ⛔ 23 ⛔ 3.02% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
bot/modules/mirror.py MirrorListener.onDownloadComplete 80 ⛔ 730 ⛔ 23 ⛔ 3.20% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
bot/modules/mirror.py MirrorListener.onUploadComplete 67 ⛔ 733 ⛔ 19 ⛔ 6.01% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
bot/helper/mirror_utils/download_utils/qbit_downloader.py QbitTorrent.update 73 ⛔ 748 ⛔ 18 ⛔ 6.41% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions

Legend and Explanation

The emojis denote the absolute quality of the code:

  • ⭐ excellent
  • 🙂 good
  • 😞 poor
  • ⛔ very poor

The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request.


Please see our documentation here for details on how these metrics are calculated.

We are actively working on this report - lots more documentation and extra metrics to come!

Help us improve this quality report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants