[feature request] CSV like output #601

Open
opened 2024-03-20 23:25:31 +00:00 by tamodolo · 4 comments
tamodolo commented 2024-03-20 23:25:31 +00:00 (Migrated from github.com)

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!

### 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!
Jaynator495 commented 2024-03-20 23:34:15 +00:00 (Migrated from github.com)

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 --downloadArchive with --but it 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

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 `--downloadArchive` with `--but` it 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
tamodolo commented 2024-03-20 23:51:01 +00:00 (Migrated from github.com)

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 --downloadArchive with --but it will download all the new episodes of a show.

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.

> 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 `--downloadArchive` with `--but` it will download all the new episodes of a show. > > 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.
Jaynator495 commented 2024-03-21 00:42:47 +00:00 (Migrated from github.com)

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:

{
  "series": {rawCrunchySeries},
  "seasons": [{rawCrunchySeason}, {rawCrunchySeason}]
}

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 --addArchive in the command or addArchive: 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.

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: ```json { "series": {rawCrunchySeries}, "seasons": [{rawCrunchySeason}, {rawCrunchySeason}] } ``` 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 `--addArchive` in the command or `addArchive: 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.
tamodolo commented 2024-03-21 02:06:59 +00:00 (Migrated from github.com)

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.

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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Creepso/multi-downloader-nx#601
No description provided.