Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom download handler #1

Closed
irtigor opened this issue Jan 9, 2013 · 6 comments
Closed

Custom download handler #1

irtigor opened this issue Jan 9, 2013 · 6 comments

Comments

@irtigor
Copy link

irtigor commented Jan 9, 2013

Hi, I would like to be able to set a custom download handler based on mime-type (and/or per feed). Reason:

  • Would be useful to run greg in my machine, but make the downloads in the server that runs aria2.
  • People would be able to set download limit, number of connections...
  • Mime-type support would allow the download of podcasts avaliable as torrents (like the ones from: http://bitlove.org/) and video podcasts.
@manolomartinez
Copy link
Owner

That makes total sense, and shouldn't be too difficult. Let me look into that.

@manolomartinez
Copy link
Owner

Could you elaborate on the download-handler part of your query? Would the following option be what you are after?: Greg might optionally simply print a list of download links to stdout, that you could then pipe to a script.

I'm trying to think of an alternative that would fit as many use cases as possible.

@irtigor
Copy link
Author

irtigor commented Jan 12, 2013

I was thinking in it as a configuration option, like "Download command = aria2rpc addUri %u --dir %d", that once set in a section would be used instead of the default way (%u and %d would be replaced by the link and download directory), but a list of links works too, at least in my case.

@manolomartinez
Copy link
Owner

This is now implemented in the tip of the development branch. Please install it, and let me know how it goes.

@irtigor
Copy link
Author

irtigor commented Jan 31, 2013

It worked well with a few feeds, but started to misbehave after I added the following feed url:

http://feed.matandorobosgigantes.com

Greg downloads the latest item of this subscription multiple times, appending a underscore at the end of the filename to not overwrite (I'm using the default handler for this subscription -- no specific config).

@manolomartinez
Copy link
Owner

Yes, this feed, for some reason, carries 16 (!) copies of the download link in the enclosures. This is now fixed in master, I think (Greg now removes dupes before downloading). Give it a try, please (and also comment on the new issue #8 that I've just opened).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants