Skip to content

Fix default completed_dir #8531

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

Merged
merged 1 commit into from
Mar 31, 2025
Merged

Conversation

egbertbouman
Copy link
Member

Possibly fixes #8523.

When downloading normally, completed_dir is set to "" by the UI. However, when creating a new torrent and setting it to seed automatically, completed_dir is set to None (this comes from download_defaults). This is then cast to str to become "None". This PR fixes this issue by not setting None in from_defaults.

Note that completed_dir = None in the config file is interpreted as a directory called None. The same goes for saveas = None.

@egbertbouman
Copy link
Member Author

validate

@egbertbouman egbertbouman marked this pull request as ready for review March 31, 2025 11:17
@egbertbouman egbertbouman merged commit 77e0b86 into Tribler:main Mar 31, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Destination: None
2 participants