krau
f377ee3ca4
chore: format code for consistency and readability
2026-03-05 17:20:45 +08:00
Krau
8b86330f5c
feat: add rclone storage backend ( #191 )
...
* fix: update StoragePath method to return specific path for single file
* feat: add Rclone storage support with configuration and file operations
* docs: add Rclone support to documentation for configuration and usage
2026-01-30 13:34:29 +08:00
krau
dd0dea8cb5
feat!: Refactor batch import task to transfer task
...
- Updated command usage in English and Simplified Chinese localization files to reflect changes in transfer command syntax.
- Removed batch import task implementation, replacing it with a new transfer task implementation.
- Introduced new task structure and progress tracking for file transfers.
- Updated task type enumeration to replace batch import with transfer.
- Added new fields in data structures to support transfer operations.
- Implemented file handling and progress reporting for the transfer task.
2026-01-19 21:14:01 +08:00
Krau
f92c43b9c8
feat: support import files from storages to telegram ( #183 )
...
* feat: add import command and batch import functionality
- Implemented the `/import` command to allow users to import files from storage to Telegram.
- Added support for listing files in storage and filtering based on regex patterns.
- Created a batch import task to handle multiple file uploads concurrently.
- Introduced progress tracking for batch imports, providing real-time updates to users.
- Enhanced storage interfaces to support file listing and reading capabilities.
- Updated localization files for the new import command and its usage instructions.
- Added utility functions for file size formatting and speed calculation.
- Refactored Telegram storage handling to support reading from non-seekable streams.
* feat: add i18n for import command
* feat: implement ListFiles and OpenFile methods for WebDAV and Alist storage
* Update common/i18n/locale/zh-Hans.yaml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update core/tasks/batchimport/progress.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update core/tasks/batchimport/execute.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update storage/alist/alist.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update common/i18n/locale/en.yaml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update pkg/storagetypes/fileinfo.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update common/i18n/locale/en.yaml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update core/tasks/batchimport/execute.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update storage/webdav/webdav.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update storage/telegram/telegram.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update core/tasks/batchimport/execute.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update storage/webdav/webdav.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* fix: missing progress stats i18n
* refactor: use strutil to parse args
* chore: update generated code files for consistency
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-01-19 17:39:47 +08:00
Copilot
3e20dc2c5f
feat: add custom parameter support to /ytdlp command ( #185 ), close #184
...
* Initial plan
* Implement parameter support for /ytdlp command
Co-authored-by: krau <71133316+krau@users.noreply.github.com >
* Add comprehensive tests for ytdlp parameter parsing
Co-authored-by: krau <71133316+krau@users.noreply.github.com >
* Improve flag parsing logic and clarify argument order
Co-authored-by: krau <71133316+krau@users.noreply.github.com >
* Preserve critical defaults and improve comments
Co-authored-by: krau <71133316+krau@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: krau <71133316+krau@users.noreply.github.com >
2026-01-19 13:10:21 +08:00
krau
3ce00884a0
feat: add yt-dlp support for downloading video/audio and enhance related commands
2026-01-17 17:42:11 +08:00
krau
b05d86509c
feat: basic aria2 integration
2026-01-17 14:57:03 +08:00
krau
63aeabb39b
feat: add msgraw var to filename template and update i18n for fnamest display
2026-01-06 09:19:32 +08:00
krau
c21ff7e499
feat: add direct links download functionality
...
- Implemented a new task type for handling direct links downloads.
- Added command handler for downloading multiple links via /dl command.
- Introduced progress tracking for direct link downloads.
- Enhanced filename parsing to support various encoding scenarios.
- Updated enums to include direct links as a task type.
- Refactored existing task structures to accommodate new functionality.
- Improved error handling and logging throughout the download process.
2025-12-08 17:10:41 +08:00
krau
91814a83c7
fix: deprecate minio and introduce s3 storage backend
2025-12-04 22:59:23 +08:00
krau
acd16a91a3
chore: re gen enum code using new version go-enum
2025-11-28 10:27:40 +08:00
Krau
eef051de3b
feat: custom filename template ( #110 )
2025-09-13 10:25:45 +08:00
krau
68e5a51300
feat: file name staregy
2025-08-23 17:16:51 +08:00
krau
7300e54c40
refactor: rule package
2025-08-23 16:14:12 +08:00
Krau
302db2fe75
feat: parse url with js plugins support ( #96 )
...
* feat: WIP. add parser functionality and text message handling
* fix: use json to marshal js result
* feat: add metadata handling and version validation for jsParser
* refactor: rename parser package to parsers and restructure parser handling
* refactor: core code struct and impl parse task handle
* feat: impl parsed download
* fix: seek cache file when processing tph picture
* feat: implement parsed task handling and progress tracking
* feat: enhance task processing with concurrency control and progress tracking
* feat: add resource ID generation and improve resource processing handling
* feat: improve message formatting in parsed text and progress completion
* feat: add example js plugin
* feat: implement Twitter parser
* fix: twitter parse video json decode error
* feat: impl stream mode for parse task
2025-08-21 23:48:17 +08:00
krau
d703f11ea0
feat: implement album handling rules and refactor related logic
2025-07-04 16:01:29 +08:00
krau
4df2c5a06d
refactor: replace key package with ctxkey for context keys
2025-06-17 22:19:06 +08:00
Krau
900823cdb9
refactor: refactor task logic for better scalability ( #76 )
...
* refactor: a big refactor. wip
* refactor: port handle file
* refactor: place all handlers
* fix: task info nil pointer
* feat: enhance task progress tracking and context management
* feat: cancel task
* feat: stream mode
* feat: silent mode
* feat: dir cmd
* refactor: remove unused old file
* feat: rule cmd
* feat: handle silent mode
* feat: batch task
* fix: batch task progress and temp file cleanup
* refactor: update file creation and cleanup methods for better resource management
* feat: add save command with silent mode handling
* feat: message link
* feat: update message prompts to include file count in storage selection
* feat: slient save links
* refactor: reduce dup code
* feat: rule type
* feat: chose dir
* feat: refactor file handling and storage rules, improve error handling and logging
* feat: rule mode
* feat: telegraph pics
* fix: tphpics nil pointer and inaccurate dirpath
* feat: silent save telegraph
* feat: add suffix to avoid file overwrite
* feat: new storage telegram
* chore: tidy go mod
2025-06-15 23:57:49 +08:00