victor@vialy.com 9 Posted July 8, 2023 Share Posted July 8, 2023 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 More sharing options...
victor@vialy.com 9 Posted July 8, 2023 Author Share Posted July 8, 2023 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 More sharing options...
rbjtech 4285 Posted July 9, 2023 Share Posted July 9, 2023 (edited) 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 July 9, 2023 by rbjtech Link to comment Share on other sites More sharing options...
victor@vialy.com 9 Posted July 9, 2023 Author Share Posted July 9, 2023 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 More sharing options...
rbjtech 4285 Posted July 9, 2023 Share Posted July 9, 2023 Just use the Id= instead of the Parent Id. Link to comment Share on other sites More sharing options...
Q-Droid 653 Posted July 9, 2023 Share Posted July 9, 2023 This discussion might have what the OP is looking for to trigger a scan on a given path. 1 Link to comment Share on other sites More sharing options...
Sammy 738 Posted July 9, 2023 Share Posted July 9, 2023 What does Bazarr do? Link to comment Share on other sites More sharing options...
rbjtech 4285 Posted July 9, 2023 Share Posted July 9, 2023 19 minutes ago, Sammy said: What does Bazarr do? Subtitles version of Sonarr/Radarr etc .. Link to comment Share on other sites More sharing options...
rbjtech 4285 Posted July 9, 2023 Share Posted July 9, 2023 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 More sharing options...
Q-Droid 653 Posted July 9, 2023 Share Posted July 9, 2023 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. 1 1 Link to comment Share on other sites More sharing options...
Sammy 738 Posted July 10, 2023 Share Posted July 10, 2023 21 hours ago, rbjtech said: Subtitles version of Sonarr/Radarr etc .. Does it work better than Emby's subtitle scraper? 1 Link to comment Share on other sites More sharing options...
victor@vialy.com 9 Posted July 10, 2023 Author Share Posted July 10, 2023 8 minutes ago, Sammy said: Does it work better than Emby's subtitle scraper? Waaaaaay better. Try it. 1 Link to comment Share on other sites More sharing options...
neik 837 Posted July 10, 2023 Share Posted July 10, 2023 Is Bazarr able to organize locally available subtitles into the corresponding folder? Link to comment Share on other sites More sharing options...
jaycedk 384 Posted July 10, 2023 Share Posted July 10, 2023 @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 More sharing options...
neik 837 Posted July 10, 2023 Share Posted July 10, 2023 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 More sharing options...
jaycedk 384 Posted July 10, 2023 Share Posted July 10, 2023 This 1 is a good starting point Home - TRaSH Guides (trash-guides.info) 1 Link to comment Share on other sites More sharing options...
vdrover 42 Posted March 14 Share Posted March 14 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 More sharing options...
rbjtech 4285 Posted March 15 Share Posted March 15 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. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now