Skip to content

Commit

Permalink
done?
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbannon committed Dec 21, 2024
1 parent d7800a5 commit 2fc2a31
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 89 deletions.
21 changes: 20 additions & 1 deletion docs/source/config_reference/subscription_yaml.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,28 @@ to download in condensed YAML.

.. hint::

Read the :ref:`getting started guide <guides/getting_started:Getting Started>`
Read the :ref:`getting started guide <guides/getting_started/index:Getting Started>`
first before reviewing this section.

File Preset
-----------
Many examples show ``__preset__`` at the top. This is known as the *subscription file preset*.
It is where a single :ref:`preset <guides/getting_started/first_config:Custom Preset Definition>`
can be defined that gets applied to each subscription within the file.

This is a good place to apply file-wide variables such as ``tv_show_directory`` or
supply a cookies file path.

.. code-block:: yaml
__preset__:
overrides:
tv_show_directory: "/tv_shows"
ytdl_options:
cookiefile: "/config/cookie.txt"
Layout
------
A subscription file is comprised of YAML keys and values. Keys can be either
Expand Down
2 changes: 1 addition & 1 deletion docs/source/deprecation_notices.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Oct 2023
subscription preset and value
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The use of ``__value__`` will go away in Dec 2023 in favor of the method found in
:ref:`config_reference/subscriptions_yaml:beautifying subscriptions`. ``__preset__`` will still be supported for the time being.
:ref:`config_reference/subscription_yaml:Subscription File`. ``__preset__`` will still be supported for the time being.

July 2023
---------
Expand Down
56 changes: 0 additions & 56 deletions docs/source/guides/getting_started/advanced_configuration.rst

This file was deleted.

4 changes: 2 additions & 2 deletions docs/source/guides/getting_started/first_config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ Setting Override Variables
~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: yaml
:lineno-start: 20
:lineno-start: 23
overrides:
tv_show_directory: "/ytdl_sub_tv_shows"
Expand Down Expand Up @@ -187,7 +187,7 @@ Below shows a complete subscription file using the above two custom presets.
"Jake Trains": "https://www.youtube.com/@JakeTrains"
TV Show Only Recent:
= News
= News:
"BBC News": "https://www.youtube.com/@BBCNews"
Notice how we do not need to define ``tv_show_directory`` in the ``__preset__`` section
Expand Down
8 changes: 5 additions & 3 deletions docs/source/guides/getting_started/first_sub.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Let's break this down:
music_directory: "/music"
The first :ref:`__preset__ <config_reference/subscriptions_yaml:File Preset>` section is where we
The first :ref:`__preset__ <config_reference/subscription_yaml:File Preset>` section is where we
can set modifications that apply to every subscription in this file.

This snippet specifically adds two :ref:`override <config_reference/plugins:Overrides>` variables,
Expand Down Expand Up @@ -96,8 +96,10 @@ Line 12 sets the key to ``= Documentaries``. When keys are prefixed with ``=``,
setting the genre. This value will get written to the respective metadata tags for both TV show
and music presets.

Behind the scenes, this sets the override variable ``subscription_indent_1``. Read more about
subscription syntax :ref:`here <config_reference/subscriptions_yaml:Subscriptions File>`.
Behind the scenes, this sets the override variable ``subscription_indent_1``. Further documentation
can be found here for
:ref:`subscription syntax <config_reference/subscription_yaml:Subscription File>` and
:ref:`subscription variables <config_reference/scripting/static_variables:Subscription Variables>`.

-------------------------------------

Expand Down
29 changes: 3 additions & 26 deletions docs/source/guides/getting_started/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,36 +45,13 @@ Advanced terminology:

Ready to Start?
---------------
Now that you've completed your install of ``ytdl-sub``, it's time to get started. This is a 3-step process:

- Create your subscription file
- Automate starting ytdl-sub
- (Optional) Create a custom configuration file if further customization is needed


:doc:`Step 1: Initial Subscriptions <first_sub>`

:doc:`Step 2: Your First Download <first_download>`

:doc:`Step 3: Automating Downloads <automating_downloads>`

Want to go a step further?

If you want to use atypical paths or specific configuration options, check out :doc:`Basic Configuration <first_config>`

For tips on creating your own presets when the prebuilt presets aren't cutting it, check out :doc:`Advanced Configuration <advanced_configuration>`

Other docs that may be of use:

:doc:`/prebuilt_presets/index`
Now that you've completed your install of ``ytdl-sub``, it's time to get started.
It is recommended to go through the below sections in order to fully grasp ytdl-sub.

.. toctree::
:hidden:
:caption: Getting Started Guide
:maxdepth: 1
:maxdepth: 2

first_sub
first_download
automating_downloads
first_config
advanced_configuration

0 comments on commit 2fc2a31

Please sign in to comment.