Episode object and thumbnails

So I spent a little while digging into how Scanners work and after looking at the EyeTV scanner by member Frodo, I dug in to modifying it. With a little more digging I found where the Episode object is defined in Media.py and found out that it has a thumbnails property. So I modified my EyeTV scanner to take the tiff file that is in the EyeTV package and add it to the thumbnails like so:



<br />
tv_show = Media.Episode(show, season, episode)<br />
tv_show.parts.append(recording)<br />
if thumbnail:<br />
	tv_show.thumbs.append(thumbnail)<br />




Sadly my thumbnail doesn't show up. I added many print statements to make sure I successfully identified the .tiff file so I know that part is correct.

So I'm obviously missing something. Is this not the way to do it? Does Plex not understand TIFF files? Or do I actually need a metadata agent to obtain the thumbnail?

If the answer to the last question is Yes, then my next question is, where do I learn about writing a metadata agent?


Not really answering your question, but be careful about passing TIFFs around, Python doesn't have great support for them in PIL, so if they are opened by Python code in the media server (I don't know if that is the case) they can easily allocate many gigabytes of RAM.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.