Skip to content

Commit

Permalink
Fixed problem downloading videos with titles containing the character…
Browse files Browse the repository at this point in the history
… "/" update 2.1-rc2
  • Loading branch information
JuanBindez committed Mar 9, 2024
1 parent 3341ba2 commit cb2c3fb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion push.Makeline
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
git add .
git commit -m 'update 2.1-rc1'
git commit -m 'Fixed problem downloading videos with titles containing the character "/" update 2.1-rc2'
git push -u origin main
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "pytubefix"
version = "2.1-rc1"
version = "2.1-rc2"
authors = [
{ name="Juan Bindez", email="[email protected]" },
]
Expand Down
8 changes: 4 additions & 4 deletions pytubefix/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
This module implements the core developer interface for pytubefix.
The problem domain of the :class:`YouTube <YouTube> class focuses almost
exclusively on the developer interface. Pytube offloads the heavy lifting to
exclusively on the developer interface. Pytubefix offloads the heavy lifting to
smaller peripheral modules and functions.
"""
Expand All @@ -47,7 +47,7 @@


class YouTube:
"""Core developer interface for pytube."""
"""Core developer interface for pytubefix."""

def __init__(
self,
Expand Down Expand Up @@ -364,7 +364,7 @@ def title(self) -> str:
)

if self._title:
return self._title
return self._title.replace('/', '\\')

try:
self._title = self.vid_info['videoDetails']['title'] #+ self._author
Expand All @@ -379,7 +379,7 @@ def title(self) -> str:
)
)
# print(self.vid_info['videoDetails'])
return self._title
return self._title.replace('/', '\\')

@title.setter
def title(self, value):
Expand Down
2 changes: 1 addition & 1 deletion pytubefix/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.1-rc1"
__version__ = "2.1-rc2"

if __name__ == "__main__":
print(__version__)

0 comments on commit cb2c3fb

Please sign in to comment.