Jump to content

Action based on Metadata

Recommended Posts

  • Administrator

Action files sends data to Kodi or some other system, but isn't configured to retrieve or store data.  That could potentially be handled through an external script though.  

What exactly are you wanting to do?

Link to comment
Share on other sites

I would like to send webhook to adjust lens memory of projector based on aspect ratio of feature playing.  Right now I have two different sequences that I manually choose based on movie.  One has an action file to send the webhook that I use for wide scope titles. Hoping to automate this.

Link to comment
Share on other sites

  • Administrator

No guarantee on this or timeframe, but I'll look into adding aspect ratio to the conditions.  You could then trigger a different action for different aspect ratios.

Link to comment
Share on other sites

  • Administrator

This turned out to be much harder than I had anticipated when I suggested adding an aspect ratio to the conditions.  I don't know why I thought that Kodi listed the movie's actual aspect ratio.

I have the condition selection partially done, which you can see in the images below.

aspect1.png

 

aspect2.png

 

I had it pull in the aspect ratio, which is when I realized that it only lists the file aspect ratio, which is 1.78:1 for every bluray rip. I could have sworn I saw different aspect ratios at some point, but I double checked and apparently not.

 

I continued working on this and came up with a possible solution to scan IMDB to retrieve the aspect ratio that they have listed.  The problem there is that it isn't a free and takes time to scrape the aspect ratio.  You can see my original version of that below.

aspect3.png

I've since modified it to round to the 4 aspect ratios listed above.  I can change those to include more options fairly easily though.

Overall, I'd say that this is pretty close to done, but it has 2 major issues that I don't really know how to overcome.  The first that I mentioned above is that it takes time to scrape the info.  This happens when you are initially selecting to play your movie with PreShow.  For me, it takes 2-5 seconds.  The best I can think of is to add a PreShow setting on whether to allow the aspect ratio condition or not and default it to off.  That way people that don't need it won't be bothered by it.  But people that want to use it will still have their PreShows slowed a bit.  I did put a notification on there so that you'll know what it causing the delay.  It isn't a perfect solution, but it's the best that I can think of.

aspect4.png

 

The second problem is that I'm pulling the information from somewhere else that I can't guarantee it's accurate or will always work.  This may not be a huge deal, but my scrape for They Live lists it as 2.39:1.  When I took a screencap of my 4k, I measured it at 2.35:1.   In other more divergent example, Vertigo lists the original aspect ratio of 2.55:1 instead of the US theatrical aspect ratio of 1.85:1.

So that's the current status.

Link to comment
Share on other sites

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


 Share

×
×
  • Create New...