Skip to content

Commit

Permalink
Update Python version to 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
z1nc0r3 committed Jul 29, 2024
1 parent a95d084 commit dd2dfb4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Publish Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
publish:
runs-on: ubuntu-latest
env:
python_ver: 3.10
python_ver: 3.12

steps:
- uses: actions/checkout@v2
Expand Down
12 changes: 10 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,21 @@ def isValidURL(self, url):

def query(self, query):
if len(query.strip()) == 0:
return [{"Title": "Please input the URL of the video,", "IcoPath": "Images/app.png"}]
return [
{
"Title": "Please input the URL of the video,",
"IcoPath": "Images/app.png",
}
]

output = []

if not self.isValidURL(query):
output.append(
{"Title": "Please check the URL for errors.", "IcoPath": "Images/error.png"}
{
"Title": "Please check the URL for errors.",
"IcoPath": "Images/error.png",
}
)
return output

Expand Down

0 comments on commit dd2dfb4

Please sign in to comment.