mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
New: Lidarr to Readarr
This commit is contained in:
@@ -59,7 +59,7 @@ function Logger(minimumLogLevel) {
|
||||
}
|
||||
|
||||
Logger.prototype.cleanse = function(message) {
|
||||
const apikey = new RegExp(`access_token=${window.Lidarr.apiKey}`, 'g');
|
||||
const apikey = new RegExp(`access_token=${window.Readarr.apiKey}`, 'g');
|
||||
return message.replace(apikey, 'access_token=(removed)');
|
||||
};
|
||||
|
||||
@@ -99,11 +99,11 @@ class SignalRConnector extends Component {
|
||||
componentDidMount() {
|
||||
console.log('[signalR] starting');
|
||||
|
||||
const url = `${window.Lidarr.urlBase}/signalr/messages`;
|
||||
const url = `${window.Readarr.urlBase}/signalr/messages`;
|
||||
|
||||
this.connection = new signalR.HubConnectionBuilder()
|
||||
.configureLogging(new Logger(signalR.LogLevel.Information))
|
||||
.withUrl(`${url}?access_token=${window.Lidarr.apiKey}`)
|
||||
.withUrl(`${url}?access_token=${window.Readarr.apiKey}`)
|
||||
.withAutomaticReconnect({
|
||||
nextRetryDelayInMilliseconds: (retryContext) => {
|
||||
if (retryContext.elapsedMilliseconds > 180000) {
|
||||
|
||||
Reference in New Issue
Block a user