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 · 2 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
@Xingeqwd
Copy link

Xingeqwd commented Jan 17, 2025

太对了,这位网友,我也有这问题,
filecaption没反应,也是卡在那边,
filecaption一删掉,就不会卡了,下载得嗖嗖的快

但是过了一阵子之后,似乎又可以用了,
下载了一阵子ctrl+c终止再开,就又会卡了

有注意到桌面版里面出现了被占用的情况(加载不了消息)
怀疑是之前我加了takeover导致的?不过目前删除了takeover也不行就是了,可能是冷却。。(等待下次冷却再去掉takeover看看。。)

————————

在很久之后重启TG,又可以加载消息了
删除takeover之后下载,仍然不行。。
值得一提的是,之前是有带着这些函数参数之后,仍然可以下载的样例在的。。

————————

woc,神了,在某个issue看到某位网友说的desc,加个desc,竟然就可以了!
@KUANGzYIN 楼主试试看这个?兴许你也会走运。。
我知道desc只是倒序而已。。按道理应该是不会有这样的效果——
可能也是因为,凑巧碰到冷却时间过了罢!

————————
(果然还是很不稳定的,,,一终止又不能下载了。。)

——————
@iyear 大佬,冒昧打扰了,请问有没有日志的功能,让我们做做debug?(debug参数似乎不生效的样子)

——————
查找到似乎可以把data存储到json来debug。。。先前没注意看,不好意思也。。

@iyear
Copy link
Owner

iyear commented Jan 21, 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

3 participants