Jump to content

Setup Bazarr to work with Emby/autoscan


victor@vialy.com

Recommended Posts

victor@vialy.com

I already set up Emby, Bazarr and autoscan (https://github.com/Cloudbox/autoscan

My goal is to have autoscan send a request to emby to scan the folder where it placed the new subtitle. Emby does not detect new subtitles until it does a library refresh. Sometimes it takes more than 1 request to get them available. 

Does someone know how to make Bazarr connect with emby and do this?

 

Link to comment
Share on other sites

victor@vialy.com
35 minutes ago, victor@vialy.com said:

I already set up Emby, Bazarr and autoscan (https://github.com/Cloudbox/autoscan

My goal is to have autoscan send a request to emby to scan the folder where it placed the new subtitle. Emby does not detect new subtitles until it does a library refresh. Sometimes it takes more than 1 request to get them available. 

Does someone know how to make Bazarr connect with emby and do this?

 

OK, just found it. 
After seting up autoscan to work with emby (check config yml)

Select "Enable post processing" on Bazarr Subtitles, then add
/usr/bin/curl -sG -X POST --data-urlencode dir='{{directory}}' -u username:password http://your-ip:yourport/triggers/manual

 

Link to comment
Share on other sites

rbjtech

A much safer way to do this (do not send a cleartext username and password..) is with an API request to emby.

You still send a curl command - but send an API request instead using a previously created API key.

For example -

!EmbyParentId! is the library you want to Refresh (look in a browser url address to get the parentId when selecting a library) - or you could do a single Item if you wanted to.

!EmbyURL! is the IP or local dns name of your emby server

!EmbyAPIKey! is a copy of the API Key created for this function (in Advanced > API Keys)

curl -X POST "http://!EmbyURL!/emby/Library/Refresh?=&parentId=!EmbyParentId!&api_key=!EmbyAPIKey!" -H "accept: */*"

 

Edited by rbjtech
Link to comment
Share on other sites

victor@vialy.com
1 hour ago, rbjtech said:

A much safer way to do this (do not send a cleartext username and password..) is with an API request to emby.

You still send a curl command - but send an API request instead using a previously created API key.

For example -

!EmbyParentId! is the library you want to Refresh (look in a browser url address to get the parentId when selecting a library) - or you could do a single Item if you wanted to.

!EmbyURL! is the IP or local dns name of your emby server

!EmbyAPIKey! is a copy of the API Key created for this function (in Advanced > API Keys)

curl -X POST "http://!EmbyURL!/emby/Library/Refresh?=&parentId=!EmbyParentId!&api_key=!EmbyAPIKey!" -H "accept: */*"

 

That curl will update the library, instead of just the updated folder of the single folder of the one movie/episode being updated.

Is there a way to do this using the API call? What would be the parameters to send?

Link to comment
Share on other sites

Q-Droid

This discussion might have what the OP is looking for to trigger a scan on a given path.

 

  • Thanks 1
Link to comment
Share on other sites

rbjtech
19 minutes ago, Sammy said:

What does Bazarr do?

Subtitles version of Sonarr/Radarr etc ..

Link to comment
Share on other sites

rbjtech
40 minutes ago, Q-Droid said:

This discussion might have what the OP is looking for to trigger a scan on a given path.

 

The above Curl command works fine - I scan at a library level, but it also works per item if you want to do it that way.

Link to comment
Share on other sites

Q-Droid

Right. The difference is that ID's have to be known/fetched from Emby for the libs and items whereas the "path" string needs to be a valid location. Easier to integrate with external apps/services as long as the "path" is the same for both.

  • Like 1
  • Agree 1
Link to comment
Share on other sites

Sammy
21 hours ago, rbjtech said:

Subtitles version of Sonarr/Radarr etc ..

Does it work better than Emby's subtitle scraper?

  • Like 1
Link to comment
Share on other sites

victor@vialy.com
8 minutes ago, Sammy said:

Does it work better than Emby's subtitle scraper?

Waaaaaay better.

Try it. 

  • Like 1
Link to comment
Share on other sites

jaycedk

@neikYes and it analyses you media files, to see if you have embedded subs. 

To use Bazarr you need to also use Sonarr and Radarr, and have you media imported into them.

Since Bazarr is using those to see you media files location, and what to look for.

Sonarr and Radarr can be used, without any indexers and download client.

Link to comment
Share on other sites

neik
3 hours ago, jaycedk said:

Sonarr and Radarr can be used, without any indexers and download client.

Already use them to stick to a naming convention.

Good to know Bazarr is capable of local files as well, probably need to have a look at it.

Any setup guide you could recommend?

Link to comment
Share on other sites

  • 8 months later...
vdrover

Is autoscan required in this setup? What happens if autoscan is not used: does Emby overwrite the bazarr subtitles?

Link to comment
Share on other sites

rbjtech
14 hours ago, vdrover said:

Is autoscan required in this setup? What happens if autoscan is not used: does Emby overwrite the bazarr subtitles?

Emby will use whatever is available in the media folder, it will not oberwrite.  Nnote you must set emby to store subs with the media and the 3rd party app must obviously point to the same location when writing it's sub files.  Remember to name them accordingly incl the language - but specials such as forced and sdh may be a challenge.

 

  • Agree 1
Link to comment
Share on other sites

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...