Jump to content

Scanning one folder in library


Recommended Posts

Posted

I have been trying to figure out how to scan only certain folders as my Emby library is quite large and takes 9-10 hours to scan the whole library. I can not use real time monitoring as I use gdrive. I have specific folders where all my new media goes.

I noticed I can go into the Metadata Manager and run a single scan on 1 folder but I would like to automate this process. When I look at the logs it shows the following:

http://localhost:8096/emby/Items/1118434/Refresh?Recursive=true&ImageRefreshMode=Default&MetadataRefreshMode=Default&ReplaceAllImages=false&ReplaceAllMetadata=false&X-Emby-Client=Emby

Whenever I run this command I get the following error... Unable to find the specified file. 

Also what is the best way to find folder library item IDs?

Happy2Play
Posted

Little dated but something like this. 

https://emby.media/community/index.php?/topic/50862-trigger-a-library-rescan-via-cmd-line/&do=findComment&comment=487759

You can generate a apikey Dashboard-API Keys

curl -X POST "https://localhost/emby/Items/1118434/Refresh?Recursive=true&ImageRefreshMode=Default&MetadataRefreshMode=Default&ReplaceAllImages=false&ReplaceAllMetadata=false?api_key=yourapikey" -d ""

Have you looked at the api, link at the bottom of the dashboard.

I usually click on the folder and look at the url to see the itemid/parentid.

Posted
22 minutes ago, Happy2Play said:

Little dated but something like this. 

https://emby.media/community/index.php?/topic/50862-trigger-a-library-rescan-via-cmd-line/&do=findComment&comment=487759

You can generate a apikey Dashboard-API Keys


curl -X POST "https://localhost/emby/Items/1118434/Refresh?Recursive=true&ImageRefreshMode=Default&MetadataRefreshMode=Default&ReplaceAllImages=false&ReplaceAllMetadata=false?api_key=yourapikey" -d ""

Have you looked at the api, link at the bottom of the dashboard.

I usually click on the folder and look at the url to see the itemid/parentid.

I get String 'false?api_key=b8b2ca3ebad0490ca79d51034512cdc6' was not recognized as a valid Boolean when I run the following cmd.

Posted
2 minutes ago, DOWORK said:

I get String 'false?api_key=b8b2ca3ebad0490ca79d51034512cdc6' was not recognized as a valid Boolean when I run the following cmd.

Got it working!

false?api should be false& not with a ?. Thank you so much! @Happy2Play

Posted

Thanks for the feedback.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...