gpodder-core icon indicating copy to clipboard operation
gpodder-core copied to clipboard

Feature/cap max downloaded

Open drmikecrowe opened this issue 5 years ago • 8 comments

If you want this, it does the following:

  • Doesn't affect existing operation
  • If the config limit.downloads.podcast_max_new is set to 5 (for example), then 5 episodes are downloaded in the download command

drmikecrowe avatar Jun 14 '20 13:06 drmikecrowe

Isn't this something the user decides by themselves, either you download or you don't I'm not aware of auto-downloading? (I'm pretty sure there would be pitchforks if we had auto-downloading considering the response to episode art)

Keeper-of-the-Keys avatar Oct 24 '20 21:10 Keeper-of-the-Keys

Note that it does not change default operation, it simply allows you to change the default of 200 downloads to whatever number you want. On a system with constrained memory, 200 is a lot

On Sat, Oct 24, 2020, 5:54 PM Keeper-of-the-Keys [email protected] wrote:

Isn't this something the user decides by themselves, either you download or you don't I'm not aware of auto-downloading? (I'm pretty sure there would be pitchforks if we had auto-downloading considering the response to episode art)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gpodder/gpodder-core/pull/38#issuecomment-716060287, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAWBSADHBZPCKZIMNWJVDDSMNEKHANCNFSM4N5OEAXQ .

drmikecrowe avatar Oct 24 '20 22:10 drmikecrowe

Sorry for the extremely delayed response life got a bit in the way.

I'm still not 100% clear on this, since the download command is something the user chooses to run by themselves why do we need to limit this if they download too many episodes they would be barred from downloading more before clearing space.

I'm guessing your use case is different thus necessitating this approach but still would like to understand it more.

(Also one long podcast can be equal in size to lots of other podcasts combined)

Keeper-of-the-Keys avatar Feb 11 '21 20:02 Keeper-of-the-Keys

I put it on a Raspberry Pi. Stuff You Should Know has 1657 episodes. When I ran download, it almost filled up my SD card.

The download command in gpo downloads everything. No limitations

drmikecrowe avatar Feb 17 '21 10:02 drmikecrowe

I see, this is indeed a different use case then what I usually focus on.

Wouldn't using fetch instead of download make more sense for you? Downloads stated purpose is to download all new episodes while you can list & chose using other commands as far as I can tell from the gpo documentation.

Keeper-of-the-Keys avatar Feb 17 '21 14:02 Keeper-of-the-Keys

To be clear the main reason I'm worried about this change is that it changes the way user-facing a function behaved until now, personally I don't use gpo rather gpodder-core functions as the core lib for a SailfishOS application

Keeper-of-the-Keys avatar Feb 17 '21 14:02 Keeper-of-the-Keys

Maybe we can change this into: gpo download 200

Thus the default behavior of download remains unchanged while also allowing the end user to limit how many episodes are downloaded using the download command should they so desire.

Keeper-of-the-Keys avatar Feb 17 '21 14:02 Keeper-of-the-Keys

So a user with space concerns:

  • Limit their downloads every time they use the download command by adding an optional parameter or
  • Set an optional parameter once

It's a don't-care to me, as I'm using my fork. But the need is real, hence my PR. Helms discretion

drmikecrowe avatar Feb 18 '21 23:02 drmikecrowe