Qtube

Latest version: v2.3.0

Safety actively analyzes 682387 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 4

1.6.0

**Upload date filtering**

Videos can now be filtered out based on the day they were uploaded to YouTube (Issue 6). This new functionality uses the `run_frequency` parameter, which handles two types of input: a selection of strings or any positive integer.
The string can be any of the following:
- *daily* (keeps only videos from the previous day)
- *weekly* (keeps only videos from the last 7 days)
- *monthly* (keeps only videos from the last 30 days)

The integer is interpreted as the cutoff number of days that the software considers (i.e., using *7* would give the same result as using *weekly*).

**Important note**: For now, only the day is relevant, and not the full upload time with hours and minutes. This means that a day here is not a rolling 24-hour period. Let's say that the software runs at 8pm on April 1st with the *run_frequency=daily* parameter. In this case, only videos uploaded between March 31st 0am and March 31st 12pm would be taken into account, and not videos uploaded between March 31st 8pm and April 1st 8pm.

1.5.1

**Description and tags filtering**

Videos can now be filtered out based on the content of their description (Issue 8) and of their associated tags (Issue 9). Both of these work the same way as video title filtering: two lists of strings define what is required and banned for each.
See the [ReadMe](README.md) for more information.

The release also includes a revamped [ReadMe](README.md), with a better looking design and additional sections containing new information.

1.4.0

**Duplicates checking and language filtering**

Prior to adding the videos to the playlist, the software now performs a duplicate check (i.e., checks if the video is already in the playlist or not) depending on the values of the `keep_duplicates` parameter (Issue 7). This prevents the same video from appearing multiple times in a playlist, for example if it was added manually before the software runs.

Videos can now be filtered out based on their language (Issue 5). Languages are specified by their ISO 639-1 codes (see this [wikipedia page](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)) in the `preferred_languages` parameter. The language of the video is determined first by the audio language (if provided) and then by the title language (if provided). If neither is provided, the video language is marked as *unknown*. Videos with an unknown language are not filtered out, unless they break any of the other rules.
In the future, a way to algorithmically recover the language of the title may be implemented to circumvent the issue of videos with unknown languages.

1.3.0

**Video Duration Filtering**

Videos can now be filtered out based on their duration!
To do so, use the `allowed_durations` parameter by specifying a lower and upper limit for video durations (see the [ReadMe](README.md) for more information).

**Important note**: Since the YT Data API unfortunately doesn't provide any information about the type of content ("normal" videos, shorts, livestreams...), the code to detect if a video is a short or not (enabled by the `keep_shorts` parameter) relies entirely on its duration (if the video is shorter than 65 seconds, it is flagged as a short). This leads to unwanted results if the `keep_shorts` parameter is set to *True* and the lower bound of the `allowed_durations` parameter is less than this 65 seconds threshold. Namely, all videos shorter than 65 seconds will be discarded, whatever that lower bound is. When (if ?) an alternative way of identifying shorts becomes available, it will be implemented to avoid such problems.

1.2.0

**Video Title Filtering**

A new way to filter videos has been added: *video title filtering*.
This works in a similar way to the channel name filtering: two lists of words can be defined so that their content is either required or banned in video titles, allowing for even more customization.
See the [ReadMe](README.md) for more information.

1.1.0

**Name change and API Optimization**

This software is now called _QTube_, a name that better reflects its purpose (i.e., to queue YouTube videos).

This release includes a major API call optimization (Issue 4), with about 10 times fewer calls made per run. This means that the 10K call limit of the free API credentials should no longer be an issue for anyone.

Type hints are now included for the functions of the [library](src/library.py) file.

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.