Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

v1.0.9

Compare
Choose a tag to compare
@TheCaduceus TheCaduceus released this 10 Jun 10:57
· 17 commits to main since this release
3148c87

What's Changed

  • --thumb flag now support thumbnail generation, passing 'auto' will attach a random frame from video as thumbnail while passing frame time (in seconds) will attach that frame to the video as thumbnail.
  • tg-upload will now automatically detect the height & width of video file if it is not mentioned by the user instead of using a fixed value (h:520 w:1280) which may be inappropriate for some video files.
  • --duration flag will now automatically detect the duration of video or audio file upon passing its value as -1.
  • Added new variables for caption of video & audio files to make them even more dynamic:
    • {height} - Height of video file. (--as_video only)
    • {width} - Width of video file. (--as_video only)
    • {duration} - Duration of video or audio file in seconds. (--as_audio & --as_video only)
  • New utility flag --frame to capture a frame from a video file at given time & save it as .jpg file.
  • Fixed a bug which was not allowing users to set duration for video note during upload.
  • Instead of exiting silently, tg-upload will now raise error message upon getting invalid path.
  • Optimized overall performance of the program.

⛔NOTICE:
This release contains changes that can cause import errors for users upgrading from previous versions due to addition of moviepy library for getting video & audio file attributes, hence users upgrading from previous versions should download latest dependencies:

pip install -r requirements.txt

Full Changelog: v1.0.8...v1.0.9