I'm curious if there is any documentation for the available Powershell commands. Specifically, I am looking for commands to script a metadata refresh on all DVR files (due to running MCEBuddy), as well as redetect commercials, for the same reason.
Please be careful with automation. Doing a repeated automated refresh of all recordings will get you banned from our guide data service.
Why not ? MceBuddy created files to another library and use that as an import into Channels DVR?
I don't think they ever plan to document that. They've said as much on multiple occasions.
That said, the command for reprocess metadata goes like:
http//<your_server_ip>/dvr/files/".$episodeID."/reprocess
I have a PHP script I got from a friend that does it per show that you specify. PM me if you would like it, but would like to get my friends permission before I share his code.
I'm working with that same friend to make one that just reprocesses episodes that have zero length but are complete. That seems to happen when I upload a show to the server and the folder is scanned before it is finished. That will be useful because it happens to me all the time and it's annoying to have to go back and refresh manually. Plus it will keep the refreshs to a minimum.
This is happening when uploading over SMB?
Yes, but it also happens with files I download on the same machine and deposit directly to the folder while recording.
It happens to me also .. I use a seperate DVR to just record movies and use that as import into my main DVR ... and the EDL stuff etc ... does not get refreshed.
OK, maybe a better option would be to pull that data in through a local library once it is processed, then run the command that removes deleted files from the DVR database? What I'm really lookin to correct is the video duration, not necessarily the data pulled in from the guide.
I was under the impression that imported files with a recent modification data were being ignored ? and refreshed when completed.
For example ...
2021/12/23 07:00:16.095388 [SCN] Ignoring episode with recent modification: /media/storage1/public/plex/tvshows/.grab/6b0123da7ea01310abc19519e000221108ecd854-79f38345f24900552bac07d3cb6e67d637871aae/Star Trek Deep Space Nine (1993) - S01E07 - Dax.ts
2021/12/23 07:00:17.251344 [SCN] Imported TV show .grab/6b0123da7ea01310abc19519e000221108ecd854-79f38345f24900552bac07d3cb6e67d637871aae/Star Trek Deep Space Nine (1993) - S01E07 - Dax.ts
Do the files with the incorrect duration show as "0"?
Yes and no. For those imported with PlayOn, almost always, which is why I process those with MCEBuddy to move those to a folder so the copy happens faster and those files aren't detected as soon as PlayOn (Home by the way) starts recording. When I process the ChannelsDVR files, they may have been 60 minutes, but now are only 45 or so. Moving those to another local library should fix that I assume.