EchterAlsFake / PHUB

A lightweight API for Pornhub
https://phub.rtfd.io
GNU General Public License v3.0
75 stars 25 forks source link

Fix #20 #21

Closed EchterAlsFake closed 1 year ago

EchterAlsFake commented 1 year ago

Hi,

With your fix for #20 I still got another error which is this one:

callback.on_download(i + 1, length)
TypeError: Callback.new.<locals>.wrapper() takes 2 positional arguments but 3 were given

My PR fixed it, but I am not sure if it doesn't break anything else.

Egsagon commented 1 year ago

Mb, forgot to change callback structure for the default downloader. Your PR would have worked for default downloads, but fail for the others. Should be fixed with last commit.