Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Some functions and features cannot be used 个别函数、功能无法使用 #847

Open
KUANGzYIN opened this issue Jan 8, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@KUANGzYIN
Copy link

KUANGzYIN commented Jan 8, 2025

Describe the bug

English content is machine translated:

Some functions cannot be used, such as the replace function of --template, --takeout, and --skip-same functions. After using them, the download fails and keeps stopping at "All files will be downloaded to '/path/to/dir' dir". I have used each of the above functions or features separately, and they cannot be used in combination or separately. I have tested changing the quotation marks of the replace function parameters STRING and PAIRS to '', "" or ``, but they do not work. Currently, only these functions or features are used, and I don't know if the others can be used

个别函数无法使用,如--template的replace函数,--takeout、--skip-same功能,使用之后无法下载一直停在“All files will be downloaded to '/path/to/dir' dir“,上述每个函数或功能我都单独使用过,既不能组合使用也不能单独使用,测试过replace函数参数STRING和PAIRS的引号改为''或""或``都不行,目前只使用到这几个函数或功能,其他不知道能不能用
屏幕截图 2025-01-08 235842

To Reproduce

I don't know how to reproduce it, but I will post the configurations and commands used:

  1. Use desktop to log in
  2. Do not use --proxy to set the proxy
  3. Use Clash's TUN mode and turn on "service mode"
  4. Use export to export information
  5. Use -f to point to the local JSON file
  6. Use -d to customize the export directory
    Commands used:
    tdl dl -f "F:\TelegramDownloader\exportmsg\test.json" -d "F:\TelegramDownloader\exportmedia\testdownload" --template "{{ .DialogID }}{{ .MessageID }}{{ formatDate .MessageDate }}{{ replace .FileCaption '*' '' }}{{ rand 1 10 }}{{ replace .FileName '*' '_' }}" --group -t 1 -l 1 --delay 5s

不知道怎么复现,但是我会把各项配置和使用的命令发出来:
1.使用desktop登录
2.没有使用--proxy设置代理
3.使用Clash的TUN模式,且打开了“服务模式”
4.使用了export导出了信息
5.使用了-f指向了本地JSON文件
6.使用了-d自定义了导出目录
使用的命令:
tdl dl -f "F:\TelegramDownloader\exportmsg\test.json" -d "F:\TelegramDownloader\exportmedia\testdownload" --template "{{ .DialogID }}{{ .MessageID }}{{ formatDate .MessageDate }}{{ replace .FileCaption '*' '' }}{{ rand 1 10 }}{{ replace .FileName '*' '_' }}" --group -t 1 -l 1 --delay 5s

Expected behavior

I'm not sure if it's a bug, or it could be my problem.

我也不确定是否是bug,也有可能是我的问题

Version

v0.18.3

Which OS are you running tdl on?

Windows

Additional context

none

@KUANGzYIN KUANGzYIN added the bug Something isn't working label Jan 8, 2025
@KUANGzYIN KUANGzYIN changed the title [Bug] 个别函数、功能无法使用 [Bug] Some functions and features cannot be used 个别函数、功能无法使用 Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants