Open DarrenPIngram opened 1 week ago
Regarding the first point. I think that gallery-dl with -I flag is a nice approach; the downloaded url is commented out, but it is preserved in the file. With that you could write say a bash function that only adds the new url if it's not found in the file.
I wrote, and even used a few years, some python that used mariadb to keep track, and then call yle-dl to do the downloading. When called with url as an argument it would add it if it wasn't a duplicate, and without arguments it would download all urls unmarked as downloaded. But it was a bit complicated and somewhat error prone and over-engineered solution.
Anyway, thank you @aajanki for yle-dl. Your efforts have been an integral part of my media consumption for years :)
The points 1-3 are great ideas but not in the scope of the yle-dl project. Yle-dl focuses just on downloading streams. I think that it would be best to implement those kind of features as a separate download manager application that calls yle-dl to do the actual downloading, a bit like what @ekari describes. Hopefully, somebody becomes inspired to write such an application.
Rewriting the output filename (point 4) is already possible using the --output-template
switch. The following generates file names along the lines you describe: yle-dl --output-template '${series}_${episode}_${date}' ...
The points 1-3 are great ideas but not in the scope of the yle-dl project
Yes, as I wrote, if you don't ask. Get_Iplayer developed from a command line downloader to what it is today, but obviously one can never demand or expect a one-man developer to do something. Well you can, but you then should be disappointed with the answer and feel ashamed for your bad behaviour.
Even so, I could squint and see point 1 could be an easier thing to implement and still be in the scope of a CLI downloader, since your app would know directly the status of a download (is there an exit code or similar) and could just write the URL downloaded to a file. And then a corresponding flag to opt-in to read the history or opt-out (dependent on the implementation). If I was a programmer I'd have offered that up. Otherwise maybe somebody who lurks here who is a programmer could knock it up and send a PR for you to consider?
You already have other elements too (take a list of URLs, output to a given directory and the like) and i use them in a simple BASH script already.
For "Elonet" I have a script that manages its own history but it is not as elegant.
Rewriting the output filename (point 4) is already possible using the
--output-template
switch. The following generates file names along the lines you describe:yle-dl --output-template '${series}_${episode}_${date}' ...
Ah, I overlooked that. I even double checked the Github page and read through the commands, and promptly ignored the text at the bottom about getting a full list of commands... :(
I don't know how open you are to further development ideas, or how much more you would want to expand the application, but if you never tell or ask, you can never know. Neither can the developer be a mindreader.
Anyway, that was a brief brain dump of a few things. Not that I am a programmer who could contribute code (well, I really don't think you'd want my attempts ... :) :) Whether it leads to anything or not, I don't know.