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.
This pull request includes several significant changes to the
YTPTube
project, including updates to theREADME.md
file, enhancements to theHttpAPI
andEmitter
classes, and improvements to the configuration management. Below is a summary of the most important changes:Documentation Updates:
README.md
: Added new features such as multi-download support, handling live streams, scheduling downloads, supporting per-link configurations, and queueing multiple URLs. Removed outdated information about thetasks.json
file. [1] [2]New Methods and Enhancements:
app/library/Emitter.py
: Addedinfo
andsuccess
methods to log informational and success messages.API Enhancements:
app/library/HttpAPI.py
:add_tasks
andcors_add_tasks
methods to handle adding tasks via API and supporting CORS for the tasks endpoint. [1] [2]__init__
method to accept aload_tasks
callable and updated thetasks
method to handle the absence of atasks.json
file more gracefully. [1] [2]Configuration Management:
app/library/config.py
: Added detailed docstrings to theConfig
class attributes for better documentation and clarity. [1] [2] [3] [4] [5]Main Application Enhancements:
app/main.py
:job_item
class and updated theMain
class to manage cron jobs for tasks. [1] [2]cron_runner
andload_tasks
methods to improve task scheduling and execution.These changes collectively enhance the functionality, usability, and maintainability of the
YTPTube
project.