main: changes, fixes
- refactors http session usage across modules - adjusts video info extraction - improves temporary directory, concurrency limits, buffering, and error handling in download routines
This commit is contained in:
parent
10c113f400
commit
58bd5827b3
12 changed files with 171 additions and 51 deletions
|
@ -57,10 +57,10 @@ func insertVideoInfo(
|
|||
format *models.MediaFormat,
|
||||
filePath string,
|
||||
) {
|
||||
width, height, duration := av.GetVideoInfo(filePath)
|
||||
duration, width, height := av.GetVideoInfo(filePath)
|
||||
format.Duration = duration
|
||||
format.Width = width
|
||||
format.Height = height
|
||||
format.Duration = duration
|
||||
}
|
||||
|
||||
func GetMessageFileID(msg *gotgbot.Message) string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue