2023-10-05 21:21:26 +02:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"fmt"
|
|
|
|
"io"
|
|
|
|
"os"
|
2024-01-16 19:51:36 +01:00
|
|
|
"strings"
|
2023-10-05 21:21:26 +02:00
|
|
|
|
2023-10-05 23:11:11 +02:00
|
|
|
"github.com/gempir/go-twitch-irc/v4"
|
2023-10-05 21:21:26 +02:00
|
|
|
"github.com/google/uuid"
|
2023-12-19 22:30:22 +01:00
|
|
|
ffmpeg "github.com/u2takey/ffmpeg-go"
|
2023-10-05 21:21:26 +02:00
|
|
|
"github.com/wader/goutubedl"
|
|
|
|
)
|
|
|
|
|
2023-10-05 23:11:11 +02:00
|
|
|
func (app *application) NewDownload(destination, target, link string, msg twitch.PrivateMessage) {
|
|
|
|
identifier := uuid.NewString()
|
|
|
|
go app.Models.Uploads.Insert(
|
|
|
|
msg.User.Name,
|
|
|
|
msg.User.ID,
|
|
|
|
msg.Channel,
|
|
|
|
msg.Message,
|
|
|
|
destination,
|
|
|
|
link,
|
|
|
|
identifier,
|
|
|
|
)
|
2023-10-05 21:21:26 +02:00
|
|
|
|
|
|
|
switch destination {
|
|
|
|
case "catbox":
|
2023-10-10 17:51:12 +02:00
|
|
|
app.CatboxDownload(target, link, identifier, msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
case "yaf":
|
2023-10-10 17:51:12 +02:00
|
|
|
app.YafDownload(target, link, identifier, msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
case "kappa":
|
2023-10-10 17:51:12 +02:00
|
|
|
app.KappaDownload(target, link, identifier, msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
case "gofile":
|
2023-10-10 17:51:12 +02:00
|
|
|
app.GofileDownload(target, link, identifier, msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
}
|
|
|
|
}
|
2023-12-19 22:53:42 +01:00
|
|
|
|
|
|
|
func (app *application) ConvertAndSave(fName, link string, msg twitch.PrivateMessage) {
|
|
|
|
goutubedl.Path = "yt-dlp"
|
|
|
|
uuid_og := uuid.NewString()
|
|
|
|
|
|
|
|
app.Send(msg.Channel, "Downloading... dankCircle", msg)
|
|
|
|
result, err := goutubedl.New(context.Background(), link, goutubedl.Options{})
|
|
|
|
if err != nil {
|
|
|
|
app.Log.Errorln(err)
|
|
|
|
app.Send(msg.Channel, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg)
|
|
|
|
return
|
|
|
|
}
|
2024-01-16 19:51:36 +01:00
|
|
|
|
|
|
|
var rExt string
|
|
|
|
// For some reason youtube links return webm as result.Info.Ext but
|
|
|
|
// are in reality mp4.
|
|
|
|
if strings.HasPrefix(link, "https://www.youtube.com/") || strings.HasPrefix(link, "https://youtu.be/") {
|
|
|
|
rExt = "mp4"
|
|
|
|
} else {
|
|
|
|
rExt = result.Info.Ext
|
|
|
|
}
|
|
|
|
|
2023-12-19 22:53:42 +01:00
|
|
|
downloadResult, err := result.Download(context.Background(), "best")
|
|
|
|
if err != nil {
|
|
|
|
app.Log.Errorln(err)
|
|
|
|
app.Send(msg.Channel, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
//app.Send(target, "Downloaded.", msg)
|
2023-12-19 23:16:53 +01:00
|
|
|
fileName := fmt.Sprintf("/public/uploads/%s.%s", uuid_og, rExt)
|
2023-12-19 22:53:42 +01:00
|
|
|
f, err := os.Create(fileName)
|
|
|
|
//app.Send(target, fmt.Sprintf("Filename: %s", fileName), msg)
|
|
|
|
if err != nil {
|
|
|
|
app.Log.Errorln(err)
|
|
|
|
app.Send(msg.Channel, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
defer f.Close()
|
|
|
|
if _, err = io.Copy(f, downloadResult); err != nil {
|
|
|
|
app.Log.Errorln(err)
|
|
|
|
app.Send(msg.Channel, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
downloadResult.Close()
|
|
|
|
f.Close()
|
|
|
|
|
|
|
|
out := fmt.Sprintf("/public/uploads/%s.mp4", fName)
|
|
|
|
fn, err := os.Create(out)
|
|
|
|
if err != nil {
|
|
|
|
app.Log.Errorln(err)
|
|
|
|
app.Send(msg.Channel, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
defer fn.Close()
|
|
|
|
|
|
|
|
err = ffmpeg.Input(fileName).
|
|
|
|
Output(out).
|
|
|
|
OverWriteOutput().ErrorToStdOut().Run()
|
|
|
|
|
2023-12-19 23:16:53 +01:00
|
|
|
defer os.Remove(fileName)
|
2024-01-08 16:25:54 +01:00
|
|
|
app.Send(msg.Channel, fmt.Sprintf("https://bot.noury.li/uploads/%s.mp4", fName), msg)
|
2023-12-19 22:53:42 +01:00
|
|
|
}
|
2023-12-19 23:16:53 +01:00
|
|
|
|
2023-12-19 22:30:22 +01:00
|
|
|
func (app *application) ConvertToMP4(link string, msg twitch.PrivateMessage) {
|
2023-12-27 13:12:13 +01:00
|
|
|
fName := "in"
|
2023-12-19 22:30:22 +01:00
|
|
|
goutubedl.Path = "yt-dlp"
|
|
|
|
uuid_og := uuid.NewString()
|
|
|
|
uuid_new := uuid.NewString()
|
|
|
|
|
|
|
|
app.Send(msg.Channel, "Downloading... dankCircle", msg)
|
|
|
|
result, err := goutubedl.New(context.Background(), link, goutubedl.Options{})
|
|
|
|
if err != nil {
|
|
|
|
app.Log.Errorln(err)
|
|
|
|
app.Send(msg.Channel, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg)
|
|
|
|
return
|
|
|
|
}
|
2024-01-16 19:51:36 +01:00
|
|
|
|
|
|
|
// For some reason youtube links return webm as result.Info.Ext but
|
|
|
|
// are in reality mp4.
|
|
|
|
var rExt string
|
|
|
|
if strings.HasPrefix(link, "https://www.youtube.com/") || strings.HasPrefix(link, "https://youtu.be/") {
|
|
|
|
rExt = "mp4"
|
|
|
|
} else {
|
|
|
|
rExt = result.Info.Ext
|
|
|
|
}
|
|
|
|
|
2023-12-19 22:30:22 +01:00
|
|
|
downloadResult, err := result.Download(context.Background(), "best")
|
|
|
|
if err != nil {
|
|
|
|
app.Log.Errorln(err)
|
|
|
|
app.Send(msg.Channel, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
//app.Send(target, "Downloaded.", msg)
|
2023-12-27 13:12:13 +01:00
|
|
|
fileName := fmt.Sprintf("/public/uploads/%s.%s", uuid_og, rExt)
|
2023-12-19 22:30:22 +01:00
|
|
|
f, err := os.Create(fileName)
|
|
|
|
//app.Send(target, fmt.Sprintf("Filename: %s", fileName), msg)
|
|
|
|
if err != nil {
|
|
|
|
app.Log.Errorln(err)
|
|
|
|
app.Send(msg.Channel, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
defer f.Close()
|
|
|
|
if _, err = io.Copy(f, downloadResult); err != nil {
|
|
|
|
app.Log.Errorln(err)
|
|
|
|
app.Send(msg.Channel, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
downloadResult.Close()
|
|
|
|
f.Close()
|
2023-12-19 22:53:42 +01:00
|
|
|
|
2023-12-27 13:12:13 +01:00
|
|
|
out := fmt.Sprintf("/public/uploads/%s.mp4", fName)
|
2023-12-19 22:53:42 +01:00
|
|
|
fn, err := os.Create(out)
|
2023-12-19 22:30:22 +01:00
|
|
|
if err != nil {
|
|
|
|
app.Log.Errorln(err)
|
|
|
|
app.Send(msg.Channel, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
defer fn.Close()
|
|
|
|
|
|
|
|
err = ffmpeg.Input(fileName).
|
2023-12-19 22:53:42 +01:00
|
|
|
Output(out).
|
2023-12-19 22:30:22 +01:00
|
|
|
OverWriteOutput().ErrorToStdOut().Run()
|
|
|
|
|
2023-12-27 13:12:13 +01:00
|
|
|
defer os.Remove(fileName)
|
2023-12-19 22:53:42 +01:00
|
|
|
go app.NewUpload("yaf", out, msg.Channel, uuid_new, msg)
|
2023-12-19 22:30:22 +01:00
|
|
|
}
|
2023-10-05 21:21:26 +02:00
|
|
|
|
2023-10-10 17:51:12 +02:00
|
|
|
func (app *application) YafDownload(target, link, identifier string, msg twitch.PrivateMessage) {
|
2023-10-05 21:21:26 +02:00
|
|
|
goutubedl.Path = "yt-dlp"
|
|
|
|
|
2023-10-10 17:51:12 +02:00
|
|
|
app.Send(target, "Downloading... dankCircle", msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
result, err := goutubedl.New(context.Background(), link, goutubedl.Options{})
|
|
|
|
if err != nil {
|
|
|
|
app.Log.Errorln(err)
|
2023-10-10 17:51:12 +02:00
|
|
|
app.Send(target, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
return
|
|
|
|
}
|
2024-01-16 19:51:36 +01:00
|
|
|
|
|
|
|
// For some reason youtube links return webm as result.Info.Ext but
|
|
|
|
// are in reality mp4.
|
|
|
|
var rExt string
|
|
|
|
if strings.HasPrefix(link, "https://www.youtube.com/") || strings.HasPrefix(link, "https://youtu.be/") {
|
|
|
|
rExt = "mp4"
|
|
|
|
} else {
|
|
|
|
rExt = result.Info.Ext
|
|
|
|
}
|
|
|
|
|
2023-10-05 21:21:26 +02:00
|
|
|
downloadResult, err := result.Download(context.Background(), "best")
|
|
|
|
if err != nil {
|
|
|
|
app.Log.Errorln(err)
|
2023-10-10 17:51:12 +02:00
|
|
|
app.Send(target, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
return
|
|
|
|
}
|
2023-12-03 15:58:33 +01:00
|
|
|
//app.Send(target, "Downloaded.", msg)
|
2024-01-02 14:00:47 +01:00
|
|
|
fileName := fmt.Sprintf("/public/uploads/%s.%s", identifier, rExt)
|
2023-10-05 21:21:26 +02:00
|
|
|
f, err := os.Create(fileName)
|
2023-12-03 15:58:33 +01:00
|
|
|
//app.Send(target, fmt.Sprintf("Filename: %s", fileName), msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
app.Log.Errorln(err)
|
2023-10-10 17:51:12 +02:00
|
|
|
app.Send(target, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
return
|
|
|
|
}
|
|
|
|
defer f.Close()
|
|
|
|
if _, err = io.Copy(f, downloadResult); err != nil {
|
|
|
|
app.Log.Errorln(err)
|
2023-10-10 17:51:12 +02:00
|
|
|
app.Send(target, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
downloadResult.Close()
|
|
|
|
f.Close()
|
|
|
|
// duration := 5 * time.Second
|
|
|
|
// dl.twitchClient.Say(target, "ResidentSleeper ..")
|
|
|
|
// time.Sleep(duration)
|
|
|
|
|
2023-10-10 17:51:12 +02:00
|
|
|
go app.NewUpload("yaf", fileName, target, identifier, msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2023-10-10 17:51:12 +02:00
|
|
|
func (app *application) KappaDownload(target, link, identifier string, msg twitch.PrivateMessage) {
|
2023-10-05 21:21:26 +02:00
|
|
|
goutubedl.Path = "yt-dlp"
|
|
|
|
|
2023-10-10 17:51:12 +02:00
|
|
|
app.Send(target, "Downloading... dankCircle", msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
result, err := goutubedl.New(context.Background(), link, goutubedl.Options{})
|
|
|
|
if err != nil {
|
|
|
|
app.Log.Errorln(err)
|
2023-10-10 17:51:12 +02:00
|
|
|
app.Send(target, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
return
|
|
|
|
}
|
2024-01-16 19:51:36 +01:00
|
|
|
|
|
|
|
// For some reason youtube links return webm as result.Info.Ext but
|
|
|
|
// are in reality mp4.
|
|
|
|
var rExt string
|
|
|
|
if strings.HasPrefix(link, "https://www.youtube.com/") || strings.HasPrefix(link, "https://youtu.be/") {
|
|
|
|
rExt = "mp4"
|
|
|
|
} else {
|
|
|
|
rExt = result.Info.Ext
|
|
|
|
}
|
|
|
|
|
2023-10-05 21:21:26 +02:00
|
|
|
downloadResult, err := result.Download(context.Background(), "best")
|
|
|
|
if err != nil {
|
|
|
|
app.Log.Errorln(err)
|
2023-10-10 17:51:12 +02:00
|
|
|
app.Send(target, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
return
|
|
|
|
}
|
2023-12-03 15:58:33 +01:00
|
|
|
//app.Send(target, "Downloaded.", msg)
|
2024-01-02 14:00:47 +01:00
|
|
|
fileName := fmt.Sprintf("/public/uploads/%s.%s", identifier, rExt)
|
2023-10-05 21:21:26 +02:00
|
|
|
f, err := os.Create(fileName)
|
2023-12-03 15:58:33 +01:00
|
|
|
//app.Send(target, fmt.Sprintf("Filename: %s", fileName), msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
app.Log.Errorln(err)
|
2023-10-10 17:51:12 +02:00
|
|
|
app.Send(target, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
return
|
|
|
|
}
|
|
|
|
defer f.Close()
|
|
|
|
if _, err = io.Copy(f, downloadResult); err != nil {
|
|
|
|
app.Log.Errorln(err)
|
2023-10-10 17:51:12 +02:00
|
|
|
app.Send(target, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
downloadResult.Close()
|
|
|
|
f.Close()
|
|
|
|
// duration := 5 * time.Second
|
|
|
|
// dl.twitchClient.Say(target, "ResidentSleeper ..")
|
|
|
|
// time.Sleep(duration)
|
|
|
|
|
2023-10-10 17:51:12 +02:00
|
|
|
go app.NewUpload("kappa", fileName, target, identifier, msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2023-10-10 17:51:12 +02:00
|
|
|
func (app *application) GofileDownload(target, link, identifier string, msg twitch.PrivateMessage) {
|
2023-10-05 21:21:26 +02:00
|
|
|
goutubedl.Path = "yt-dlp"
|
|
|
|
|
2023-10-10 17:51:12 +02:00
|
|
|
app.Send(target, "Downloading... dankCircle", msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
result, err := goutubedl.New(context.Background(), link, goutubedl.Options{})
|
|
|
|
if err != nil {
|
|
|
|
app.Log.Errorln(err)
|
2023-10-10 17:51:12 +02:00
|
|
|
app.Send(target, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
return
|
|
|
|
}
|
|
|
|
safeFilename := fmt.Sprintf("download_%s", result.Info.Title)
|
2024-01-16 19:51:36 +01:00
|
|
|
|
|
|
|
// For some reason youtube links return webm as result.Info.Ext but
|
|
|
|
// are in reality mp4.
|
|
|
|
var rExt string
|
|
|
|
if strings.HasPrefix(link, "https://www.youtube.com/") || strings.HasPrefix(link, "https://youtu.be/") {
|
|
|
|
rExt = "mp4"
|
|
|
|
} else {
|
|
|
|
rExt = result.Info.Ext
|
|
|
|
}
|
|
|
|
|
2023-10-05 21:21:26 +02:00
|
|
|
downloadResult, err := result.Download(context.Background(), "best")
|
|
|
|
if err != nil {
|
|
|
|
app.Log.Errorln(err)
|
2023-10-10 17:51:12 +02:00
|
|
|
app.Send(target, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
return
|
|
|
|
}
|
2023-12-03 15:58:33 +01:00
|
|
|
//app.Send(target, "Downloaded.", msg)
|
2024-01-02 14:00:47 +01:00
|
|
|
fileName := fmt.Sprintf("/public/uploads/%s.%s", safeFilename, rExt)
|
2023-10-05 21:21:26 +02:00
|
|
|
f, err := os.Create(fileName)
|
2023-12-03 15:58:33 +01:00
|
|
|
//app.Send(target, fmt.Sprintf("Filename: %s", fileName), msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
app.Log.Errorln(err)
|
2023-10-10 17:51:12 +02:00
|
|
|
app.Send(target, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
return
|
|
|
|
}
|
|
|
|
defer f.Close()
|
|
|
|
if _, err = io.Copy(f, downloadResult); err != nil {
|
|
|
|
app.Log.Errorln(err)
|
2023-10-10 17:51:12 +02:00
|
|
|
app.Send(target, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
downloadResult.Close()
|
|
|
|
f.Close()
|
|
|
|
// duration := 5 * time.Second
|
|
|
|
// dl.twitchClient.Say(target, "ResidentSleeper ..")
|
|
|
|
// time.Sleep(duration)
|
|
|
|
|
2023-10-10 17:51:12 +02:00
|
|
|
go app.NewUpload("gofile", fileName, target, identifier, msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2023-10-10 17:51:12 +02:00
|
|
|
func (app *application) CatboxDownload(target, link, identifier string, msg twitch.PrivateMessage) {
|
2023-10-05 21:21:26 +02:00
|
|
|
goutubedl.Path = "yt-dlp"
|
|
|
|
var fileName string
|
|
|
|
|
2023-10-10 17:51:12 +02:00
|
|
|
app.Send(target, "Downloading... dankCircle", msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
result, err := goutubedl.New(context.Background(), link, goutubedl.Options{})
|
|
|
|
if err != nil {
|
|
|
|
app.Log.Errorln(err)
|
2023-10-10 17:51:12 +02:00
|
|
|
app.Send(target, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// I don't know why but I need to set it to mp4, otherwise if
|
|
|
|
// I use `result.Into.Ext` catbox won't play the video in the
|
|
|
|
// browser and say this message:
|
|
|
|
// `No video with supported format and MIME type found.`
|
|
|
|
rExt := "mp4"
|
|
|
|
|
|
|
|
downloadResult, err := result.Download(context.Background(), "best")
|
|
|
|
if err != nil {
|
|
|
|
app.Log.Errorln(err)
|
2023-10-10 17:51:12 +02:00
|
|
|
app.Send(target, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
return
|
|
|
|
}
|
2023-12-03 15:58:33 +01:00
|
|
|
//app.Send(target, "Downloaded.", msg)
|
2024-01-02 14:00:47 +01:00
|
|
|
fileName = fmt.Sprintf("/public/uploads/%s.%s", identifier, rExt)
|
2023-10-05 21:21:26 +02:00
|
|
|
f, err := os.Create(fileName)
|
2023-12-03 15:58:33 +01:00
|
|
|
//app.Send(target, fmt.Sprintf("Filename: %s", fileName), msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
app.Log.Errorln(err)
|
2023-10-10 17:51:12 +02:00
|
|
|
app.Send(target, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
return
|
|
|
|
}
|
|
|
|
defer f.Close()
|
|
|
|
if _, err = io.Copy(f, downloadResult); err != nil {
|
|
|
|
app.Log.Errorln(err)
|
2023-10-10 17:51:12 +02:00
|
|
|
app.Send(target, fmt.Sprintf("Something went wrong FeelsBadMan: %q", err), msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
downloadResult.Close()
|
|
|
|
f.Close()
|
|
|
|
|
2023-10-10 17:51:12 +02:00
|
|
|
go app.NewUpload("catbox", fileName, target, identifier, msg)
|
2023-10-05 21:21:26 +02:00
|
|
|
}
|