mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-03-05 13:40:08 -05:00
Compare commits
10 Commits
v2.1.3.520
...
sync-updat
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
20b82146ac | ||
|
|
e4fb36e08f | ||
|
|
ff22fdf7d3 | ||
|
|
b3d46465ae | ||
|
|
eb57d20545 | ||
|
|
775b716c0f | ||
|
|
f7f3648dac | ||
|
|
c669048767 | ||
|
|
c282e4bef8 | ||
|
|
574721bfb5 |
@@ -9,7 +9,7 @@ variables:
|
||||
testsFolder: './_tests'
|
||||
yarnCacheFolder: $(Pipeline.Workspace)/.yarn
|
||||
nugetCacheFolder: $(Pipeline.Workspace)/.nuget/packages
|
||||
majorVersion: '2.1.3'
|
||||
majorVersion: '2.3.0'
|
||||
minorVersion: $[counter('minorVersion', 1)]
|
||||
prowlarrVersion: '$(majorVersion).$(minorVersion)'
|
||||
buildName: '$(Build.SourceBranchName).$(prowlarrVersion)'
|
||||
|
||||
@@ -1,14 +1,18 @@
|
||||
import PropTypes from 'prop-types';
|
||||
import React, { Component } from 'react';
|
||||
import Label from 'Components/Label';
|
||||
import Button from 'Components/Link/Button';
|
||||
import Link from 'Components/Link/Link';
|
||||
import Menu from 'Components/Menu/Menu';
|
||||
import MenuContent from 'Components/Menu/MenuContent';
|
||||
import { sizes } from 'Helpers/Props';
|
||||
import { kinds, sizes } from 'Helpers/Props';
|
||||
import translate from 'Utilities/String/translate';
|
||||
import AddApplicationPresetMenuItem from './AddApplicationPresetMenuItem';
|
||||
import styles from './AddApplicationItem.css';
|
||||
|
||||
const DEPRECATED_APPLICATIONS = ['Readarr'];
|
||||
const OBSOLETE_APPLICATIONS = [];
|
||||
|
||||
class AddApplicationItem extends Component {
|
||||
|
||||
//
|
||||
@@ -36,6 +40,8 @@ class AddApplicationItem extends Component {
|
||||
} = this.props;
|
||||
|
||||
const hasPresets = !!presets && !!presets.length;
|
||||
const isDeprecated = DEPRECATED_APPLICATIONS.includes(implementation);
|
||||
const isObsolete = OBSOLETE_APPLICATIONS.includes(implementation);
|
||||
|
||||
return (
|
||||
<div
|
||||
@@ -49,6 +55,24 @@ class AddApplicationItem extends Component {
|
||||
<div className={styles.overlay}>
|
||||
<div className={styles.name}>
|
||||
{implementationName}
|
||||
{
|
||||
isDeprecated &&
|
||||
<Label
|
||||
kind={kinds.WARNING}
|
||||
title={translate('DeprecatedApplicationMessage', { applicationName: implementationName })}
|
||||
>
|
||||
{translate('Deprecated')}
|
||||
</Label>
|
||||
}
|
||||
{
|
||||
isObsolete &&
|
||||
<Label
|
||||
kind={kinds.DANGER}
|
||||
title={translate('ObsoleteApplicationMessage', { applicationName: implementationName })}
|
||||
>
|
||||
{translate('Obsolete')}
|
||||
</Label>
|
||||
}
|
||||
</div>
|
||||
|
||||
<div className={styles.actions}>
|
||||
|
||||
@@ -10,6 +10,9 @@ import translate from 'Utilities/String/translate';
|
||||
import EditApplicationModalConnector from './EditApplicationModalConnector';
|
||||
import styles from './Application.css';
|
||||
|
||||
const DEPRECATED_APPLICATIONS = ['Readarr'];
|
||||
const OBSOLETE_APPLICATIONS = [];
|
||||
|
||||
class Application extends Component {
|
||||
|
||||
//
|
||||
@@ -61,10 +64,13 @@ class Application extends Component {
|
||||
syncLevel,
|
||||
fields,
|
||||
tags,
|
||||
tagList
|
||||
tagList,
|
||||
implementation
|
||||
} = this.props;
|
||||
|
||||
const applicationUrl = fields.find((field) => field.name === 'baseUrl')?.value;
|
||||
const isDeprecated = DEPRECATED_APPLICATIONS.includes(implementation);
|
||||
const isObsolete = OBSOLETE_APPLICATIONS.includes(implementation);
|
||||
|
||||
return (
|
||||
<Card
|
||||
@@ -88,6 +94,26 @@ class Application extends Component {
|
||||
}
|
||||
</div>
|
||||
|
||||
{
|
||||
isDeprecated &&
|
||||
<Label
|
||||
kind={kinds.WARNING}
|
||||
title={translate('DeprecatedApplicationMessage', { applicationName: implementation })}
|
||||
>
|
||||
{translate('Deprecated')}
|
||||
</Label>
|
||||
}
|
||||
|
||||
{
|
||||
isObsolete &&
|
||||
<Label
|
||||
kind={kinds.DANGER}
|
||||
title={translate('ObsoleteApplicationMessage', { applicationName: implementation })}
|
||||
>
|
||||
{translate('Obsolete')}
|
||||
</Label>
|
||||
}
|
||||
|
||||
{
|
||||
syncLevel === 'addOnly' &&
|
||||
<Label kind={kinds.WARNING}>
|
||||
@@ -141,6 +167,7 @@ class Application extends Component {
|
||||
Application.propTypes = {
|
||||
id: PropTypes.number.isRequired,
|
||||
name: PropTypes.string.isRequired,
|
||||
implementation: PropTypes.string.isRequired,
|
||||
enable: PropTypes.bool.isRequired,
|
||||
syncLevel: PropTypes.string.isRequired,
|
||||
fields: PropTypes.arrayOf(PropTypes.object).isRequired,
|
||||
|
||||
@@ -39,6 +39,9 @@ const syncLevelOptions = [
|
||||
}
|
||||
];
|
||||
|
||||
const DEPRECATED_APPLICATIONS = ['Readarr'];
|
||||
const OBSOLETE_APPLICATIONS = [];
|
||||
|
||||
function EditApplicationModalContent(props) {
|
||||
const {
|
||||
advancedSettings,
|
||||
@@ -60,6 +63,7 @@ function EditApplicationModalContent(props) {
|
||||
|
||||
const {
|
||||
id,
|
||||
implementation,
|
||||
implementationName,
|
||||
name,
|
||||
syncLevel,
|
||||
@@ -68,6 +72,9 @@ function EditApplicationModalContent(props) {
|
||||
message
|
||||
} = item;
|
||||
|
||||
const isDeprecated = DEPRECATED_APPLICATIONS.includes(implementation);
|
||||
const isObsolete = OBSOLETE_APPLICATIONS.includes(implementation);
|
||||
|
||||
return (
|
||||
<ModalContent onModalClose={onModalClose}>
|
||||
<ModalHeader>
|
||||
@@ -90,6 +97,28 @@ function EditApplicationModalContent(props) {
|
||||
{
|
||||
!isFetching && !error &&
|
||||
<Form {...otherProps}>
|
||||
{
|
||||
isDeprecated &&
|
||||
<Alert
|
||||
className={styles.message}
|
||||
kind={kinds.WARNING}
|
||||
>
|
||||
<div>{translate('DeprecatedApplicationTitle', { applicationName: implementationName })}</div>
|
||||
<div>{translate('DeprecatedApplicationMessage', { applicationName: implementationName })}</div>
|
||||
</Alert>
|
||||
}
|
||||
|
||||
{
|
||||
isObsolete &&
|
||||
<Alert
|
||||
className={styles.message}
|
||||
kind={kinds.DANGER}
|
||||
>
|
||||
<div>{translate('ObsoleteApplicationTitle', { applicationName: implementationName })}</div>
|
||||
<div>{translate('ObsoleteApplicationMessage', { applicationName: implementationName })}</div>
|
||||
</Alert>
|
||||
}
|
||||
|
||||
{
|
||||
!!message &&
|
||||
<Alert
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<PackageReference Include="IPAddressRange" Version="6.2.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" Version="8.0.1" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
|
||||
<PackageReference Include="NLog" Version="5.4.0" />
|
||||
<PackageReference Include="NLog.Layouts.ClefJsonLayout" Version="1.0.3" />
|
||||
<PackageReference Include="NLog.Extensions.Logging" Version="5.4.0" />
|
||||
@@ -17,7 +17,8 @@
|
||||
<PackageReference Include="NLog.Targets.Syslog" Version="7.0.0" />
|
||||
<PackageReference Include="SharpZipLib" Version="1.4.2" />
|
||||
<PackageReference Include="SourceGear.sqlite3" Version="3.50.4.2" />
|
||||
<PackageReference Include="System.Data.SQLite" Version="2.0.1" />
|
||||
<PackageReference Include="System.Data.SQLite" Version="2.0.2" />
|
||||
<PackageReference Include="System.Private.Uri" Version="4.3.2" />
|
||||
<PackageReference Include="System.Text.Json" Version="8.0.6" />
|
||||
<PackageReference Include="System.ValueTuple" Version="4.6.1" />
|
||||
<PackageReference Include="System.Configuration.ConfigurationManager" Version="8.0.1" />
|
||||
|
||||
@@ -159,7 +159,7 @@ namespace NzbDrone.Core.Applications.Lidarr
|
||||
case HttpStatusCode.BadRequest:
|
||||
if (ex.Response.Content.Contains("Query successful, but no results in the configured categories were returned from your indexer.", StringComparison.InvariantCultureIgnoreCase))
|
||||
{
|
||||
_logger.Warn(ex, "No Results in configured categories. See FAQ Entry: Prowlarr will not sync X Indexer to App");
|
||||
_logger.Warn(ex, "No Results in configured categories. See FAQ Entry: https://wiki.servarr.com/prowlarr/faq#prowlarr-will-not-sync-x-indexer-to-app");
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -172,7 +172,7 @@ namespace NzbDrone.Core.Applications.Radarr
|
||||
case HttpStatusCode.BadRequest:
|
||||
if (ex.Response.Content.Contains("Query successful, but no results in the configured categories were returned from your indexer.", StringComparison.InvariantCultureIgnoreCase))
|
||||
{
|
||||
_logger.Warn(ex, "No Results in configured categories. See FAQ Entry: Prowlarr will not sync X Indexer to App");
|
||||
_logger.Warn(ex, "No Results in configured categories. See FAQ Entry: https://wiki.servarr.com/prowlarr/faq#prowlarr-will-not-sync-x-indexer-to-app");
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@ using NzbDrone.Core.Indexers;
|
||||
|
||||
namespace NzbDrone.Core.Applications.Readarr
|
||||
{
|
||||
[Obsolete("Readarr is deprecated and will be removed in a future version")]
|
||||
public class Readarr : ApplicationBase<ReadarrSettings>
|
||||
{
|
||||
public override string Name => "Readarr";
|
||||
|
||||
@@ -146,7 +146,7 @@ namespace NzbDrone.Core.Applications.Readarr
|
||||
case HttpStatusCode.BadRequest:
|
||||
if (ex.Response.Content.Contains("Query successful, but no results in the configured categories were returned from your indexer.", StringComparison.InvariantCultureIgnoreCase))
|
||||
{
|
||||
_logger.Warn(ex, "No Results in configured categories. See FAQ Entry: Prowlarr will not sync X Indexer to App");
|
||||
_logger.Warn(ex, "No Results in configured categories. See FAQ Entry: https://wiki.servarr.com/prowlarr/faq#prowlarr-will-not-sync-x-indexer-to-app");
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -159,7 +159,7 @@ namespace NzbDrone.Core.Applications.Sonarr
|
||||
case HttpStatusCode.BadRequest:
|
||||
if (ex.Response.Content.Contains("Query successful, but no results in the configured categories were returned from your indexer.", StringComparison.InvariantCultureIgnoreCase))
|
||||
{
|
||||
_logger.Warn(ex, "No Results in configured categories. See FAQ Entry: Prowlarr will not sync X Indexer to App");
|
||||
_logger.Warn(ex, "No Results in configured categories. See FAQ Entry: https://wiki.servarr.com/prowlarr/faq#prowlarr-will-not-sync-x-indexer-to-app");
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -144,7 +144,7 @@ namespace NzbDrone.Core.Applications.Whisparr
|
||||
case HttpStatusCode.BadRequest:
|
||||
if (ex.Response.Content.Contains("Query successful, but no results in the configured categories were returned from your indexer.", StringComparison.InvariantCultureIgnoreCase))
|
||||
{
|
||||
_logger.Warn(ex, "No Results in configured categories. See FAQ Entry: Prowlarr will not sync X Indexer to App");
|
||||
_logger.Warn(ex, "No Results in configured categories. See FAQ Entry: https://wiki.servarr.com/prowlarr/faq#prowlarr-will-not-sync-x-indexer-to-app");
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -424,8 +424,8 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
|
||||
}
|
||||
catch (HttpException ex)
|
||||
{
|
||||
_logger.Debug("qbitTorrent authentication failed.");
|
||||
if (ex.Response.StatusCode == HttpStatusCode.Forbidden)
|
||||
_logger.Debug(ex, "qbitTorrent authentication failed.");
|
||||
if (ex.Response.StatusCode is HttpStatusCode.Unauthorized or HttpStatusCode.Forbidden)
|
||||
{
|
||||
throw new DownloadClientAuthenticationException("Failed to authenticate with qBittorrent.", ex);
|
||||
}
|
||||
@@ -437,9 +437,9 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
|
||||
throw new DownloadClientUnavailableException("Failed to connect to qBittorrent, please check your settings.", ex);
|
||||
}
|
||||
|
||||
if (response.Content != "Ok.")
|
||||
// returns "Fails." on bad login
|
||||
if (response.Content.IsNotNullOrWhiteSpace() && response.Content != "Ok.")
|
||||
{
|
||||
// returns "Fails." on bad login
|
||||
_logger.Debug("qbitTorrent authentication failed.");
|
||||
throw new DownloadClientAuthenticationException("Failed to authenticate with qBittorrent.");
|
||||
}
|
||||
|
||||
@@ -1541,7 +1541,7 @@ namespace NzbDrone.Core.Indexers.Definitions
|
||||
|
||||
if (season != 0)
|
||||
{
|
||||
searchString += " Сезон: " + season;
|
||||
searchString += " ТВ | Сезон: " + season;
|
||||
}
|
||||
|
||||
parameters.Set("nm", searchString);
|
||||
@@ -1712,6 +1712,8 @@ namespace NzbDrone.Core.Indexers.Definitions
|
||||
private readonly Regex _tvTitleRusSeasonRegex = new(@"Сезон\s*[:]*\s+(\d+(?:-\d+)?)", RegexOptions.Compiled | RegexOptions.IgnoreCase);
|
||||
private readonly Regex _tvTitleRusEpisodeOfRegex = new(@"(?:Серии|Эпизод|Выпуски)+\s*[:]*\s+(\d+(?:-\d+)?)\s*из\s*([\w?])", RegexOptions.Compiled | RegexOptions.IgnoreCase);
|
||||
private readonly Regex _tvTitleRusEpisodeRegex = new(@"(?:Серии|Эпизод|Выпуски)+\s*[:]*\s+(\d+(?:-\d+)?)", RegexOptions.Compiled | RegexOptions.IgnoreCase);
|
||||
private readonly Regex _tvTitleRusSeasonAnimeRegex = new(@"ТВ[-]*(?:(\d+))", RegexOptions.Compiled | RegexOptions.IgnoreCase);
|
||||
private readonly Regex _tvTitleRusEpisodeAnimeOfRegex = new(@"\[(\d+(\+\d+)?)\s+из\s+(\d+(\+\d+)?)\]", RegexOptions.Compiled | RegexOptions.IgnoreCase);
|
||||
|
||||
public string Parse(string title,
|
||||
ICollection<IndexerCategory> categories,
|
||||
@@ -1736,6 +1738,8 @@ namespace NzbDrone.Core.Indexers.Definitions
|
||||
title = _tvTitleRusSeasonRegex.Replace(title, "S$1");
|
||||
title = _tvTitleRusEpisodeOfRegex.Replace(title, "E$1 of $2");
|
||||
title = _tvTitleRusEpisodeRegex.Replace(title, "E$1");
|
||||
title = _tvTitleRusSeasonAnimeRegex.Replace(title, "S$1");
|
||||
title = _tvTitleRusEpisodeAnimeOfRegex.Replace(title, "E$1 of $3");
|
||||
}
|
||||
else if (IsAnyMovieCategory(categories))
|
||||
{
|
||||
|
||||
@@ -538,6 +538,12 @@
|
||||
"NotificationsTelegramSettingsIncludeAppName": "Include {appName} in Title",
|
||||
"NotificationsTelegramSettingsIncludeAppNameHelpText": "Optionally prefix message title with {appName} to differentiate notifications from different applications",
|
||||
"OAuthPopupMessage": "Pop-ups are being blocked by your browser",
|
||||
"Obsolete": "Obsolete",
|
||||
"ObsoleteApplicationMessage": "{applicationName} is obsolete and has been removed",
|
||||
"ObsoleteApplicationTitle": "{applicationName} is Obsolete",
|
||||
"Deprecated": "Deprecated",
|
||||
"DeprecatedApplicationMessage": "{applicationName} is deprecated and will be removed in a future version",
|
||||
"DeprecatedApplicationTitle": "{applicationName} is Deprecated",
|
||||
"Ok": "Ok",
|
||||
"OnApplicationUpdate": "On Application Update",
|
||||
"OnApplicationUpdateHelpText": "On Application Update",
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
<PackageReference Include="AngleSharp.Xml" Version="1.0.0" />
|
||||
<PackageReference Include="Dapper" Version="2.1.66" />
|
||||
<PackageReference Include="Diacritical.Net" Version="1.0.4" />
|
||||
<PackageReference Include="MailKit" Version="4.13.0" />
|
||||
<PackageReference Include="MailKit" Version="4.14.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Cryptography.KeyDerivation" Version="8.0.16" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.WebUtilities" Version="8.0.16" />
|
||||
<PackageReference Include="Microsoft.Data.SqlClient" Version="6.0.2" />
|
||||
<PackageReference Include="Microsoft.Data.SqlClient" Version="6.1.1" />
|
||||
<PackageReference Include="NLog.Targets.Syslog" Version="7.0.0" />
|
||||
<PackageReference Include="Npgsql" Version="9.0.3" />
|
||||
<PackageReference Include="Polly" Version="8.6.3" />
|
||||
<PackageReference Include="Polly" Version="8.6.4" />
|
||||
<PackageReference Include="Servarr.FluentMigrator.Runner" Version="3.3.2.9" />
|
||||
<PackageReference Include="Servarr.FluentMigrator.Runner.Postgres" Version="3.3.2.9" />
|
||||
<PackageReference Include="Servarr.FluentMigrator.Runner.SQLite" Version="3.3.2.9" />
|
||||
@@ -20,7 +20,7 @@
|
||||
<PackageReference Include="System.Memory" Version="4.6.3" />
|
||||
<PackageReference Include="System.ServiceModel.Syndication" Version="8.0.0" />
|
||||
<PackageReference Include="FluentValidation" Version="9.5.4" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
|
||||
<PackageReference Include="NLog" Version="5.4.0" />
|
||||
<PackageReference Include="System.Text.Json" Version="8.0.6" />
|
||||
<PackageReference Include="MonoTorrent" Version="2.0.7" />
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Net;
|
||||
using DryIoc;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
@@ -31,6 +32,7 @@ using Prowlarr.Http.ClientSchema;
|
||||
using Prowlarr.Http.ErrorManagement;
|
||||
using Prowlarr.Http.Frontend;
|
||||
using Prowlarr.Http.Middleware;
|
||||
using IPNetwork = Microsoft.AspNetCore.HttpOverrides.IPNetwork;
|
||||
using LogLevel = Microsoft.Extensions.Logging.LogLevel;
|
||||
|
||||
namespace NzbDrone.Host
|
||||
@@ -59,8 +61,9 @@ namespace NzbDrone.Host
|
||||
services.Configure<ForwardedHeadersOptions>(options =>
|
||||
{
|
||||
options.ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto | ForwardedHeaders.XForwardedHost;
|
||||
options.KnownNetworks.Clear();
|
||||
options.KnownProxies.Clear();
|
||||
options.KnownNetworks.Add(new IPNetwork(IPAddress.Parse("10.0.0.0"), 8));
|
||||
options.KnownNetworks.Add(new IPNetwork(IPAddress.Parse("172.16.0.0"), 12));
|
||||
options.KnownNetworks.Add(new IPNetwork(IPAddress.Parse("192.168.0.0"), 16));
|
||||
});
|
||||
|
||||
services.AddRouting(options => options.LowercaseUrls = true);
|
||||
|
||||
Reference in New Issue
Block a user