Open i-rinat opened 2 years ago
That was asked already: https://github.com/mikf/gallery-dl/discussions/2222#discussioncomment-2060907
So, you managed to find the actual problem here.. it is extractor specific, it only works under very specific circumstances. Here, in this case, when a field like ["filecount"]
is provided.
See line 268 how this is extracted from the document markup: "filecount" : extr('>Length:</td><td class="gdt2">', ' '),
I think a better way to do this would require adding a feature to keep track of the total item count into the gallery-dl core, and then simply pass back a single number from each extractor. For all extractors where this can be extracted in a straightforward way, it won't just work everywhere...
So, you managed to find the actual problem here.. it is extractor specific, it only works under very specific circumstances
Yep. Otherwise it would have been a pull request, not an feature request.
If field filecount is not available => don't write current progress :)
Some galleries take a long time to download. It would be nice to see how many images were already downloaded and how many images a gallery contains in total. Something like this:
Here is a sample patch, which unfortunately only works for Exhentai galleries: