RipMeApp / ripme

Downloads albums in bulk
MIT License
3.72k stars 631 forks source link

[DeviantART] Prompt to stop ripping when files have been already downloaded #12

Closed TjWallas closed 7 years ago

TjWallas commented 7 years ago

It would be nice if there is an option to RIP only newly added (but not already downloaded) images in a user's favorites.

One way to do that is to stop ripping if a threshold of already downloaded files have been reached instead of continuing to request the files all the way till the end :)

rautamiekka commented 7 years ago

Someone actually had the exactly same idea as I did, but I were too afraid to publish it.

My opinions:

metaprime commented 7 years ago

Or have a threshold and have the "stop ripping" behavior be the default, with a checkbox to force re-ripping the entire set, ignoring the re-rip detection threshold. No prompt necessary.

rautamiekka commented 7 years ago

^ Yeah, sounds better.

rautamiekka commented 7 years ago

I've got an idea: 1) have an option in the settings to toggle stopping when an already downloaded item is met 2) if step 1 is enabled, begin downloading like normal and keep going until an already downloaded item is met, at which point check the page if there are anything left to download by cross-referencing the links with the existing files. If not, go to the next rip.

The point is there shouldn't be anything left to get when the rest of the page is already downloaded.

metaprime commented 7 years ago

Agree with the algorithm, but it only works for sites where new content is added to the start of the feed we rip from, and no new content is added in the middle.

Something to consider here: this wouldn't necessarily work the same way on all sites. Imgur albums could have new images added to the middle. Some websites add new content at the end (you'd start a re-rip, and visit all of the oldest content before getting to the new content -- consider a comic website like xkcd where a rip could start at comic 1. Some sites may not have a concept of "start from the end" because you start from the first page and work your way forward until there's nothing left (sites which let you search by tag).

At a minimum, this needs to be opt-out (or opt-in) per-ripper. It only makes sense sometimes.

rautamiekka commented 7 years ago

^ Yes, not an universal solution. I know DeviantArt, Inkbunny and FurAffinity work this way (on DA the order in the folder can be changed manually afterwards; I don't have enough stuff on Inkbunny and FA to test but I know favs can't be reordered), and Tumblr probly doesn't have any other options than newest (dunno what I were thinking when I originally said oldest) first AFAIS.

cyian-1756 commented 7 years ago

It would be nice if there is an option to RIP only newly added (but not already downloaded) images in a user's favorites.

This can be achieved on any site by clicking the "Remember URL history" check box in the configure menu. It will make ripme remember and skip any already downloaded image URLs