Add support for multiple downloads with multiple URLs #14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This pull request introduces significant enhancements to the project, including support for multiple downloads via command line arguments, cache management functionality, and various internal code improvements.
Notable Changes
Introduced the
temppath
module, developed in-house, which simplifies the creation of temporary directories or files. This module streamlines processes that require temporary storage, providing an uncomplicated and efficient solution.Implemented functionality allowing users to supply multiple YouTube URLs directly via command line arguments, eliminating the need for a temporary file containing URLs. This feature enhances flexibility and convenience for users who prefer CLI-based operations. For example:
Replaced the deprecated
substr
function withsubstring
to ensure compatibility with modern JavaScript standards and improve code readability.Summary
These updates significantly enhance the project's capabilities, particularly by adding support for multiple downloads. The introduction of the
temppath
module, along with the cache management functions for caching the given multiple URLs from command line, provides a more efficient and streamlined experience for users. Additionally, the internal code improvements ensure better maintainability and alignment with modern coding practices.