Commit Graph

113 Commits

Author SHA1 Message Date
Diego Heras 6156ad0cd5
core: allow renaming & merging of trackers with config (part 1 #8355) (#8608)
core: allow renaming & merging of trackers with config (part 1 #8355) (#8608)

* rename site field to id in yaml indexers
* add id field in c# indexers
* use id field instead of class name in c#
2020-05-11 21:59:28 +02:00
Diego Heras 47454e4c1e
test: add unit test to validate all cardigann definitions (#8165)
* test: add unit test to validate all cardigann definitions

Error while parsing Cardigann definition 4thd.yml
YamlDotNet.Core.YamlException: (Line: 13, Col: 9, Idx: 240) - (Line: 13, Col: 9, Idx: 240): Exception during deserialization
 ---> System.Runtime.Serialization.SerializationException: Property 'dec' not found on type 'Jackett.Common.Models.CategorymappingBlock'.
2020-04-13 09:34:45 +02:00
Garfield69 b5f5e7d619 Cardigann: disable the ignore unmatched properties.
and fix any yaml indexers that fail the syntax checking.

the option to ignoreUnmatchedProperties was enabled for #1549 and should have been turned off again once that task was completed.

leaving it enabled caused several unexplained behaviours in indexers where some statements were ignore by cardigann despite the intentions of the writer, and were not picked up during testing.
2020-04-13 09:45:57 +12:00
Diego Heras 484cc35577
core: remove unused imports (#8022) 2020-04-04 19:56:18 +13:00
Cory fc74b9ebcf
core: Remove non-null extention classes. (#7979) 2020-04-03 13:31:39 +13:00
Cory 2920cf7d20
Revert accidentally deleted line. Resolves #7870 (#7874) 2020-03-27 21:35:26 +13:00
Cory b5a6aab894
core: prefer object initializers (#7342) 2020-03-26 17:15:28 -05:00
Cory d7dddf6009
core: remove string extensions in favor of explicit conversion (#7839) 2020-03-24 21:39:38 -05:00
Cory 889a8da4e5
Convert functions and properties to expression bodies when able (#7312)
Convert functions and properties to expression bodies when able
2020-02-25 10:08:03 -06:00
Diego Heras 8c344b2917
core: reduce log traces in info level. add start/stop log traces (#7305) 2020-02-24 09:38:59 +13:00
Cory 348dddfbee
core: Apply declarations styles (#7166) 2020-02-11 11:16:19 +13:00
Cory 98541ac6f8
core: Sort and remove usings (#7159) 2020-02-10 07:08:34 +13:00
Cory c12da520a4
Run dotnet format on solution (#7145) 2020-02-09 15:35:16 +13:00
junglebus dc87b36ae0 Package update (#6916)
4 packages updated -> Jackett is now using the latest version of all packages except for AutoMapper -> Will have a go at that another day -> There is a few changes needed

-Minor code changes made to support newer version of YamlDotNet and BencodeNET
-Logic update for AssemblyName as I've been experiencing restore 'weirdness'  https://stackoverflow.com/questions/208084/how-to-use-a-different-assembly-name-for-different-configurations
2020-01-12 07:04:24 +13:00
Diego Heras 3534cfd3eb core: add downloading release message (#6826) 2020-01-05 19:51:39 +13:00
Cory e7a48c4234 Fix file location bug in paths with spaces during updates (#6814) resolves #6671 2020-01-05 07:49:53 +13:00
Diego Heras b72ad9a7f5 updater: improvements in systemd jackett_launcher (#6270) 2019-10-30 14:58:11 +13:00
Garfield69 1682767b37 delete json.bak when removing indexer. resolves #5692 2019-08-26 19:05:25 +12:00
flightlevel 0d4c8ba860 Inform users that Mono is no longer needed
Note: Not enabled currently, will enable at a later date
2019-04-27 20:59:33 +10:00
flightlevel 40b0cdffc3 Reduce cache size 2019-04-14 11:59:48 +10:00
flightlevel eda182f2c9 Make systemd scripts executable 2019-03-13 20:20:07 +11:00
flightlevel f146b3eaa6 Code tidy 2019-03-06 21:25:06 +11:00
flightlevel a25f2016dc Make Mono.Posix usage conditional on .NET Core 2019-03-06 21:16:20 +11:00
flightlevel 6ac9555cb5 Make parameter type HttpRequest
Code tidy
2019-03-06 20:11:50 +11:00
flightlevel e7d9360b51 Disable Mono.Posix 2019-03-06 19:51:59 +11:00
flightlevel 2270b13435 Trigger build 2019-03-06 13:05:12 +11:00
flightlevel 80a99ce69f Don't use Path.Combine for Linux paths 2019-03-06 12:59:14 +11:00
flightlevel c54cbb4cbe Trigger build 2019-03-06 12:32:27 +11:00
flightlevel de55e6e14e Log paths for debugging 2019-03-06 12:23:03 +11:00
flightlevel 2484ff16f3 Enable updater on .NET Core 2019-03-06 11:26:38 +11:00
flightlevel b8aa2a16dd Make execute permission conditional on .NET Core 2019-03-05 22:09:20 +11:00
flightlevel cf7ca97f9c Make jackett and JackettUpdater executable 2019-03-05 21:25:37 +11:00
flightlevel 5903e6abdf Enable updater for .NET Core on macOS 2019-03-03 16:09:17 +11:00
flightlevel c28df96332 Build updater for .NET Core macOS 2019-03-03 15:01:07 +11:00
flightlevel a90ed2601a Add variants to the updater 2019-01-21 21:18:59 +11:00
flightlevel 61d333cbc3 Don't check for updates if running .NET Core 2018-12-23 21:03:09 +11:00
flightlevel 524a0c7885 Remove IsRunningLegacyOwin check
Dead code since upgrade to Jackett.Server
2018-08-18 17:09:19 +10:00
Jay Otterbein 0026a4f26e Allow configuration of omdb url (#3353)
OMDB recently added a private.omdbapi.com domain for supporters and this option allows the user to customize it while also allowing that url to change more rapidly in the future
2018-07-09 20:37:24 +10:00
flightlevel 42728e2694 Update installer so that it kills Jackett when uninstalling 2018-06-30 22:49:11 +10:00
flightlevel 47a84775c5 Launch tray icon when Windows service updates 2018-06-27 22:02:51 +10:00
flightlevel 060972475f Windows Tray/Serice update improvements 2018-06-26 19:44:12 +10:00
flightlevel 7f9fff4683 Jackett.Updater: Make compatible with both legacy & .NET Core 2018-06-24 11:31:08 +10:00
flightlevel 0645bab613 .NET Core preparation: Access Windows service 2018-06-22 22:21:10 +10:00
flightlevel cf3848a54f .NET Core preparation: Access ServerConfig without using JackettModule 2018-06-17 11:48:59 +10:00
flightlevel 8c953bbf01 Avoid Engine for AspNetCore 2018-06-11 17:17:56 +10:00
flightlevel ac5af81344
.NET Core preparation (#3177)
The DPAPI won't be present, will be using AspNetCore DataProtection
instead
2018-05-30 21:28:20 +10:00
flightlevel 42beb6018e
DotNet Core preparation (#3046)
.NET core uses HttpRequest instead of HttpRequestMessage
2018-05-01 21:06:18 +10:00
kaso17 457449866e UpdateService: first update check after 1 hour 2018-04-17 11:35:34 +02:00
flightlevel 3e5e48c3a0
Change namespace to Jackett.Common (#2691)
Really hope I don't break anything with this
Went to have a go at .NET core and it just became too confusing for me with 'Jackett' namespace referring to both Jackett.Common and Jackett
2018-03-10 19:05:56 +11:00
kaso17 82d0c934ff increase log cache 2018-03-08 11:42:10 +01:00
kaso17 75bb28f376 fix view log unformated messages ({0}) 2018-03-08 11:40:20 +01:00
kaso17 ccf6780e6d add --NoUpdates option 2018-02-09 17:30:07 +01:00
kaso17 7db24cc4a0 OmdbResolver: fix encoding warning 2018-02-02 16:56:30 +01:00
kaso17 2934bfb3e7 Add PIDFile CLI option 2017-12-04 12:20:22 +01:00
kaso17 798dc9bf4b UpdateService: add logging 2017-11-15 19:00:10 +01:00
kaso17 0a82f950c3 fix update process 2017-11-15 15:23:44 +01:00
kaso17 dc46dd48b1 cleanup 2017-11-14 20:43:42 +01:00
kaso17 280be17c3a use original exe filename 2017-11-14 20:31:27 +01:00
Nathan Holland 1c62504b22 Remove Static Configuration Class and .NET Core Prep (#2122)
* Remove static configuration class that required prior knowledge of when it was initialised to dependency injected method that ensures all configuration has already occured.

* Specify a different log name for the updater, require a path when running the Jackett updater

* Update to all .NET Standard packages

* Explicitly specify the restore project style

* Move automapper out of the  DI framework and put crude detection to prevent it from initializing more than once.
2017-11-13 19:38:38 +11:00
kaso17 a6b5401c0b add support for magnet file download links 2017-11-09 13:28:15 +01:00
kaso17 6d53e486c5 fix Content/Definition folder usage in Debug mode 2017-11-09 12:32:36 +01:00
flightlevel 2209ab226c
Updater: Use Product Version (#2094) 2017-11-08 19:53:00 +11:00
Nathan Holland 571c52a0f2 Feature/netcore preparation (#2072)
* Use platform detection that works on mono 4.6+

* Move to use package reference for restoring nuget packages.

* DateTimeRoutines does not have Nuget packages that support .NET Standard (and therefore .NET Core). We will have to include them for now until we can get rid of this dependency.

* Start spliting some interfaces into their own files - this will help by allowing us to split them out in the future into a seperate project so the actual implementations can stay within their respective architectures when required

* Move out common libraries

* Few more tidy up tasks to get things working with .NET Standard

* Restructure the solution layout

* Encoding work to reduce rework later on platforms without Windows codepages (or require compliance with RFC1345)

* Move folder structure around to have more natural layout of the solutions

* DI server configuration to get rid of "temporary" hack and dependency circle for serverservice

* Make all encoding consistent to match the expected encoding casing for earlier versions of mono.
2017-11-05 20:42:03 +11:00