How does Plex identify DVR recordings vs other content?

As the title states, how does Plex mark a show as one of its DVR recordings vs something ripped from a DVD?

I have a CRON task on my Linux box that will copy shows over from my (non-Plex) dvr. Since these OTA recordings include commercials, I’d like to use the Plex comskip utility to mark the commercials to skip through them on playback. I have other shows in my library that are ripped from DVDs that do not include any commercial interruptions.

Right now, I have Plex set up to run the comskip on all TV shows… But it would be nice to mark those copied over from my DVR as ‘recordings’. If it’s a matter of manipulating the sqlite database, I can do that. I already have a script that will change the language track on any show marked as ‘unknown’ to ‘English’. If there is another field to mark as DVR recording, I can do that… I just don’t know where to look…

1 Like

If you look in the xml for a recorded DVR, you’ll see:

<Media id="75271" duration="7199680" bitrate="15785" width="1920" height="1080" aspectRatio="1.78" audioChannels="6" audioCodec="ac3" videoCodec="h264" videoResolution="1080" container="mpegts" videoFrameRate="PAL" channelIdentifier="8" mediaGrabBeginsAt="1636909200" mediaGrabDevice="device://tv.plex.grabbers.hdhomerun/14109029" mediaGrabStatus="complete" origin="dvr" videoProfile="main">

Note: origin="dvr"

1 Like

Excellent. I’ll have to look at the Python Plex API and see if this is something I can change via that API.

If anyone has any suggestions or pointers, I’m all ears. I use the API to tag media based on directory its saved to… But I’m not very familiar with it so it was a lot of trial and error… Still not super efficient.

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