Open srosorcxisto opened 4 months ago
Hello @srosorcxisto, sorry for taking so long to get back to you. I've been busy with work and this was a little hobby project I started back in university so it has been neglected for too long.
Unfortunately there is no way to do the recursive tags as you've described currently. We could possibly support limited recursion for your example by using another symbol (e.g. actor+name!: "{cast}"
).... hmm let me try working that out.
Simple lists are supported, see the following based off your example.
Adding the !
will cause the extractor to loop through all elements in the array and create tags for it.
Input Json (date is needed to not crash program, usually included in .info.json):
{
"categories": [
"Entertainment",
"Comedy"
],
"upload_date": "20091225"
}
Custom Extractor:
episodedetails:
- genre!: "{categories}"
Output:
<?xml version="1.0" ?>
<episodedetails>
<genre>Entertainment</genre>
<genre>Comedy</genre>
</episodedetails>
I've added the >
operator to create nested tags with lists. See #36 . I'll leave this open issue open if you want to continue discussing 3 and contribute to the readme.
Firstly, Thank you to the developers for creating this extraordinarily useful script.
I am attempting to write an extractor that captures a nested list of cast members into the actor section of the NFO spec. The output from yt-dlp looks like this:
and the resulting XML should look like this:
Similarly, I am also trying to add a simple list? For example this info.json:
To these xml nfo tags?
I have been very successful creating extractors for sites that have a simple set of elements, but this is the first time I have tried to make one that involves lists or recursion. So far my attempts have all resulted in "object has no attribute" errors.
My questions are:
Thank you!