Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Automatically upload collection posters #7

Open
arebokert opened this issue May 23, 2018 · 8 comments
Open

[FEATURE] Automatically upload collection posters #7

arebokert opened this issue May 23, 2018 · 8 comments

Comments

@arebokert
Copy link
Contributor

arebokert commented May 23, 2018

I was thinking of trying to fill this request on the plex api repository pkkid/python-plexapi#179 and then implement uploading of pictures from a folder to this repository. I have tried the described case in the issue in that repository and it seems to work.

Good idea?

@alex-phillips
Copy link
Owner

@arebokert I think that would be awesome. We could possibly have either default collection images defined in the file or have an argument available to specify a collection image file to use (or have it upload by default and have an argument disable this?).

Sounds like a good idea to me!

@SethGower
Copy link
Contributor

I have been doing som research on how to do this. fanart.tv's API allows searching for entries using TMDB ids. TMDB has entries for collections, so if we associate TMDB ids with each collection in the collections.yml file, then it should be fairly easy to download the collection posters.

@SethGower
Copy link
Contributor

After some research into the PlexAPI python wrapper you are using, it looks like it doesn't have support yet for changing posters yet.

@arebokert
Copy link
Contributor Author

@SethGower that's a good idea. I'm thinking the possibility of uploading custom collection art from a local folder should be available, but if no local folder is specified, it downloads the art if the user decides to choose that option.

In regards to support in the api wrapper, you are correct. That's why, as I mentioned, I was going to see if I can create a pull request for just that functionality to the wrapper repository before I begin working on using it in this repository.

I'll see what I can do but no promises. I am not that used to Python.

@SethGower
Copy link
Contributor

@arebokert OK, Great. Keep me updated, I would love to help you out. I too am not that great at python, but it is better than Java....

@blacktwin
Copy link

Changing posters is now in a PR for the Python-PlexAPI. Could you confirm it works for your request?

@arebokert
Copy link
Contributor Author

arebokert commented Mar 23, 2020

Changing posters is now in a PR for the Python-PlexAPI. Could you confirm it works for your request?

Thanks for this! I've been having a look during the past few days and there's one thing I'm wondering. If possible a delete function would be in order. If deleting is not possible, perhaps we could fetch the artwork from the plex server, do a checksum of it and make sure we're not trying to upload the same file over and over every time plex autocollections runs.

@blacktwin
Copy link

Deleting doesn't seem possible. It seems that Plex already has a type of checksum in place. I'm my limited testing, I couldn't upload the same item twice. I mean I could upload it but Plex didn't show any additional poster, art, theme as a result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants