MovieObject vs VideoClipObject

Hi, I’m new to Plex plugin development and can’t solve the following question.

What is the difference between MovieObject and VideoClipObject?

The API documentation says they have the same attributes, right… but they are not the same.

Using the SAME values for both statements:

1- oc.add(MovieObject(url=url, title=title, thumb=thumb))
2- oc.add(VideoClipObject(url=url, title=title, thumb=thumb))

A MovieObject item looks like a movie poster (taller than wide) but a VideoClipObject has more like a TV ratio (16:9, wider than tall)
Clicking VideoClipObject’s will bring me directly to the video details but clicking a MovieObject will bring me to a listing with only that MovieObject, on which I click to go to the movie details.

What I’d like is something acting like a VideoClipObject but in the format of the MovieObject (like a movie poster) because the images from the source site are in that format.

Thank you in advance!

Edit: I am using the exact same URL Service for both statements

Essentially they’re exactly the same. I think they’ve made them both for semantical reasons. As for how they look like, it’s completely in hands of the client application.

If you find a file named movie_models.pym under your Plex Media Server installation directory, you’ll see:

class Movie(MetadataModel):
  xml_tag = 'Video'
  xml_attributes = dict(type = 'movie')

  ... (snipped)

class VideoClip(Movie):
  xml_attributes = dict(type = 'clip')

I have been searching for that installation directory and all I can find is %LOCALAPPDATA%\Plex Media Server

That folder does not seem to have any of the webserver files.

I’m on Windows10, x64

I have it under “c:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-Ins-???\Framework.bundle\Contents\Resources\Versions\2\Models”… so yeah, hidden pretty well :slight_smile:

Wow! Thank you! This is what I was looking for.