l3uddz / plex_dupefinder

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

Doesn't work with spaces in file path #58

Closed Awmusic12635 closed 3 years ago

Awmusic12635 commented 3 years ago

Describe the bug

When setting plex_dupefinder to delete, it will detect correctly filepaths that have spaces in it but will fail to delete them.

To Reproduce Steps to reproduce the behavior:

  1. Set plex_dupefinder to auto delete
  2. Check for dups
  3. Watch as it fails to delete path paths and files that have spaces in them

Expected behavior

I would expect that it would correctly handle deletion of these files that have spaces in their full file path (and file name)

Screenshots

alex_internal1___

Logs `Initialized Finding dupes... Found 0 dupes for section 'Movies' Found 150 dupes for section 'TV Shows'

Determining best media item to keep for 'The 100 - 05x01 - Eden' ... Keeping : 690455 - ['/shared/tv/The 100/Season 5/The 100.S5.E1.Eden.m4v'] Removing : 690467 - ['/shared/tv/The 100/Season 5/The 100.S5.E1.Eden-1.m4v'] Error deleting media item: 690467`

System Information