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

Add built-in functions to work with strings #1366

Open
gallyamb opened this issue Jan 6, 2025 · 2 comments
Open

Add built-in functions to work with strings #1366

gallyamb opened this issue Jan 6, 2025 · 2 comments

Comments

@gallyamb
Copy link

gallyamb commented Jan 6, 2025

I've found at the docs that there are functions like strings.startswith, but they only supported in rtorrent-ps

It would be great to have such built-ins in original rtorrent codebase

Use case: I need to automate trackers list management. To be precise, I need to remove some trackers from torrent file on its insertion. Many of trackers in our country add the retracker.local tracker to the trackers list (it's something the local peer discovery and bep22 were created for at the same time). But nowadays this technique is no longer used by the ISPs. Hence, this trackers in torrents generates the errors and annoys me at the Flood UI with red rows

My solution is based on adding a handler to event.download.inserted event and then via t.multicall with conditional branch to disable that trackers

@stickz
Copy link
Contributor

stickz commented Jan 6, 2025

Have you tried using ruTorrent instead? It doesn't do that. It also has a retrackers plugin to accomplish this task.

There has been a lot of ruTorrent development in the past couple years. It has undergone a complete overhaul.

@rakshasa
Copy link
Owner

rakshasa commented Jan 8, 2025

PR would be accepted that add string manipulation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants