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

Snapshot consumption can only be determined through the package itself... AFAIK, snapshots can only be...
Replies
10
Views
519
  • 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
1,130
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
502
Reset mode 2 will reinstall DSM... Might be worth a go.
Replies
6
Views
521
D
  • Question
I think what happens is that a lets encrypt certificate is automatically added to security certificates. I...
Replies
1
Views
703
  • Question
Looking to spin this topic back up. When I first got the nas log out timer worked, probably dsm 6 days...
Replies
5
Views
2,002
  • Question
Lots of eyeballs on the thread. Any ideas on what to do next?
Replies
1
Views
910

Welcome to SynoForum.com!

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

Registration is free, easy and fast!

Back
Top