RogueProeliator / indigo-plugins-plex-server-manager

Indigo plugin to monitor Plex Media Server installations on the network
MIT License
2 stars 2 forks source link

Path Encoding Error on File Download #8

Closed RogueProeliator closed 5 years ago

RogueProeliator commented 6 years ago

The Download Art action seems to have a bug related to the encoding of the path to save:

Trigger save plex art Plex Media Server Manager Debug Scheduling download of art at /library/metadata/13185/thumb/1493146035 Plex Media Server Manager Threaddebug Command queue has 1 command(s) waiting Plex Media Server Manager Debug Processing GET operation: (u'http', u'/library/metadata/13185/thumb/1493146035', u'', u'', u'', u'/Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/images/controls/static/plexArt.png', 150, 0) Plex Media Server Manager Threaddebug Added authentication token to request Plex Media Server Manager Threaddebug Command Response: [200] -=- binary data written to /Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/images/controls/static/plexArt.png-=- Plex Media Server Manager Threaddebug Executing resize via command line "sips -Z 150 /Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/images/controls/static/plexArt.png" Plex Media Server Manager Debug /Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/images/controls/static/plexArt.png resized via sip shell command

running this command in the terminal

sips -Z 150 /Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/images/controls/static/plexArt.png Warning: /Library/Application not a valid file - skipping Warning: Support/Perceptive not a valid file - skipping Warning: Automation/Indigo not a valid file - skipping Warning: 7/IndigoWebServer/images/controls/static/plexArt.png not a valid file - skipping Error 4: no file was specified

seems it's messing up because it's not escaping the spaces in the path

This works

sips -Z 150 /Library/Application\ Support/Perceptive\ Automation/Indigo\ 7/IndigoWebServer/images/controls/static/plexArt.png

Thread

RogueProeliator commented 5 years ago

Closing... can't duplicate