GithubHelp home page GithubHelp logo

Comments (14)

cfpp2p avatar cfpp2p commented on July 2, 2024

blocklist directory could contain non .bin manually added user files and there would be no method of determining specifically which the user might not want for future editing and production of the resulting liked named .bin. A file named blocklist.bin is produced from a valid blocklist url but even so we still don't know if the user renamed a different .bin to this for whatever reason. Summed up I don't see how to safely remove anything from the blocklist directory other than parsed files which produced no valid results and .bin but this is not something XML could possibly determine.

There was an issue with blocklist.tmp (actually a file descriptor) being leaked but it's been fixed.
https://trac.transmissionbt.com/changeset/14230
https://trac.transmissionbt.com/ticket/5583

resume files could be safely cleaned if no exactly like named torrent file was found.

As mikedld proposes, this needs to be fixed or the cleaner removed.

from bleachbit.

tiemay avatar tiemay commented on July 2, 2024

As you've both pointed out, since fixing this might be tricky from a technical standpoint, how about we relabel the options so users can make their own informed decisions? Would the above patch be ok?

from bleachbit.

cfpp2p avatar cfpp2p commented on July 2, 2024

I think that would be OK if we changed:
"Delete the blocklists" to something like this "Delete ALL the blocklists (blocklists will need update to work)"

and

"Remove all torrents" to "Remove all torrents (associated data will remain)"

The user needs to be informed of the final results detail.

from bleachbit.

tiemay avatar tiemay commented on July 2, 2024

What's the associated data that will remain? Keep in mind that we want the wording to be succinct, so there will be less work for translators.

from bleachbit.

cfpp2p avatar cfpp2p commented on July 2, 2024

The data that remains is the torrent's downloaded and/or seed data. Transmission clients, for instance the web client, use wording like this when removing torrent(s):

"Remove from list"
"Trash data and remove from list"

I think that it should be clear that the associated torrent data is not being removed as well.

from bleachbit.

tiemay avatar tiemay commented on July 2, 2024

And the seed data would be ~/.config/transmission/stats.json?

from bleachbit.

cfpp2p avatar cfpp2p commented on July 2, 2024

No, what I meant was the actual files downloaded or the actual files supplied by the user to seed/upload. The files associated with the .torrent and .resume files don't always have to be downloaded but can also be user supplied and therefore seeded/uploaded.

The stats file is overall stats for the application as a whole and I don't know why that should be deleted.

from bleachbit.

tiemay avatar tiemay commented on July 2, 2024

Ok, how about ^that^
With <warning> the user will get a popup letting them know that the blocklists option will reset their blocklist settings, and I tweaked some of the wording.

from bleachbit.

cfpp2p avatar cfpp2p commented on July 2, 2024

Looks fine to me :)

from bleachbit.

tiemay avatar tiemay commented on July 2, 2024

oops, I think I might have done something wrong when I was testing the cleaner. For some reason after deleting the blocklists, my blocklist settings where also reset to defaults (enable/disable state for using blocklists, url for the list, enable/disable state for automatic updates), which doesn't make sense because those seem to be stored in ~/.config/transmission/settings.json. Now when I delete the blocklists, the settings remain in tact, is this the case for you as well? If so I'll change the warning to "Blocklists will need update to work." like you suggested.

from bleachbit.

cfpp2p avatar cfpp2p commented on July 2, 2024

"Blocklists will need update to work.

That works for me.

from bleachbit.

tiemay avatar tiemay commented on July 2, 2024

Fixed the warning and sent a pull request

from bleachbit.

tiemay avatar tiemay commented on July 2, 2024

Changes where merged, thank you @cfpp2p and @mikedld for reporting

from bleachbit.

az0 avatar az0 commented on July 2, 2024

Yes, thank you. :)

from bleachbit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.