This commit is contained in:
Jesse Bannon 2022-09-07 11:05:37 -07:00
parent 345570f160
commit b0a5df6bc2
2 changed files with 12 additions and 2 deletions

View file

@ -230,7 +230,7 @@ class NfoTagsOptions(
<episode>502</episode> <episode>502</episode>
</episodedetails> </episodedetails>
Also supports xml attributes: Also supports xml attributes and duplicate keys:
.. code-block:: yaml .. code-block:: yaml
@ -239,12 +239,17 @@ class NfoTagsOptions(
attributes: attributes:
name: "Best Year" name: "Best Year"
tag: "{upload_year}" tag: "{upload_year}"
genre:
- "Comedy"
- "Drama"
Which translates to Which translates to
.. code-block:: xml .. code-block:: xml
<season name="Best Year">2022</season> <season name="Best Year">2022</season>
<genre>Comedy</genre>
<genre>Drama</genre>
""" """
return self._tags return self._tags

View file

@ -62,7 +62,7 @@ class OutputDirectoryNfoTagsOptions(
<title>Sweet youtube TV show</title> <title>Sweet youtube TV show</title>
</tvshow> </tvshow>
Also supports xml attributes: Also supports xml attributes and duplicate keys:
.. code-block:: yaml .. code-block:: yaml
@ -71,12 +71,17 @@ class OutputDirectoryNfoTagsOptions(
attributes: attributes:
year: "2022" year: "2022"
tag: "Sweet youtube TV show" tag: "Sweet youtube TV show"
genre:
- "Comedy"
- "Drama"
Which translates to Which translates to
.. code-block:: xml .. code-block:: xml
<title year="2022">Sweet youtube TV show</season> <title year="2022">Sweet youtube TV show</season>
<genre>Comedy</genre>
<genre>Drama</genre>
""" """
return self._tags return self._tags