l3uddz / plex_dupefinder

Find and delete duplicate files in Plex
GNU General Public License v3.0
303 stars 54 forks source link

Recycle Bin instead of Delete #44

Open Dracon09 opened 4 years ago

Dracon09 commented 4 years ago

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

imjuzcy commented 3 years ago

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 commented 3 years ago

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.

jbeck22 commented 1 year ago

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?

Dracon09 commented 1 year ago

Used the docker image

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