Skip to content

[Feat] Add a --Local command to filter tdl-export.json #1145

@Zig-VS-TypeScript-VS

Description

@Zig-VS-TypeScript-VS

Proposal

Add a --Local command to filter tdl-export.json

steps

1. tdl chat export -c chat
2. tdl dl --Local Z:\1\tdl-export.json -f "(Media.Name endsWith '.mp3')" -d Local-export.json

More file extensions

tdl dl -f Z:\1\tdl-export.json -f "(Media.Name endsWith '.txt' || Media.Name endsWith '.epub' || Media.Name endsWith '.mobi' || Media.Name endsWith '.azw3' || Media.Name endsWith '.pdf' || Media.Name endsWith '.djvu' || Media.Name endsWith '.7z' || Media.Name endsWith '.zip' || Media.Name endsWith '.rar')"
tdl dl -f Z:\1\tdl-export.json -f "(Media.Name endsWith .txt,.epub,.mobi,.azw3,.pdf,.7z,.zip,.rar')"

Background

tdl chat export -c chat -f "(Media.Name endsWith '.mp3')"

Online filtering of file extensions. Telegram's remote servers will close the connection.

People don't need to wait and waste a lot of time downloading by skipping tens of thousands of IDs for various file formats from tdl-export.json

Workarounds

no

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions