Skip to content

Commit

Permalink
Fix has_valid_cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
7x11x13 committed Nov 27, 2023
1 parent faa1b54 commit 2413925
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "youtube-up"
version = "0.3.4"
version = "0.3.5"
description = "Upload videos to YouTube using the internal YouTube API"
authors = ["7x11x13 <[email protected]>"]
readme = "README.md"
Expand Down
5 changes: 1 addition & 4 deletions youtube_up/uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,7 @@ def has_valid_cookies(self) -> bool:
"""
r = self._session.get("https://youtube.com/upload")

if "studio.youtube.com/channel" not in r.url:
raise YTUploaderException(
"Could not log in to YouTube account. Try getting new cookies"
)
return "studio.youtube.com/channel" in r.url

def _get_thumbnail_format(self, filename: str) -> ThumbnailFormatEnum:
ext = filename.split(".")[-1]
Expand Down

0 comments on commit 2413925

Please sign in to comment.