Skip to content

Releases: JuanBindez/pytubefix

Pytubefix 1.8.1 Released

31 Oct 00:48
Compare
Choose a tag to compare

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

26 Oct 13:16
Compare
Choose a tag to compare

Release Notes:

Contribution:

  • Adding a dot to the pattern matching on the @ name as its a valid name. #11

Pytubefix 1.7.1 Released

21 Oct 23:12
Compare
Choose a tag to compare

Release Notes:

Bugfix:

  • Fixed -> Inconsistency in title property, prepending of author name #10

Pytubefix 1.7.0 Released

17 Oct 14:20
Compare
Choose a tag to compare

Release Notes:

Pytubefix 1.6.0 Released

14 Oct 13:11
Compare
Choose a tag to compare

Release Notes:

  • added documentation

pytubefix 1.5.0 Released

09 Oct 13:18
Compare
Choose a tag to compare

Release Note:

Pytubefix 1.4.1 Released

04 Oct 18:05
Compare
Choose a tag to compare

Release Notes:

  • performance improvements

  • fixed another problem with video titles.

Pytubefix 1.3.0 Released

02 Oct 13:42
Compare
Choose a tag to compare

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

01 Oct 23:30
Compare
Choose a tag to compare

Release Notes:

  • performance improvements

pytubefix 1.1.2 Release

28 Sep 14:36
Compare
Choose a tag to compare

Release Note:

Bugfix:

  • Fix AttributeError: 'NoneType' object has no attribute 'span'