Skip to content

Commit

Permalink
1.0-rc7 -> 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanBindez committed Sep 25, 2023
1 parent 8a34b63 commit 00d265e
Show file tree
Hide file tree
Showing 50 changed files with 53 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.0-rc7
current_version = 1.0.0
commit = True
tag = True

Expand Down
1 change: 0 additions & 1 deletion CHANGELOG.md

This file was deleted.

34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,38 @@ ys.download(mp3=True) # pass the parameter mp3=Tre to save in .mp3

-----------

### if you want to download complete playlists:

'''python

from pytubefix import YouTube
from pytubefix import Playlist
from pytubefix.cli import on_progress

url = input("URL Here >")

pl = Playlist(url)

for video in pl.videos:
ys = video.streams.get_audio_only()
ys.download(mp3=True)
'''


```python

from pytubefix import YouTube
from pytubefix import Playlist
from pytubefix.cli import on_progress

url = input("URL Here >")

pl = Playlist(url)

for video in pl.videos:
ys = video.streams.get_audio_only()
ys.download(mp3=True) # pass the parameter mp3=Tre to save in .mp3

```
----------

12 changes: 8 additions & 4 deletions pytubefix/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,15 @@ def title(self) -> str:
:rtype: str
"""
self._author = self.vid_info.get("videoDetails", {}).get(
"author", "unknown"
)

if self._title:
return self._title
return self._author + self._title

try:
self._title = self.vid_info['videoDetails']['title']
self._title = self.vid_info['videoDetails']['title'] #+ self._author
except KeyError:
# Check_availability will raise the correct exception in most cases
# if it doesn't, ask for a report.
Expand All @@ -351,8 +355,8 @@ def title(self) -> str:
'Please file a bug report at https://github.com/pytube/pytube'
)
)

return self._title
# print(self.vid_info['videoDetails'])
return self._author + self._title

@title.setter
def title(self, value):
Expand Down
Binary file removed pytubefix/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/__main__.cpython-310.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/__main__.cpython-311.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/captions.cpython-310.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/captions.cpython-311.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/cipher.cpython-310.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/cipher.cpython-311.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/cli.cpython-310.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/cli.cpython-311.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/colors.cpython-310.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/exceptions.cpython-310.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/exceptions.cpython-311.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/extract.cpython-310.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/extract.cpython-311.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/helpers.cpython-310.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/helpers.cpython-311.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/innertube.cpython-310.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/innertube.cpython-311.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/itags.cpython-310.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/itags.cpython-311.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/metadata.cpython-310.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/metadata.cpython-311.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/monostate.cpython-310.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/monostate.cpython-311.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/parser.cpython-310.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/parser.cpython-311.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/query.cpython-310.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/query.cpython-311.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/request.cpython-310.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/request.cpython-311.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/streams.cpython-310.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/streams.cpython-311.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/version.cpython-310.pyc
Binary file not shown.
Binary file removed pytubefix/__pycache__/version.cpython-311.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion pytubefix/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@

colors_list = [
GREEN, LIGTH_GREEN, RED, YELLOW, BLUE, MAGENTA,
BOLD, CYAN, LIGHT_CYAN, LIGTH_GREY, DARK_GREY,
BOLD, CYAN, LIGHT_CYAN, DARK_GREY,
BLACK, INVERTE, RESET
]
Binary file removed pytubefix/contrib/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file removed pytubefix/contrib/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed pytubefix/contrib/__pycache__/search.cpython-310.pyc
Binary file not shown.
Binary file removed pytubefix/contrib/__pycache__/search.cpython-311.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion pytubefix/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "1.0-rc7"
__version__ = "1.0.0"

if __name__ == "__main__":
print(__version__)
15 changes: 8 additions & 7 deletions test.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
from pytubefix import YouTube
from pytubefix import Playlist
from pytubefix.cli import on_progress

url = input("URL >")
yt = YouTube(url, on_progress_callback = on_progress)
print(yt.title)
ys = yt.streams.get_audio_only()
ys.download(mp3=True)
url = input("URL Here >")

pl = Playlist(url)

for video in pl.videos:
ys = video.streams.get_audio_only()
ys.download(mp3=True)

0 comments on commit 00d265e

Please sign in to comment.