victor@vialy.com 9 Posted July 8, 2023 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?
victor@vialy.com 9 Posted July 8, 2023 Author 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
rbjtech 5284 Posted July 9, 2023 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
victor@vialy.com 9 Posted July 9, 2023 Author 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?
Q-Droid 989 Posted July 9, 2023 Posted July 9, 2023 This discussion might have what the OP is looking for to trigger a scan on a given path. 1
rbjtech 5284 Posted July 9, 2023 Posted July 9, 2023 19 minutes ago, Sammy said: What does Bazarr do? Subtitles version of Sonarr/Radarr etc ..
rbjtech 5284 Posted July 9, 2023 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.
Q-Droid 989 Posted July 9, 2023 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
Sammy 790 Posted July 10, 2023 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
victor@vialy.com 9 Posted July 10, 2023 Author Posted July 10, 2023 8 minutes ago, Sammy said: Does it work better than Emby's subtitle scraper? Waaaaaay better. Try it. 1
neik 873 Posted July 10, 2023 Posted July 10, 2023 Is Bazarr able to organize locally available subtitles into the corresponding folder?
Neminem 1519 Posted July 10, 2023 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.
neik 873 Posted July 10, 2023 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?
Neminem 1519 Posted July 10, 2023 Posted July 10, 2023 This 1 is a good starting point Home - TRaSH Guides (trash-guides.info) 1
vdrover 62 Posted March 14, 2024 Posted March 14, 2024 Is autoscan required in this setup? What happens if autoscan is not used: does Emby overwrite the bazarr subtitles?
rbjtech 5284 Posted March 15, 2024 Posted March 15, 2024 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
blackeagle.adrian@gmail.com 0 Posted September 29, 2024 Posted September 29, 2024 I always get an unauthorized error 401. Does the commands as described here https://github.com/caronc/apprise/wiki/Notify_emby still work with bazarr?
Luke 42079 Posted September 30, 2024 Posted September 30, 2024 On 9/29/2024 at 6:10 AM, blackeagle.adrian@gmail.com said: I always get an unauthorized error 401. Does the commands as described here https://github.com/caronc/apprise/wiki/Notify_emby still work with bazarr? Hi, sounds like you need to configure authentication for it?
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