Skip to content

v2.0.4

Latest

Choose a tag to compare

@toydotgame toydotgame released this 20 Jul 10:18

The differences are:

  • Added #onOutBufferUpdate(char) and #onErrBufferUpdate(char) methods for DownloadProgressCallback for respective stdout/stderr buffer streams. i.e. they're not public so you can print live output instead of using YtDlpResponse#getOut() and #getErr()
  • YtDlpException is safe to serialise
  • Regexes have been updated so the #onProgressUpdate(float, long) method now works for when yt-dlp is taking a while to calculate an ETA. Additionally, the old regex has been updated for compatibility with YouTube fragment logging (which meant that before now, progress callbacks completely didn't work at all!!!).
    • When using this, note that etaInSeconds will now be -1 to represent "Unknown"
    • (Internally) Progress regexes are defined with the String constants already in the class to remove redundant specification