[DOCS] Various doc cleanups (#928)

This commit is contained in:
Jesse Bannon 2024-02-17 08:53:06 -08:00 committed by GitHub
parent b95ba86279
commit 248e9a15a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 49 additions and 21 deletions

View file

@ -182,7 +182,7 @@ music_videos/
## Custom Configs ## Custom Configs
Any part of this process is modifiable by using custom configs. See our Any part of this process is modifiable by using custom configs. See our
[walk-through guide](https://github.com/jmbannon/ytdl-sub/wiki) [walk-through guide](https://ytdl-sub.readthedocs.io/en/latest/guides/index.html)
on how to build your first config from scratch. Ready-to-use on how to build your first config from scratch. Ready-to-use
[example configurations](https://github.com/jmbannon/ytdl-sub/tree/master/examples) [example configurations](https://github.com/jmbannon/ytdl-sub/tree/master/examples)
can be found here alongside our can be found here alongside our

View file

@ -1,8 +1,8 @@
# Bare-bones config. Here are some useful links to get started: # Bare-bones config. Here are some useful links to get started:
# Walk-through Guide: https://github.com/jmbannon/ytdl-sub/wiki/1.-Introduction # Walk-through Guide: https://ytdl-sub.readthedocs.io/en/latest/guides/index.html
# Config Examples: https://github.com/jmbannon/ytdl-sub/tree/master/examples # Config Examples: https://github.com/jmbannon/ytdl-sub/tree/master/examples
# Prebuilt Presets: https://ytdl-sub.readthedocs.io/en/latest/presets.html # Prebuilt Presets: https://ytdl-sub.readthedocs.io/en/latest/presets.html
# Config Docs: https://ytdl-sub.readthedocs.io/en/latest/config.html # Config Reference: https://ytdl-sub.readthedocs.io/en/latest/config_reference/index.html
# #
# The subscriptions in `subscriptions.yaml` uses prebuilt presets which do not require # The subscriptions in `subscriptions.yaml` uses prebuilt presets which do not require
# any additions to this config. They can be downloaded using the command: # any additions to this config. They can be downloaded using the command:

View file

@ -7,9 +7,9 @@
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
project = "ytdl-sub" project = "ytdl-sub"
copyright = "2023, Jesse Bannon" copyright = "2024, Jesse Bannon"
author = "Jesse Bannon" author = "Jesse Bannon"
release = "2023.12.15" release = ""
# -- General configuration --------------------------------------------------- # -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
@ -47,7 +47,7 @@ html_theme_options = {
"type": "url", "type": "url",
}, },
], ],
"announcement": ("Please excuse our mess as we update these documents"), "announcement": "",
"navigation_depth": 10, "navigation_depth": 10,
"show_toc_level": 10, "show_toc_level": 10,
} }

View file

@ -156,7 +156,7 @@ granularity possible.
:expected type: Optional[OverridesFormatter] :expected type: Optional[OverridesFormatter]
:description: :description:
Only download videos before this datetime. Only download videos after this datetime.
``before`` ``before``

View file

@ -10,6 +10,18 @@ Since ytdl-sub is relatively new to the public, there has not been many question
How do I... How do I...
----------- -----------
...remove the date in the video title?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The :ref:`config_reference/prebuilt_presets/tv_show:TV Show` presets by default include the upload date in the ``episode_title``
override variable. This variable is used to set the title in things like the video metadata, NFO file, etc, which is
subsequently read by media players. This can be overwritten as you see fit by redefining it:
.. code-block:: yaml
overrides:
episode_title: "{title}" # Only sets the video title
...get support or reach out to contribute? ...get support or reach out to contribute?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -29,28 +29,44 @@ If you plan on using the headless image of ``ytdl-sub``, you:
Additional useful (but not required) knowledge: Additional useful (but not required) knowledge:
☑ Understanding how :yt-dlp:`\ ` works ☑ Understanding how :yt-dlp:`\ ` works
Overview
Quick Overview of ``ytdl-sub`` --------
------------------------------
``ytdl-sub`` uses two types of YAML files: ``ytdl-sub`` uses two types of YAML files:
- ``config.yaml`` defines ``presets``, which are the "definitions" of your media. ``presets`` "define" how you want your media downloaded, which formats, naming conventions to follow when saving them, etc. These ``presets`` can also inherit other ``presets``, so that you can easily modify an existing ``preset``. subscriptions.yaml
- ``subscriptions.yaml`` defines ``subscriptions``, which specify the media we want to recurrently download, like YouTube channels and playlists, SoundCloud artists, or any :yt-dlp:`yt-dlp supported site <blob/master/supportedsites.md>`. ``subscriptions`` use ``presets`` to define how ``ytdl-sub`` should handle downloading, processing, and saving them. ~~~~~~~~~~~~~~~~~~
Defines ``subscriptions``, which specify the media we want to recurrently download, like YouTube
channels and playlists, SoundCloud artists, or any
:yt-dlp:`yt-dlp supported site <blob/master/supportedsites.md>`. ``subscriptions`` use ``presets``
to define how ``ytdl-sub`` should handle downloading, processing, and saving them.
When ``ytdl-sub`` is run, in its most basic form: ``ytdl-sub`` comes packaged with many
:ref:`prebuilt presets <prebuilt_presets/index:Prebuilt Presets>`
that will play nicely with well-known media players.
config.yaml
~~~~~~~~~~~
To customize ``ytdl-sub`` to beyond the prebuilt presets, you will need a ``config.yaml`` file. This
file is where custom ``presets`` can be defined to orchestrate ``ytdl-sub`` to your very specific needs.
Running ytdl-sub
~~~~~~~~~~~~~~~~
To invoke ``ytdl-sub`` to download subscriptions, use the following command:
.. tab-set-code:: .. tab-set-code::
.. code-block:: shell .. code-block:: shell
ytdl-sub sub ytdl-sub sub subscriptions.yaml
.. code-block:: powershell .. code-block:: powershell
ytdl-sub.exe sub ytdl-sub.exe sub subscriptions.yaml
``ytdl-sub`` initially downloads all files to a defined ``working_directory``. This is a temporary storage spot for metadata and media files so that errors during processing- if they occur- don't affect your existing media library. Once all file processing is complete, your media files are moved to the ``output_directory``. ``ytdl-sub`` initially downloads all files to a defined ``working_directory``. This is a temporary
storage spot for metadata and media files so that errors during processing- if they occur- don't
affect your existing media library. Once all file processing is complete, your media files are
moved to the ``output_directory``.
Ready to Start? Ready to Start?
--------------- ---------------

View file

@ -11,17 +11,17 @@ The following actions are taken based on the indicated player:
Jellyfin Jellyfin
~~~~~~~~ --------
* Places any season-specific poster art in the main show folder * Places any season-specific poster art in the main show folder
* Generates NFO tags * Generates NFO tags
Kodi Kodi
~~~~ --------
* Everything that the Jellyfin version does * Everything that the Jellyfin version does
* Enables ``kodi_safe`` NFOs, replacing 4-byte unicode characters that break kodi with ```` * Enables ``kodi_safe`` NFOs, replacing 4-byte unicode characters that break kodi with ````
Plex Plex
~~~~ --------
* :ref:`Special sanitization <config_reference/scripting/entry_variables:title_sanitized_plex>` of numbers so Plex doesn't recognize numbers that are part of the title as the episode number * :ref:`Special sanitization <config_reference/scripting/entry_variables:title_sanitized_plex>` of numbers so Plex doesn't recognize numbers that are part of the title as the episode number
* Converts all downloaded videos to the mp4 format * Converts all downloaded videos to the mp4 format
* Places any season-specific poster art into the season folder * Places any season-specific poster art into the season folder

View file

@ -57,7 +57,7 @@ class DateRangeOptions(ToggleableOptionsDictValidator):
""" """
:expected type: Optional[OverridesFormatter] :expected type: Optional[OverridesFormatter]
:description: :description:
Only download videos before this datetime. Only download videos after this datetime.
""" """
return self._after return self._after