plex_dupefinder icon indicating copy to clipboard operation
plex_dupefinder copied to clipboard

Recycle Bin instead of Delete

Open Dracon09 opened this issue 5 years ago • 4 comments

Describe the problem If you pick the wrong "best" movie to keep then it deletes the other movies.

Describe any solutions you think might work Would be nice if instead of deleting the files it moved them to a separate path "Recyle Bin"

Additional context Running this from Unraid 6.8.3 in a docker

Dracon09 avatar Jul 12 '20 14:07 Dracon09

I would like to see this too, but it uses Plex to delete the files instead of accessing the filesystem itself. So unless Plex supports moving the files (which is highly unlikely), it requires a lot of work to code the function to move the files to a recycle bin.

imjuzcy avatar Dec 20 '20 14:12 imjuzcy

Hey @Dracon09, I submitted a pull request to add a feature to record the paths of the files that are supposed to be removed without actually removing it. As you're running it in Docker, the path that Plex has (what this script will get) and the actual path in the container of this script might differ, I thought it might be more flexible if it just records the path and if you want you can write a few lines of bash code to actually move them.

In addition to that it might also give the flexibility for those who want to keep some duplicates instead of deleting all.

I'm not sure if you're still looking for this feature, given that it has been so long since you posted the issue, but check my fork in the meantime before @l3uddz accept the pull request.

imjuzcy avatar Dec 21 '20 19:12 imjuzcy

Describe the problem If you pick the wrong "best" movie to keep then it deletes the other movies.

Describe any solutions you think might work Would be nice if instead of deleting the files it moved them to a separate path "Recyle Bin"

Additional context Running this from Unraid 6.8.3 in a docker

can you share your docker compose file?

jbeck22 avatar Mar 16 '23 17:03 jbeck22

Used the docker image

https://hub.docker.com/r/mikenye/plex_dupefinder

Dracon09 avatar Mar 17 '23 21:03 Dracon09