tangyoha / telegram_media_downloader

基于Dineshkarthik的项目, 电报视频下载,电报资源下载,跨平台,支持web查看下载进度 ,支持bot下发指令下载,支持下载已经加入的私有群但是限制下载的资源, telegram media download,Download media files from a telegram conversation/chat/channel up to 2GiB per file
MIT License
2.31k stars 268 forks source link

video thumbnail support #38

Open huzikai0424 opened 1 year ago

huzikai0424 commented 1 year ago

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.

tangyoha commented 1 year ago

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

tangyoha commented 1 year ago

@huzikai0424 hi, Try the latest master branch.

huzikai0424 commented 1 year ago

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 commented 1 year ago

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

file_name_prefix:

thum_nameprefix: mythumbnail // download mythumbnail{caption}{message}.jpg

if thum_name_prefix is null, we can skip download it.

tangyoha commented 1 year ago

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

huzikai0424 commented 1 year ago

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

tangyoha commented 1 year ago

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