@hedena6310_entrastd_com
If you feel up to hacking the code you could replace the code from if athumbloc == ‘global’: to just before if aimagepath: with the following, replacing ‘full_path_to_actors_images_directory’ with the correct path in the style for your OS.
if athumbloc == 'global':
localpath = 'full_path_to_actors_images_directory' + aimagefilename
aimagepath = athumbpath + aimagefilename
if not os.path.isfile(localpath):
log.debug ('failed setting ' + athumbloc + ' actor photo: ' + aimagepath)
aimagepath = None
This would give you in effect a local global.
Someone better than me could edit the whole thing to give a fourth option in addition to the current local, global, link. If they do then I would rename global to single remote, local to inline local and name the new one single local.
@josiah
I never got into using the multiple ratings option so cannot help with that. I did suggest a number of years ago that the single rating option could be made to display an image with a small change.
The hack is quite small if you want to do it. Look for the section like this
if preferences['preserverating']:
log.debug('Putting .nfo rating in front of summary!')
if not nfo_rating:
nfo_rating = 0.0
metadata.summary = unescape(str(preferences['beforerating'])) + '{:.1f}'.format(nfo_rating) + unescape(str(preferences['afterrating'])) + metadata.summary
metadata.rating = nfo_rating
else:
metadata.rating = nfo_rating
If you don’t use imdb ratings then you would need to read through the plex agent code to find the correct value to give metadata.rating_image for your preferred rating source.
@maiade hi, thanks for the code, could not get the local path to work, it was still using only links, checked with an image of an actor that had no link, maybe I am getting my path wrong, but too tired to check it now (tried with / and ). But I think I can show you how to make an additional option, I think it worked last time when I just duplicated existing one:
In DefaultPrefs.json add additional text: http://prntscr.com/tvd7zd
And in init.py add this: http://prntscr.com/tvdcr9
Result: http://prntscr.com/tvdfdi
Would be funny if I messed something up with a new option and this is why it is not working… Though I really went with the port forward thing lately, seems like the best solution to me, but could not figure which ports to keep open yet. Busy week, could not use much time to test, and had like 20 minutes to test your part out. Anyway thanks, for now I think I will keep trying to find the port to open when I have time.
edit: Well, I solved it in the simplest way possible.
Just added following to my hosts file on server: 127.0.0.1 websitename.net
Also made sure only DMZ worked, adding all port range manually would not solve the issue. I think, by making it an universal setting for myself I forced the traffic too much to the outside when it was not needed at the moment… the line in hosts allows me still have ‘global’ settings but use all traffic locally anyway. Looks like I made a bit of a fool of myself there, anyway, thanks for your help!
I cannot think of a way of adding custom images. I don’t think that the rating images are image files so you couldn’t even replace one of the existing ratings options that you don’t use with your own image. For example looking at a page via a browser the imdb image appears due to the following code background-image: url(data:image/svg+xml;base64,[long string of data snipped]);
Has anyone had any success using the agent for multiple languages? I have been having trouble and documented it in another post but wasn’t sure if it was related to the agent, scanner or something else.
Hi, I’m trying to have Plex to import my manually-created collections’ metadata into the server… is this something this plug-in is supposed to be able to do?
I rename and manually create movie sets (collections) with TinyMediaManager: trilogies or movie sets with different versions of the same movie, i.e. I tried scrapping my collection in Plex with this plug-in in several ways but I’m being unable to have my collections imported from tMM into Plex.
Anyone here that uses tMM and this plug-in that could share his/her tMM/Plex-agent config so I can see what I’m doing wrong please?
If I remember correctly…
Plex doesn’t use the same tags fields for collections.
If you add the collection name to the tags on TMM details 2 page/
You can add more then one tag.
I think I’m following you… I manually added a line in the NFO with the name of the desired collection: <tag>Amadeus (versiones)</tag>
Same result anyway: Plex won’t create any collection from it. It just shows the 2 versions of the same movie (I previously edited the name of each one in tMM so I can distinguish) as separate movies.
Funny thing is, if I scan the same folder using the “Plex movie” agent, Plex creates collections from my sagas and puts together different versions of the same movie (director’s cut or theatrical cut, i.e.) as if they were different qualities for the same movie.
That’s why I’m asking if someone using this plug-in along with tMM could share how do they do it (options marked in tMM and XBMCnfoMoviesImporter agent). Maybe there’s something I’m missing here…
@samuyeah Your original nfo using <set> is the correct form for providing collection info. The agent supports both the old <set>Collection</set> style and the more recent
<set>
<name></name>
<overview></overview>
</set>
Unfortunately I don’t think anyone has worked out a way to load either the overview or a set poster yet.
I don’t use Tiny I prefer Ember Media Manager, but the nfo you have loaded looks like it should work. There is a library setting which controls whether collections are displayed or not. You can find it via Manage Library -> Edit -> Advanced. Just under DELETE PREVIEW THUMBNAILS should be collections, make sure this is not set to disabled.
If this isn’t the problem then unfortunately I am at a loss to understand why it will not work as there are no configuration options for the agent related to collections and your nfo looks valid.
Regarding multiple versions of the same film. Plex does not deal with this very well in my opinion. The problem to a great extent is that imdb treats them all as the same film and therefore so does Plex. There is a work around for this but it requires extra work. A good description of the solution can be found here https://forums.plex.tv/t/how-do-you-deal-with-multiple-versions-of-movies-specific-scenario/172051.
I would use Plex Movie for the primary version of the film and nfo for the special edition. You can get Plex Movie to use the nfo by putting the nfo client at the top of the Plex Movie agent configuration. The problem is if you have more versions of the film than you have agents then you run out of ways to separate the films. Well you could but you would have to clone the nfo agent so that you have multiple copies of it.
If you rely on the Plex method, which basically treats the different versions as the same then you cannot tell which versions you have watched and if you pause part way through then you have to be careful you pick the version you were watching as I am not sure you will get the same one if you simply use continue.
Thanks so much for your reply maiade. So I confirm from your comments that tMM manually-created collections should be imported using this plug-in. That’s a good start. From there, I’ll continue testing to find out what is happenning…
I’ll review the thread and the options you just explained. I appreaciate your help.
The only way I could get collections into Plex from TMM was to use the TAGs as I described above. TMM V3 don’t know about the newer version.
And since they stopped updating V3 I’m looking for something else…
Just had a look at the code on github and my own server and realised that I am running a version that is now over two years old (1.1-114-g094312c-220) to be precise. (The version I have does what I need, so on the basis of if it’s not broke don’t fix it I haven’t updated). One of the things that has changed is around the handling of sets. Both the version that I use and the current one support both versions of <set> and the use of <tag> . The handling of set has been significantly changed to handle multiple sets. At some point the use of tag was made optional so there is now a preference that has to be turned on to make use of it. Even if you turn on the use of tag set should still be processed.
Unfortunately all this means is that just because it works for me it doesn’t mean that if you are using the latest version that it will work for you. All I can suggest is that if you haven’t already done so that you turn on debug logging and look for the log entries for set and tag. That will at least tell you whether the agent can find the appropriate elements.
Have you had issues with Plex loading the NFOs for movies. TV seems to work correctly.
It takes Plex 5 minutes to load one movie, doesn’t matter if I tell it to scan the library or kick off the scanner manually for just that movie. This has been going on since they added that new scanner. I tested it in beta and this was not an issue then.