Ad skipping scans

Server Version#: 1.42.1.10060

Please stop the commercial skipper from rescanning the same files, with no ad markers, repeatedly. If it hasn’t found any ads previously, why on earth would it need to scan the same files again, night after night? Why would there be a different outcome if the scanner and config have not been updated since the last scan?

Or, add another option in scheduled tasks “Only when added” to not scan during scheduled maintenance, unless this is already an undocumented option in addition to “never” and “asap”?

I can’t even change it to only scan manually: setting Library>Generate ad video markers to never, and clicking analyze on a file does nothing, even though the library itself has Ad detection set to “For all items”.

Or, is there a way to do it from the command line? Every time I try, I get “unsupported codec” despite FFMPEG_EXTERNAL_LIBS being correctly set, the same as I see in Process Monitor during scheduled tasks.

The correct way is to change the Library Advanced setting “Ad detection” to
“For recorded items” but it sounds like you have additional problems. What do you have selected for “Scanner” and “Agent” on the Library Advanced page.

Till the batch processor records a success it will keep trying the item unless you remove/hide the item, scan library, change the library setting “Ad detection” to “disabled” or “For recorded items” and then re-add.

the library is not Plex’s DVR, but the recordings from my external satellite box folder shared to its own library.

settings are: Plex Video Files Scanner, Personal Media and Ad detection: For all items

As described above, change to Disabled or For recorded items and Plex Dance the media.

sorry, but I’m not sure what that achieves.

Disabled/For recorded items then doesn’t scan this library for ads, either during maintenance (when re-enabled) or during a manual Analyze, at all.

Not supported by Plex then and you want to make a feature suggestion.

There is a reason that the DVR records to a temporary folder until the show is complete and then moves the file to either a TV Shows Library or Movie Library. Otherwise Plex would incorrectly detect the length of the show which is probably why you are using Library Other, that and you only have one location for recorded items.

Once the show is matched you can then Analyze it for the commercials but it also sounds like you have it set to detect and delete commercials but then you might as well just do all of this outside of Plex and move the file to an appropriate library afterward.

I don’t remove ads, just have the markers in the xml after scanning to skip.

There may be something in having the new recording in an intermediate library with ad scanning enabled and then move it to this library post-scan.

Gonna give that a try, cheers.

nah, doesn’t work - metadata stays with original file in db and Plex doesn’t realise it applies to the file copied to the target library.

would need something like this:

or, could probably do it with sqlite commands from script.

disappointing.