-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
114 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Getting Started | ||
=============== | ||
|
||
Walk-through Guide | ||
------------------- | ||
If you haven't read it yet, it's highly recommended to go through our | ||
`walk-through guide <https://github.com/jmbannon/ytdl-sub/wiki/1.-Introduction>`_ | ||
to get familiar with how ``ytdl-sub`` works. | ||
|
||
Example Configs | ||
--------------- | ||
If you are ready to start downloading, see our | ||
`examples directory <https://github.com/jmbannon/ytdl-sub/tree/master/examples>`_ | ||
for ready-to-use configs and subscriptions. Read through them carefully before use. | ||
|
||
Using Example Configs | ||
^^^^^^^^^^^^^^^^^^^^^^ | ||
Copy and paste the examples into local yaml files, modify the | ||
``working_directory`` and ``output_directory`` with your desired paths, | ||
and perform a dry-run using | ||
|
||
.. code-block:: bash | ||
ytdl-sub \ | ||
--dry-run \ | ||
--config path/to/config.yaml \ | ||
sub path/to/subscriptions.yaml | ||
This will simulate what a download will look like. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,5 +22,7 @@ Contents | |
:maxdepth: 2 | ||
|
||
install | ||
usage | ||
getting_started | ||
presets | ||
config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
Usage | ||
======= | ||
|
||
.. code-block:: | ||
ytdl-sub [GENERAL OPTIONS] {sub,dl,view} [COMMAND OPTIONS] | ||
For Windows users, it would be ``ytdl-sub.exe`` | ||
|
||
General Options | ||
--------------- | ||
|
||
General options must be specified before the command (i.e. ``sub``). | ||
|
||
.. code-block:: text | ||
-h, --help show this help message and exit | ||
-c CONFIGPATH, --config CONFIGPATH | ||
path to the config yaml, uses config.yaml if not provided | ||
--dry-run preview what a download would output, does not perform any | ||
video downloads or writes to output directories | ||
--log-level quiet|info|verbose|debug | ||
level of logs to print to console, defaults to info | ||
Sub Options | ||
----------- | ||
Download all subscriptions specified in each ``SUBPATH``. | ||
|
||
.. code-block:: | ||
ytdl-sub [GENERAL OPTIONS] sub [SUBPATH ...] | ||
``SUBPATH`` is one or more paths to subscription files, uses ``subscriptions.yaml`` if not provided. | ||
It will use the config specified by ``--config``, or ``config.yaml`` if not provided. | ||
|
||
Download Options | ||
----------------- | ||
Download a single subscription in the form of CLI arguments. | ||
|
||
.. code-block:: | ||
ytdl-sub [GENERAL OPTIONS] dl [SUBSCRIPTION ARGUMENTS] | ||
``SUBSCRIPTION ARGUMENTS`` are exactly the same as YAML arguments, but use periods (``.``) instead | ||
of indents for specifying YAML from the CLI. For example, you can represent this subscription: | ||
|
||
.. code-block:: yaml | ||
rick_a: | ||
preset: | ||
- "tv_show" | ||
overrides: | ||
tv_show_name: "Rick A" | ||
url: "https://www.youtube.com/channel/UCuAXFkgsw1L7xaCfnd5JJOw" | ||
Using the command: | ||
|
||
.. code-block:: bash | ||
ytdl-sub dl \ | ||
--preset "tv_show" \ | ||
--overrides.tv_show_name "Rick A" \ | ||
--overrides.url: "https://www.youtube.com/channel/UCuAXFkgsw1L7xaCfnd5JJOw" | ||
See how to shorten commands using | ||
`download aliases <https://ytdl-sub.readthedocs.io/en/latest/config.html#ytdl_sub.config.config_validator.ConfigOptions.dl_aliases>`_. | ||
|
||
View Options | ||
----------------- | ||
.. code-block:: | ||
ytdl-sub view [URL] | ||
Preview the source variables for a given URL. Helps when creating new configs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters