@@ -6039,6 +6039,19 @@ class Organizr
}
+ public function socksHeadingHTML($app)
+ {
+ return '
+ <h3 lang="en">' . ucwords($app) . ' SOCKS API Connection</h3>
+ <p>Using this feature allows you to access the API without having to reverse proxy it. Just access it from: </p>
+ <code>' . $this->getServerPath() . 'api/v2/socks/' . $app . '/</code>
+ <p>If you are using multiple URL\'s (using the csv method) you will have to use the url like these: </p>
+ <code>' . $this->getServerPath() . 'api/v2/multiple/socks/' . $app . '/1</code>
+ <br/>
+ <code>' . $this->getServerPath() . 'api/v2/multiple/socks/' . $app . '/2</code>
+ ';
+ }
+
public function socks($url, $enabled, $auth, $requestObject, $header = null, $multiple = null)
{
$error = false;
@@ -55,11 +55,7 @@ trait LidarrHomepageItem
'html' => '
<div class="panel panel-default">
<div class="panel-wrapper collapse in">
- <div class="panel-body">
- <h3 lang="en">Lidarr SOCKS API Connection</h3>
- <p>Using this feature allows you to access the API without having to reverse proxy it. Just access it from: </p>
- <code>' . $this->getServerPath() . 'api/v2/socks/lidarr/</code>
- </div>
+ <div class="panel-body">' . $this->socksHeadingHTML('lidarr') . '</div>
</div>
</div>'
),
@@ -61,11 +61,7 @@ trait NZBGetHomepageItem
- <h3 lang="en">Nzbget SOCKS API Connection</h3>
- <code>' . $this->getServerPath() . 'api/v2/socks/nzbget/</code>
+ <div class="panel-body">' . $this->socksHeadingHTML('nzbget') . '</div>
@@ -55,11 +55,7 @@ trait RadarrHomepageItem
- <h3 lang="en">Radarr SOCKS API Connection</h3>
- <code>' . $this->getServerPath() . 'api/v2/socks/radarr/</code>
+ <div class="panel-body">' . $this->socksHeadingHTML('radarr') . '</div>
@@ -56,11 +56,7 @@ trait SabNZBdHomepageItem
- <h3 lang="en">Sabnzbd SOCKS API Connection</h3>
- <code>' . $this->getServerPath() . 'api/v2/socks/sabnzbd/</code>
+ <div class="panel-body">' . $this->socksHeadingHTML('sabnzbd') . '</div>
@@ -72,11 +72,7 @@ trait SonarrHomepageItem
- <h3 lang="en">Sonarr SOCKS API Connection</h3>
- <code>' . $this->getServerPath() . 'api/v2/socks/sonarr/</code>
+ <div class="panel-body">' . $this->socksHeadingHTML('sonarr') . '</div>