Releases: JuanBindez/pytubefix
Releases Β· JuanBindez/pytubefix
Pytubefix 1.8.1 Released
Release Notes:
Bugfix - Windows Defender False Positive Correction:
Description:
- We have fixed an issue where Windows Defender was erroneously detecting an executable (executable generated by users) as a trojan malware, resulting in false positives and file blocking. This occurred due to the use of the os.rename() method, which renamed the file to the .mp3 extension, triggering a false alarm.
Resolution:
- To address this issue, we refactored the code to remove the dependency on the os.rename() method, and now the file is not renamed after download but before, without using the os.rename() method.
Pytubefix 1.8.0 Released
Release Notes:
Contribution:
- Adding a dot to the pattern matching on the @ name as its a valid name. #11
Pytubefix 1.7.1 Released
Pytubefix 1.7.0 Released
Release Notes:
- Migrated to pyproject.toml
- Contribution by (RadosΕaw Gryta) (#9)
Pytubefix 1.6.0 Released
Release Notes:
- added documentation
pytubefix 1.5.0 Released
Release Note:
-
exceptions improvements
-
contribution by (callumosborne) (6#)
Pytubefix 1.4.1 Released
Release Notes:
-
performance improvements
-
fixed another problem with video titles.
Pytubefix 1.3.0 Released
Release Notes:
- added method to save subtitles in txt file in captions.py
def save_captions(self, filename: str):
"""Generate and save "SubRip Subtitle" captions to a text file.
Takes the xml captions from :meth:`~pytubefix.Caption.xml_captions` and
recompiles them into the "SubRip Subtitle" format and saves it to a text file.
:param filename: The name of the file to save the captions.
"""
srt_captions = self.xml_caption_to_srt(self.xml_captions)
with open(filename, 'w', encoding='utf-8') as file:
file.write(srt_captions)
Usage:
from pytubefix import YouTube
yt = YouTube('http://youtube.com/watch?v=2lAe1cqCOXo')
caption = yt.captions.get_by_language_code('en')
caption.save_captions("captions.txt")
Pytubefix 1.2.0 Released
Release Notes:
- performance improvements
pytubefix 1.1.2 Release
Release Note:
Bugfix:
- Fix AttributeError: 'NoneType' object has no attribute 'span'