<br />
-h, --help Display this message.<br />
-v, --verbose Show more output.<br />
-p, --progress Show special progress output.<br />
<br />
Actions:<br />
<br />
-r, --refresh Refresh the metadata.<br />
-s, --scan Scan for new media.<br />
-i, --info Get information.<br />
-l, --list List.<br />
-g, --generate Regenerate thumbnails/fanart.<br />
-t, --tree Show a section tree.<br />
-w, --reset Delete all media out of a section.<br />
--add-section <name> --section-type <type:1,2,8> --location <path> Add a new section<br />
<br />
Items to which actions apply:<br />
<br />
-c, --section A library section ID.<br />
-o, --item An item ID.<br />
-d, --directory A directory path.<br />
-f, --file A file.<br />
-x, --force Force an operation (e.g. refresh)<br />
But i cant get it to work on scanning a single directory or file, i have tried it with the following commands
Is there some one who knows how to scan a single directory or file
I have ask this question also in [this](http://forums.plexapp.com/index.php/topic/17074-update-pms-library-with-command/) topic but had nor response yet so i try i now in the developers section.
you’ll have to specify which library section to scan with -c . (you can get a list of sections and their id numbers by running --list with no other arguments.)
also, you’ll want to do --scan and --refresh for new items, if you just --scan, it will not look for metadata for the new item.
That helps alot already. But what i was looking for is to narrow the scan/refresh to only one folder or a file, so that i only scan the movie or episode i just added to the NAS.
Thats why i was trying to get it to work with the folder or file switch.
Maybe it will take a while for the developers to implement or fix it ...
i can confirm that the --directory flag isnt working for me either (and --file as well), so i guess it bugged, or maybe just not yet implemented.
however, when it does get working, you should be aware that you will most likely need to specify the library section ID ( -c flag) in addition to the directory/file. i believe correct usage will be like this (where 4 is the ID # of my tv section) :
If I take the --item flag off the end it appears to refresh the metadata on a handful of random shows in the section:
~/Library/Application\ Support/Plex/Plex\ Media\ Server.app/Contents/MacOS/Plex\ Media\ Scanner --refresh --section 2<br />
<br />
* Refreshing American Dad!<br />
GUI: Requesting metadata for 'American Dad!'<br />
* Refreshing Boardwalk Empire<br />
GUI: Requesting metadata for 'Boardwalk Empire'<br />
* Refreshing An Idiot Abroad<br />
GUI: Requesting metadata for 'An Idiot Abroad'<br />
* Refreshing Star Trek: Enterprise<br />
GUI: Requesting metadata for 'Star Trek: Enterprise'
If I take the section flag off it throws an exception:
~/Library/Application\ Support/Plex/Plex\ Media\ Server.app/Contents/MacOS/Plex\ Media\ Scanner --refresh --item 67851<br />
<br />
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_lexical_cast> >'<br />
what(): bad lexical cast: source type value could not be interpreted as target
Has anyone been able to successfully scan/refresh a single show or episode using the command line scanner? If I could run scans and refreshes against single items (show/episode) I'd be pretty chuffed.
Another vote for this. It’s currently 10+ minutes to scan my TV library on a large firewire connected Drobo. Just to add a new show to watch takes forever and introduces chopiness during Plex playback.
Please consider re-adding this feature back into the scanner.
I don’t mind having to write my own scripts in order to call these command line functions (or via the hidden URL on port 32400), it seems that the community is urgently in need of telling Plex about new individual files, or being able to tell it to scan a single directory for updates.
Elan: has this been fixed in the latest 9.2.3 release? I know there’s the new “Turbo” mode, but I’m hoping this CLI option has been fixed so we can now specific an individual directory to be scanned / updated??
Turbo Scanning added in the latest versions makes scanning MUCH faster. Since it can now scan an enormous tree in a few seconds for changes, we haven’t added any further improvements for single-directory scanning.
Looking for any update on this. Any thoughts on when (if) this will be available? It's taking me over 30 minutes to scan our TV section, which is painful when only adding a few new shows.
I would like to be able to refresh a single directory and it does not matter if I have to use the command line. GUI option would be great, but I'm not picky at this point. Just desperate. :)
Are you just doing a regular (turbo) scan or do you have to do a deep scan because of incorrect timestamps? If the former, something’s wrong as it shouldn’t take very long to detect and update only the new shows. Unless “a few new shows” means a few new series of shows, in which case it’s going to take awhile to download all the metadata and the scanning isn’t the problem. If you’re doing a deep scan every time because of the timestamps, the answer is to figure out why the timestamps are borked, as I don’t believe the devs have any plans to add this in.
Yes. I did find that Turbo scan is quicker 10-15 minutes, but I did notice that it does not always update the content correctly. I did find that the (shift+SCAN) worked best yesterday and picked up all of my content and about 99% match on metadata. This works for the moment, but having the ability to select a single path or show to manually update when I know nothing else has changed would be ideal.
It is also sometimes hard to tell what PLEX is doing. Can't tell if it is refreshing meta data. I can tell that the scanning is done by the scanner log file, but watching the server log is challenging because of all the additional debug messages and other things flying by that seem to repeat. The file for me can quickly get to 10Mb in size which is difficult to open in notepad. I've been using tail to watch it which is much better. I was watching the media manager, but the other day the spinning icon was still spinning even though PLEX was done with everything. Having a console that tells you what it's really doing and how long it's been doing it would be fantastic.
Did anything ever get implemented in this area? I’ve just had a play around trying to restrict to a directory, but smallest update area I could get to was just scanning a section.