bug(media_youtubedl): Hang on some videos
This is a very difficult problem to reproduce, but happens both with videos from twitter_feed
and facebook_api_feed
.
A certain video download will just hang indefinitely, with the last log output being the previously downloaded video.
a note: when navigating to the location of the downloaded video on the computer or server, the video always downloads to a particular point, and then stops. the same 2MB of 4MB gets downloaded each time (for example). Deleting the file and running the pipeline again will download the same 2MB and stop.
Ran on a different machine, the video will download fine.
The workaround fix for the issue that I am currently doing is manually downloading the video to the correct location. After this, on the next run, the pipeline will proceed past this video.
I have traced the pipeline down to this line: https://gitlab.com/sugarcube/sugarcube/blob/master/packages/plugin-media/lib/utils.js#L16
That is where the whole pipeline stops with one of these videos. However, running the youtube-dl
command manually with the same parameters always works. This was not happening before youtube-dl
was moved from the plugin-youtube
to media-youtubedl