Comments (12)
Could you share the error that you get (copy paste or screenshot). I've looked at the script and I see a check in there that makes sure to only upload a poster when there is a poster. And yet you report that the script errors when the collection doesn't have a poster. But I have a check in my script to ensure that we don't upload posters when the source doesn't have a poster.
That means that something else is going on so could you share the error that you got so I can take a look? Thanks
from plex-scripts.
Traceback (most recent call last): File "D:\Plex-scripts\plex_library_sync.py", line 142, in <module> response = plex_library_sync(ssn=ssn, source_library_name=args.SourceLibraryName, target_library_name=args.TargetLibraryName, sync=args.Sync) File "D:\Plex-scripts\plex_library_sync.py", line 91, in plex_library_sync col_content = ssn.get(f'{base_url}{col["key"]}', params={'includeGuids': '1'}).json()['MediaContainer']['Metadata'] KeyError: 'Metadata' PS D:\Plex-scripts>
from plex-scripts.
Ah see! Different error. It isn't a problem with the posters. The problem is that I didn't account for empty collections!
from plex-scripts.
Ah fair enough! I wish I was good with code, I had an idea for a Discord bot and started working on it, but got stuck and haven't looked at it again since starting my new job.
from plex-scripts.
Bug fixed. Redownload the script to have the fix.
P.S. If you're indirectly letting me know that you want a discord bot, I don't have any experience with them so no I won't make one for you haha
from plex-scripts.
Thanks for that!
I mean look, it is always worth throwing out there, that's perfectly fine for you to not want to :) Hopefully one day I can get back to it myself!
from plex-scripts.
Is there a possibility of having the option to sync posters across libraries that aren't in a collection too?
from plex-scripts.
The script already does that. It should sync the posters of all media in the library. Not only collections. Add -S posters
to the list of arguments.
from plex-scripts.
it doesn't seem to be actually changing the posters in Kid Movies when I run that argument, but it does print the list of movies in the source library after running it
from plex-scripts.
That means that it can't find the "match" of a movie/show in the other library. Aka you have movie1 in the source lib but movie1 wasn't found in the target lib.
I've made an update to the script to better show this. Can you re-download the script, run the new version and tell me what the output is?
from plex-scripts.
Ok so I downloaded the new code, the output remains the same, just prints the list of all the movies in the source library.
I know that the movies exist in both libraries, as they both use the same directory structure.
"L:\Movies" and "L:\Kids Movies" both exist in the Movies library, whereas "L:\Kids Movies" only exists in the Kids Movies library.
from plex-scripts.
That's strange. Please contact me on the discord server (https://discord.gg/QvWKGJ86XR) for easier support.
from plex-scripts.
Related Issues (20)
- Season "2020" of daily show breaks plex_exporter_importer.py HOT 5
- plex_exporter_importer.py: Support for continue watching page HOT 1
- Cloning of a Plex Library
- Plex Media Server Version HOT 2
- KeyError: 'Metadata'
- Add timeframe to exporter importer HOT 1
- rolling_tv_channel 'on_deck' flag
- Intro skipper. Unknown client name: {name}
- Delete media based on tag or collection HOT 2
- Force Match
- alternate_ordering_playlist.py: AttributeError: 'NoneType' object has no attribute 'group'
- MKV Chapter to Marker HOT 1
- Keywords to Genre no longer functioning.
- Keywords to Label
- tag_to_collection.py
- user_exporter_importer.py: Support for ratings
- Typo in plex_sync.py script
- Plex Now Playing Artist - Title and artwork export to html HOT 1
- Music video playlist based on playlists already created in plex. HOT 2
- Offload Transcode Streams to Secondary Server
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plex-scripts.