tuxfoo / lbry-seedit

A simple script to help support the lbry network and your favourite creators on it.
GNU General Public License v2.0
33 stars 10 forks source link

run max_vids over pagination #23

Closed dromer closed 3 years ago

dromer commented 3 years ago

Because lbrynet has an maximum page size of 50, it's better to traverse all pages if one wants to mirror a selection larger than this number.

Instead the config will say a maximum number of vids max_vids can be mirrored and we will traverse the directory until either this maximum is reached or we run out of items.

There is obviously some code redundancy here. I can help refactor the daemon check to where it can be more easily reused if needed.

dromer commented 3 years ago

Saw a logic error + did the refactor.

What do you think? :)

tuxfoo commented 3 years ago

Sounds like a good idea, I will take a look when I have time. Maybe we could also implement https://github.com/tuxfoo/lbry-seedit/issues/16 at the same time.

dromer commented 3 years ago

yeah I was thinking the same thing actually. could be a relatively small tweak to this

dromer commented 3 years ago

<3