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

fix:AttributeError:[#127] type object 'Translation' has no attribute … #128

Conversation

kalanakt
Copy link
Owner

…'FREE_USER_LIMIT_Q_SZE'

Copy link

vercel bot commented Jan 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
all-url-uploader ✅ Ready (Inspect) Visit Preview Jan 27, 2024 3:48am

Copy link

@code-review-doctor code-review-doctor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth considering. View full project report here.

)
]
)
cb_string_file = "{}={}={}".format("file", format_id, format_ext)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

f-string is easier to read, write, and less computationally expensive than legacy string formatting. Read more.

]
)
cb_string_file = "{}={}={}".format("file", format_id, format_ext)
cb_string_video = "{}={}={}".format("video", format_id, format_ext)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly, Consider using f-string instead.

callback_data=(cb_string_video).encode("UTF-8")
)
])
cb_string_file = "{}={}={}".format("file", "LFO", "NONE")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above: Consider using f-string instead.

)
])
cb_string_file = "{}={}={}".format("file", "LFO", "NONE")
cb_string_video = "{}={}={}".format("video", "OFL", "ENON")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, Consider using f-string instead.

@kalanakt kalanakt merged commit a5af51c into main Jan 27, 2024
7 of 10 checks passed
@luxikakashi
Copy link

this time error changes when i try the second download:
Uploader.echo - INFO - ['yt-dlp', '--no-warnings', '--allow-dynamic-mpd', '-j', 'https://gv926.xyz/1706331600/56646b16f9ce38510ff631a2a590ba93/data/0a6bb2d53a8a795540dd5c41b97ae9ab/450/index.m3u8']
pyrogram.dispatcher - ERROR - 'int' object is not callable
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/pyrogram/dispatcher.py", line 240, in handler_worker
await handler.callback(self.client, *args)
File "/root/All-Url-Uploader/Uploader/echo.py", line 116, in echo
Config.PROCESS_MAX_TIMEOUT(current_time - previous_time)
TypeError: 'int' object is not callable

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.

AttributeError: type object 'Translation' has no attribute 'FREE_USER_LIMIT_Q_SZE'
2 participants