major doc refactoring underway
This commit is contained in:
parent
a3ea217a5e
commit
6d298f39ab
9 changed files with 85 additions and 51 deletions
|
|
@ -1,12 +0,0 @@
|
||||||
Kodi/Jellyfin TV Shows
|
|
||||||
======================
|
|
||||||
|
|
||||||
Config
|
|
||||||
|
|
||||||
.. include:: ../../../examples/kodi_tv_shows_config.yaml
|
|
||||||
:literal:
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.. include:: ../../../examples/kodi_tv_shows_subscriptions.yaml
|
|
||||||
:literal:
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
Format Variables
|
|
||||||
================
|
|
||||||
|
|
||||||
Hello, WIP
|
|
||||||
|
|
||||||
.. toctree::
|
|
||||||
:titlesonly:
|
|
||||||
:maxdepth: 2
|
|
||||||
|
|
||||||
soundcloud
|
|
||||||
youtube
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
Soundcloud Track
|
|
||||||
----------------
|
|
||||||
|
|
||||||
.. automodule:: ytdl_sub.entries.variables.soundcloud_variables
|
|
||||||
:members:
|
|
||||||
:inherited-members:
|
|
||||||
:undoc-members:
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
Youtube Video
|
|
||||||
-------------
|
|
||||||
|
|
||||||
.. automodule:: ytdl_sub.entries.variables.youtube_variables
|
|
||||||
:members:
|
|
||||||
:inherited-members:
|
|
||||||
:undoc-members:
|
|
||||||
|
|
@ -1,41 +1,100 @@
|
||||||
Configuration
|
Configuration
|
||||||
=============
|
=============
|
||||||
|
ytdl-sub is configured in the ``config.yaml`` and consists of two sections:
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
Source and Download Strategy
|
configuration:
|
||||||
----------------------------
|
presets:
|
||||||
|
|
||||||
|
The ``configuration`` section contains app-wide configs.
|
||||||
|
|
||||||
|
Presets
|
||||||
|
-------
|
||||||
|
|
||||||
|
``presets`` define a `formula` for how to format downloaded media and metadata.
|
||||||
|
|
||||||
|
Required: Source Download Strategy
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
Download strategies dictate what exactly is getting downloaded from which
|
Download strategies dictate what exactly is getting downloaded from which
|
||||||
source. By having separate strategies, we can define strategy-dependent
|
source. By having separate strategies, we can define strategy-dependent
|
||||||
parameters to better fine-tune how we download things.
|
parameters to better fine-tune how we download things.
|
||||||
|
|
||||||
youtube: channel
|
youtube: channel
|
||||||
^^^^^^^^^^^^^^^^
|
""""""""""""""""
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
presets:
|
||||||
|
my_example_preset:
|
||||||
|
youtube:
|
||||||
|
download_strategy: "channel"
|
||||||
|
|
||||||
.. autoclass:: ytdl_sub.downloaders.youtube_downloader.YoutubeChannelDownloaderOptions()
|
.. autoclass:: ytdl_sub.downloaders.youtube_downloader.YoutubeChannelDownloaderOptions()
|
||||||
:members:
|
:members:
|
||||||
:inherited-members:
|
:inherited-members:
|
||||||
|
:member-order: bysource
|
||||||
:exclude-members: get_date_range
|
:exclude-members: get_date_range
|
||||||
|
|
||||||
youtube: playlist
|
youtube: playlist
|
||||||
^^^^^^^^^^^^^^^^^
|
"""""""""""""""""
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
presets:
|
||||||
|
my_example_preset:
|
||||||
|
youtube:
|
||||||
|
download_strategy: "playlist"
|
||||||
|
|
||||||
.. autoclass:: ytdl_sub.downloaders.youtube_downloader.YoutubePlaylistDownloaderOptions()
|
.. autoclass:: ytdl_sub.downloaders.youtube_downloader.YoutubePlaylistDownloaderOptions()
|
||||||
:members:
|
:members:
|
||||||
:inherited-members:
|
:inherited-members:
|
||||||
|
|
||||||
youtube: video
|
youtube: video
|
||||||
^^^^^^^^^^^^^^
|
""""""""""""""
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
presets:
|
||||||
|
my_example_preset:
|
||||||
|
youtube:
|
||||||
|
download_strategy: "video"
|
||||||
|
|
||||||
.. autoclass:: ytdl_sub.downloaders.youtube_downloader.YoutubeVideoDownloaderOptions()
|
.. autoclass:: ytdl_sub.downloaders.youtube_downloader.YoutubeVideoDownloaderOptions()
|
||||||
:members:
|
:members:
|
||||||
:inherited-members:
|
:inherited-members:
|
||||||
|
|
||||||
soundcloud: albums_and_singles
|
soundcloud: albums_and_singles
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
""""""""""""""""""""""""""""""
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
presets:
|
||||||
|
my_example_preset:
|
||||||
|
soundcloud:
|
||||||
|
download_strategy: "albums_and_singles"
|
||||||
|
|
||||||
.. autoclass:: ytdl_sub.downloaders.soundcloud_downloader.SoundcloudAlbumsAndSinglesDownloadOptions()
|
.. autoclass:: ytdl_sub.downloaders.soundcloud_downloader.SoundcloudAlbumsAndSinglesDownloadOptions()
|
||||||
:members:
|
:members:
|
||||||
:inherited-members:
|
:inherited-members:
|
||||||
|
|
||||||
.. toctree::
|
Format Variables
|
||||||
:titlesonly:
|
----------------
|
||||||
:maxdepth: 2
|
Format variables are ``{variables}`` that contain metadata from downloaded
|
||||||
|
media.
|
||||||
|
|
||||||
|
.. contents:: Source Format Variables
|
||||||
|
:local:
|
||||||
|
|
||||||
|
Youtube Variables
|
||||||
|
^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
.. automodule:: ytdl_sub.entries.variables.youtube_variables
|
||||||
|
:members:
|
||||||
|
:inherited-members:
|
||||||
|
:undoc-members:
|
||||||
|
|
||||||
|
Soundcloud Variables
|
||||||
|
^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
.. automodule:: ytdl_sub.entries.variables.soundcloud_variables
|
||||||
|
:members:
|
||||||
|
:inherited-members:
|
||||||
|
:undoc-members:
|
||||||
|
|
||||||
format_variables/index
|
|
||||||
examples/index
|
|
||||||
|
|
|
||||||
12
docs/examples/kodi_tv_shows.rst
Normal file
12
docs/examples/kodi_tv_shows.rst
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
Kodi/Jellyfin TV Shows
|
||||||
|
======================
|
||||||
|
|
||||||
|
Config
|
||||||
|
|
||||||
|
.. include:: ../../examples/kodi_tv_shows_config.yaml
|
||||||
|
:literal:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.. include:: ../../examples/kodi_tv_shows_subscriptions.yaml
|
||||||
|
:literal:
|
||||||
|
|
@ -24,5 +24,5 @@ prefer.
|
||||||
* Add tags and album cover images so it shows up nicely in your music player
|
* Add tags and album cover images so it shows up nicely in your music player
|
||||||
|
|
||||||
If you want to jump the gun to see how ytdl-sub can be configured to do these things, head over to the
|
If you want to jump the gun to see how ytdl-sub can be configured to do these things, head over to the
|
||||||
:doc:`examples <../config/examples/index>`.
|
:doc:`examples <../examples/index>`.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@ Contents
|
||||||
========
|
========
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:titlesonly:
|
:maxdepth: 3
|
||||||
:maxdepth: 2
|
|
||||||
|
|
||||||
getting_started/index
|
getting_started/index
|
||||||
config/index
|
config/index
|
||||||
|
examples/index
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue