<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 20, 2024 at 12:02 PM Will Dormann <<a href="mailto:wdormann@gmail.com">wdormann@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I'm a recent-ish Leanfront convert, having lived my prior life with a <br>
combined FE/BE system plugged directly into the TV.  And I absolutely <br>
*love* it, so thanks much to anyone involved in making that happen.<br>
<br>
The one thing I encountered recently was that my "Videos" collection <br>
wasn't picking up new files that I put in the directory.  Even after <br>
clicking re-scan or refresh or whatever it was in the Leanfront UI.<br>
<br>
I ended up going back to my BE system (which still has the FE on it) and <br>
manually re-scanning videos using the normal MythTV frontend UI.  And <br>
after this, the videos showed up on Leanfront.<br>
<br>
My question is: Is there a way to manually trigger a re-scan of MythTV <br>
Videos in a world where the backend system isn't readily available?<br>
<br>
<br>
Thanks!<br>
-WD<br></blockquote><div><br></div><div>I set up a systemd service/timer on the backend to rescan every night late.</div><div><br></div><div>Something like:</div><div># This timer unit is for mythtv-scanvideos<br># by Jim Abernathy<br># Licensed under GPL V2<br>#<br><br>[Unit]<br>Description=start mythtv-scanvideos<br><br>[Timer]<br>Unit=mythtv-scanvideos.service<br>OnCalendar=*-*-* 04:30:00<br>AccuracySec=5minutes<br>RandomizedDelaySec=10minutes<br>Persistent=true<br><br>[Install]<br>WantedBy=timers.target</div><div><br></div><div># This service unit is for scanning mythtv videos<br>#<br>[Unit]<br>Description=mythtv scanvideos has started<br>Requires=mysql.service<br>After=mysql.service<br>Requires=mythtv-backend.service<br>After=mythtv-backend.service<br><br>[Service]<br>Type=oneshot<br>User=jim<br>Group=mythtv<br>ExecStart=/usr/bin/mythutil --scanvideos</div><div> <br></div></div></div>