JuanBindez / pytubefix

Python3 library for downloading YouTube Videos.
http://pytubefix.rtfd.io/
MIT License
615 stars 88 forks source link

is there any Thread lock? #229

Closed sleepingcat4 closed 3 weeks ago

sleepingcat4 commented 1 month ago

I had been downloading videos in parallel before using pytube and pytube fix by loading multiple urls and multiple threads (1 thread = 1url) but in the most recent version no matter how hardcore I mentioned for it download all the loaded videos on each thread at same time it downloads sequentially. Which sucks.

is there any thread lock or internal lock in place that was written in the most recent versions? @JuanBindez

felipeucelli commented 1 month ago

This PR #218 added a download interruption parameter. But I can't test if it's what's causing your problem.

sleepingcat4 commented 1 month ago

@felipeucelli what was the last version before this param was included? I can try out that version. I have been experiencing this for 2 weeks now.

felipeucelli commented 1 month ago

Test pytubefix==6.15.4

fedetony commented 3 weeks ago

Just a suggestion, you could try to use asyncio python package instead of multithreading. Here a detail description. :)