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

Version 3.0.1 #1477

Merged
merged 21 commits into from
Feb 17, 2023
Merged

Version 3.0.1 #1477

merged 21 commits into from
Feb 17, 2023

Conversation

OpenSourceSimon
Copy link
Collaborator

Description

A couple of bug fixes

Issue Fixes

  • NSFW posts
  • TikTok improved error message
  • Background

electro199 and others added 5 commits February 3, 2023 22:53
Co-authored-by: Simon <65854503+OpenSourceSimon@users.noreply.github.com>
Better error handling and type hinting
@JasonLovesDoggo
Copy link
Collaborator

rename to 3.1

video_creation/screenshot_downloader.py Outdated Show resolved Hide resolved
video_creation/screenshot_downloader.py Outdated Show resolved Hide resolved
video_creation/screenshot_downloader.py Show resolved Hide resolved
video_creation/screenshot_downloader.py Show resolved Hide resolved
@JasonLovesDoggo
Copy link
Collaborator

Add the pylint comment back @OpenSourceSimon

@OpenSourceSimon
Copy link
Collaborator Author

Add the pylint comment back @OpenSourceSimon

Oh okay sorry I forgot

@@ -158,5 +160,8 @@ def __str__(self) -> str:

if self._code == 4:
return f"Code: {self._code}, reason: the speaker doesn't exist, message: {self._message}"

if self._code == 5:
Copy link
Collaborator

Choose a reason for hiding this comment

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

You could just use a hashmap and the code is the key

Copy link
Collaborator Author

@OpenSourceSimon OpenSourceSimon Feb 13, 2023

Choose a reason for hiding this comment

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

Yeah that is possible but I think this solution is fine. I don't think we need to overcomplicate this code

@JasonLovesDoggo JasonLovesDoggo merged commit 8990cba into master Feb 17, 2023
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