#Space in Show Name being mapped to URL for download fails

1 messages · Page 1 of 1 (latest)

hollow prism
#

Trying to see if it is possible to download a poster that has a space in the name?

Using Collections to build a network layout and everything works for poster download unless the collection name has a space

What in the config file
Adult Swim:
template: { name: network, network: 80, poster: tv/<<collection_name>>.png}

Error message i get

Value: https://raw.githubusercontent.com/MalvadoBladez/pmm-configs/main/images/tv/Adult Swim.png |
| Collection Warning: No Poster Found at https://raw.githubusercontent.com/MalvadoBladez/pmm-configs/main/images/tv/Adult Swim.png |
| |

I can browse to the URL with no issues, but when the collection is being built it stops at the space.

Any Help on this would be great..

Thanks

lone grailBOT
#

Welcome @hollow prism!

Someone from <@&938443185347244033> will assist when they're available.

Including the meta.log from the beginning is a huge help, type !logs for more information.

#

You can press the "Close Post" button above or type /close at any time to close this post.

outer ingot
#

you probably need to wrap Adult Swim in quotes

hollow prism
#

Let me give that a shot and see... tried a few different thing cant remeber if i did that or not

outer ingot
#

actually

#

theres no png there

#

theres no adult swim here

#

oh its lower case

#

these are case sensitive

hollow prism
#

Ya.. I was trying a few different things

outer ingot
#

so you either need to rename adult swim.png in that repo to Adult Swim.png or change Adult Swim to adult swim in your yml

hollow prism
#

upper or lower case made no difference..

#

trying the "" now around the collection name

#

but got a different error now...

seems be throwning a 406 error now.

File "/modules/plex.py", line 783, in _upload_image |
| raise Failed(e) |
| modules.util.Failed: (406) not_acceptable; (redacted)/library/metadata/111864/posters?url=https%3A%2F%2Fraw.githubusercontent.com%2FMalvadoBladez%2Fpmm-configs%2Fmain%2Fimages%2Ftv%2FAdult+Swim.png <html><head><title>Not Acceptable</title></head><body><h1>406 Not Acceptable</h1></body></html> |
| |
| Detail: url_poster failed to update poster to [URL] https://raw.githubusercontent.com/MalvadoBladez/pmm-configs/main/images/tv/Adult Swim.png |

tropic cipher
#

Is that image perhaps larger than 10mb?

#

That can cause this.

hollow prism
#

1.2 mb in size

tropic cipher
#

So not that. Plex doesn't like something about the "here use this image" request, though.

hollow prism
#

for some reason does not see the full URL, stops after the space. put file local, no issues comes up, remove space, no issues. but trying to use variables to control everything, and cant seem to get that one to work.

tropic cipher
#

Spaces in file names often cause havoc.

lament trench
#

try to put the entire url in quotes

#

or rename the file without spaces

hollow prism
tropic cipher
#

If you look at the url in the error, the image url is entirely url-encoded except for the space. So I'm sure it's the space causing this.

hollow prism
#

Yep.. might be a limitation, which is fine.. just wanted to make sure i was not missing something

tropic cipher
#

You might look at how the defaults do this very same thing.

hollow prism
#

redoing my PMM configs, and seen there has been a TON of changes since i first set this up

#

set this up 2-3 years ago and have not really tocuhed it since then...

tropic cipher
#

Or leverage the defaults instead of reinventing this.

hollow prism
#

Yep.. was reading the defaults and alot of what i am looking for now is there already, inclduing some of the Movie collections

outer ingot
#

we use spaces in our file names on some things with no issues

#

at first he had Adult Swim as the collection name but adult swim.png on that repo

hollow prism
hollow prism
#

have gone a different route

Thanks for the help

vivid escarp
#

Ready to close?

#

/close

#

Or hit button