telegram_media_downloader icon indicating copy to clipboard operation
telegram_media_downloader copied to clipboard

video thumbnail support

Open huzikai0424 opened this issue 1 year ago • 7 comments

Could there be an option to choose whether to download the thumbnail along with the video if there are thumbnails in some videos? Thank you in advance.

huzikai0424 avatar Apr 06 '23 01:04 huzikai0424

@huzikai0424 hi, Thanks for your feedback, we will add it in the next version.

tangyoha avatar Apr 06 '23 02:04 tangyoha

@huzikai0424 hi, Try the latest master branch.

tangyoha avatar Apr 06 '23 08:04 tangyoha

It seems that it didn't work as only the video was downloaded without the thumbnail. By the way, can the name of the thumbnail be customized? I noticed that it is hardcoded in the code, which makes it difficult to associate the thumbnail with the video.

huzikai0424 avatar Apr 06 '23 14:04 huzikai0424

i hava one idea could we customized it in config.yaml like:

file_name_prefix:

  • caption
  • message_id // download {caption}_{message}.mp4

thum_name_prefix: mythumbnail_ // download mythumbnail_{caption}_{message}.jpg

if thum_name_prefix is null, we can skip download it.

huzikai0424 avatar Apr 06 '23 14:04 huzikai0424

Why do you need to download thumbnails separately, I thought it was forwarded messages without thumbnails

tangyoha avatar Apr 06 '23 14:04 tangyoha

因为我之前就下载了好多视频,因为没有缩略图,都是靠ffmpeg二次生成的。有些转发的消息里面自带缩略图,我就想着可以跳过使用ffmpeg生成缩略图这一步了。 这本身是个伪需求,你的脚本已经能帮我实现自动采集了。非常感谢。 (不过看起来缩略图确实是没有下载成功)

huzikai0424 avatar Apr 06 '23 14:04 huzikai0424

缩略图 目前只有转发私有限制的才会下载,你说的这个后面版本加

tangyoha avatar Apr 06 '23 15:04 tangyoha