[feature request] CSV like output #601
Labels
No labels
Wrong-Place
bug
cli
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
ice
invalid
question
request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Creepso/multi-downloader-nx#601
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
CLI
Suggestion
I'm trying to do an script that handle series I'm watching and check new episodes on one command. I had something that worked really great with yt-dlp but reading the output of this software is a nightmare. Because of that I would humble ask if there is a possibility to dump search results based on alias like it's done in filename scheme.
for example: I'd like to check if new episodes of a season is available. So I pass the anidl somewhat like this:
anidl --service crunchy --series [code] --file-dump $alias1 $alias2 $etc --output-file-name name.csv
a csv file is a lot easier to parse and I could do something that could use this to easely get info around with one click.
A way to do the same that produce an easy to read by machine would help a lot too.
Thanks!
True, that would be a nice feature. Though we actually have something like this built in called the archive. Using
--addArchive, you can save every series you download to the archive, so when you run--downloadArchivewith--butit will download all the new episodes of the shows in the archive.As for the actual output, I suspect a lot of refactoring would have to be done to output as a csv, json might be a little more manageable though
json is still easier and would acomplish the objective completly. There's no need of CSV if a good json is outputed.
about --downloadArchive, I was testing it and didn't understand it entirely just with documentation. When I add a series anidl tries to download everything... so I really don't know if it's possible to add for example just download the dub version with the .ass subs for that dub (not the complete one). So I don't know how I could use it to do that without download everything else.
So I was thinking of this over dinner, and would the raw JSON data from the API work (This would be the easiest to accomplish)? Or do you want something more custom? Is there a structure you would prefer? In the example you gave (series), I was thinking something like this:
In the seasons would be the episodes from the API. Honestly making a full TypeScript implementation of their API may not be a bad idea - but a bit off topic.
Circling back to the archive though, basically everything you download (so long as you have
--addArchivein the command oraddArchive: true) will be added to the archive. It doesn't really handle multiple languages though, you could specify the dub you want to download with --dubLang when using --downloadArchive, but, it would be added to the archive if addArchive is present, preventing a download in another dub at another time. One day I have to completely rewrite how archiving works, but I haven't gotten around to it yet.It doesn't need to be custom. If it's easier to just drop the json from the api for you then that's enough for me too. All info will come from there anyway and that can potentialy opens development for stand alone GUIs that can hook info from this program if the API' json is exposed for any input.