Start DSM Media Re-Indexing from PHP App

Currently reading
Start DSM Media Re-Indexing from PHP App

D

Deleted member 673

I use a home-brew PHP application to manage media files, including the movement of .mkv and .m4v video files within DSM's indexed 'video' folder. The PHP apps run on the same server as the media files, under Web Station / Apache.

Unfortunately, files moved using PHP 'rename' do not trigger automatic DSM media re-indexing. I have not tried PHP 'copy', but the files are generally much too large to copy (vs move) in a reasonable amount of time.

Is there a way to trigger DSM media re-indexing from a PHP app? I'd like to eliminate the need to remember doing this as a manual step via the DSM Web Console.

Thanks for any suggestions, Ron
 
The following PHP code appears to work as needed: exec('/usr/syno/bin/synoindex -R video');

Ron
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

Apache 2.4 in dsm 7.2 does not run after restarting DSM Leading to errors in WordPress, Joomla,... Out of...
Replies
0
Views
577
Hi, hope someone can help here. I have a Synology ds2411+ and I can't get mergerfs to run properly and DSM...
Replies
0
Views
830
Ok this eliminates the HDD spinning down theory on the WIn11 client. Are your NAS HDDs set to spin down...
Replies
3
Views
1,158
Deleted member 5784
D
Snapshot consumption can only be determined through the package itself... AFAIK, snapshots can only be...
Replies
10
Views
1,771
  • Question
I believe this is due to media indexing. I recently added a bunch of images/videos to my nas and kicked of...
Replies
2
Views
5,597
It’s not clear how No-IP and emails relate to each other, and what is blocking and if that’s the info...
Replies
1
Views
1,947
Reset mode 2 will reinstall DSM... Might be worth a go.
Replies
6
Views
1,974

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Back
Top