Commit Graph

408 Commits

Author SHA1 Message Date
Bond_009
e553eba31e Use System.Text.Json api 2019-10-08 20:59:53 +02:00
Joshua M. Boniface
9aec21f6b5
Nicer link format for comment
Co-Authored-By: Bond-009 <bond.009@outlook.com>
2019-09-29 16:18:05 -04:00
Joshua Boniface
72edf5b555 Change PRAGMA mode from WAL to TRUNCATE 2019-09-29 15:53:35 -04:00
Bond-009
ee637e8fec Fix warnings, improve performance (#1665)
* Fix warnings, improve performance

`QueryResult.Items` is now a `IReadOnlyList` so we don't need to
allocate a new `Array` when we have a `List` (and `Items` shouldn't need to
be mutable anyway)

* Update Providers .csproj to latest C#

* Remove extra newline from DtoService.cs

* Remove extra newline from UserLibraryService.cs
2019-09-02 02:19:29 -04:00
Bond_009
e4f893a0eb More warning fixes 2019-08-29 22:28:33 +02:00
Joshua M. Boniface
dc1782d049
Merge pull request #1646 from Bond-009/lock
Return DB lock immediately
2019-08-21 18:24:47 -04:00
Bond_009
3fd489d1cb Upgrade SQLitePCL to v2 2019-08-19 17:03:21 +02:00
Bond_009
f70a63d575 Return DB asap 2019-08-18 22:05:06 +02:00
Joshua M. Boniface
4bb0c2d053
Merge pull request #1642 from cvium/fix_slow_db
Speed up BaseItem deserialization
2019-08-18 13:42:08 -04:00
Claus Vium
f48eaccc51 Use reader.GetString instead of indexing 2019-08-18 17:32:41 +02:00
Claus Vium
e7c05dcfaf Speed up BaseItem deserialization 2019-08-18 17:22:45 +02:00
Bond_009
8d3b5c851d Improvements to UserManager 2019-08-16 21:06:11 +02:00
Bond_009
d62a3f0e57 Fix master 2019-08-15 00:00:21 +02:00
Bond_009
2fdf7f1098 Properly dispose DisplayPreferencesRepository 2019-08-14 20:35:36 +02:00
Bond-009
6032f31aa6 Use CultureInvariant string conversion for Guids 2019-08-09 23:17:54 +02:00
Erwin de Haan
0dbc294836
Move VACUUM command to fix merge error
This fixes a syntax error.
2019-07-06 23:50:06 +02:00
Bond-009
82f041d050
Merge branch 'master' into release-10.3.z 2019-07-06 23:08:52 +02:00
Erwin de Haan
acf52b9b55
Cleanup extra spaces. 2019-07-04 20:55:49 +02:00
Erwin de Haan
7587fe56d8
Moved VACUUM down to the end of the list. 2019-07-04 20:54:57 +02:00
Bond_009
29ae7b9aeb Add docs 2019-07-01 18:24:35 +02:00
Bond_009
45c13141f9 Address comments 2019-07-01 17:59:01 +02:00
Bond_009
d961278b3d Reduce amount of raw sql 2019-06-28 12:14:27 +02:00
Bond_009
db2765aae5 Last bit of cleanup 2019-06-28 12:14:27 +02:00
Bond_009
7898af4ceb Reworked PRAGMA statements use 2019-06-28 12:14:27 +02:00
Bond_009
edfd2d0cd9 Fix startup 2019-06-28 12:14:27 +02:00
Bond_009
d00ad28efd Address comments 2019-06-28 12:14:27 +02:00
Bond-009
e88ebd748d Final fixes 2019-06-28 12:14:27 +02:00
Bond-009
b6954f3bfd More 2019-06-28 12:14:27 +02:00
Bond-009
27c29bbb4c Back to a single connection 2019-06-28 12:13:34 +02:00
Bond-009
30842656a7 Properly dispose 2019-06-28 12:12:54 +02:00
Bond-009
e5248cfaa2 Properly dispose 2019-06-28 12:12:54 +02:00
Bond-009
c30ba14c1f Use a connection pool instead of creating new connections 2019-06-28 12:12:54 +02:00
Bond-009
cec22ad10d Simplify db code 2019-06-28 12:12:54 +02:00
ferferga
b136f14084 Vacuum databases at startup 2019-06-10 11:31:38 +02:00
Joshua M. Boniface
89537abdc4
Merge pull request #1293 from Bond-009/query-time
Fix query time logging
2019-05-10 09:19:05 -04:00
Bond_009
a9337033c1 Fix query time logging 2019-04-24 15:25:22 +02:00
Claus Vium
764c6d5461 Fix comparison for empty password migration 2019-04-20 17:50:34 +02:00
Bond-009
b44a70ff36 Simplify/remove/clean code
* Remove useless runtime check (we only support one)
* Remove unused args
* Remove a global constant

And ofc fix some warnings ;)
2019-03-25 22:25:32 +01:00
redSpoutnik
480a6607e2
Merge branch 'master' into subtitle-display-title 2019-03-16 17:54:57 +01:00
redSpoutnik
427688a0a0 Change subtitles DisplayTitle behavior 2019-03-14 22:31:51 +01:00
Vasily
1fef8bf266
Merge pull request #1060 from Bond-009/assinfo
Remove redundant class AssemblyInfo
2019-03-12 16:34:21 +03:00
Bond-009
ae0ecc1b10
Merge pull request #870 from LogicalPhallacy/betterauth
Better default authentication
2019-03-07 19:11:36 +01:00
Bond-009
e91dd14b31 Remove redundent class AssemblyInfo 2019-03-07 18:10:55 +01:00
Joshua M. Boniface
aba22b92bc
Merge pull request #735 from Bond-009/loop
Readability changes
2019-03-04 00:27:48 -05:00
Lynxy
5368112d90 Correct the list of series types 2019-03-01 22:28:25 -05:00
Bond-009
9993dafe54 Don't mix LINQ and roreach loops for readability 2019-03-01 17:12:22 +01:00
Bond-009
0804bed66d Log time in a standardized way 2019-02-26 19:40:23 +01:00
Phallacy
098de6b050 made newlines into linux newlines 2019-02-20 01:17:30 -08:00
Phallacy
a0d31a49a0 merging with master to clear merge conflict 2019-02-20 00:46:13 -08:00
Phallacy
6bbb968b57 minor changes and return to netstandard 2019-02-20 00:00:26 -08:00
Joshua M. Boniface
89d4ce309d
Merge pull request #848 from Bond-009/perf
Minor changes to reduce allocations
2019-02-19 21:24:51 -05:00
LogicalPhallacy
9f3aa2cead
Apply suggestions from code review
Adding minor stylistic suggestions from Bond-009

Co-Authored-By: LogicalPhallacy <44458166+LogicalPhallacy@users.noreply.github.com>
2019-02-18 00:31:03 -08:00
Bond-009
5835c4b21d
Remove comment 2019-02-13 12:58:46 +01:00
Phallacy
77602aff88 Minor fixes re:PR870, added null checks from PR876 2019-02-13 00:33:00 -08:00
Bond_009
da9418c1b2 Useless copy 2019-02-12 21:06:47 +01:00
Bond_009
9dba930a85 Warn faster for slow requests 2019-02-12 21:06:47 +01:00
Bond_009
7722cb3ffa Some Lists -> IEnumerable 2019-02-12 21:06:47 +01:00
Bond_009
3e6819c718 Don't clone lists 2019-02-12 21:06:47 +01:00
Bond_009
41fb1e5106 Tuple -> ValueTuple 2019-02-12 21:06:47 +01:00
Bond_009
64d5ec12e2 Use HashSets for increased perf 2019-02-12 21:06:47 +01:00
Bond_009
a6a4cd5667 Removed some unused fields 2019-02-09 15:57:42 +01:00
Joshua M. Boniface
c713824bf9
Merge pull request #734 from Bond-009/culture
Fix more analyzer warnings
2019-01-31 21:11:13 -05:00
Claus Vium
8985fb8d58 Remove support for games as a media type 2019-01-31 19:04:47 +01:00
Bond_009
a709cbdc64 Fix more analyzer warnings 2019-01-27 12:12:44 +01:00
Claus Vium
64b6cfa3dc Add Size to TypedBaseItem 2019-01-26 21:59:06 +01:00
Bond_009
d8d6c6f254 Address comments 2019-01-26 19:46:30 +01:00
Bond_009
2ffab720fb Fix ctor 2019-01-26 18:36:38 +01:00
Bond_009
07f163a4c3 Minor improvements to db code 2019-01-26 18:21:41 +01:00
hawken
490e22c790 Add comments to SqliteItemRepository to help out whoever is next 2019-01-22 12:20:36 +00:00
William Taylor
65cd3ed597 Replaced injections of ILogger with ILoggerFactory
This makes resolving dependencies from the container much easier as
you cannot resolve with primitives parameters in a way that is any
more readable.

The aim of this commit is to change as little as possible with the end
result, loggers that were newed up for the parent object were given the same
name. Objects that used the base or app loggers, were given a new logger with
an appropriate name.

Also removed some unused dependencies.
2019-01-20 21:05:12 +00:00
Erwin de Haan
321c440739 Reformat JustAMan review pt1 changes
Refs #575
2019-01-17 20:24:01 +01:00
Erwin de Haan
e867446437 ReSharper format: conform inline 'out' parameters. 2019-01-13 21:46:33 +01:00
Erwin de Haan
65bd052f3e ReSharper conform to 'var' settings 2019-01-13 21:37:13 +01:00
Erwin de Haan
a36658f6f0 ReSharper Reformat: Properties to expression bodied form. 2019-01-13 21:31:14 +01:00
Erwin de Haan
e566d9a231 Find+Sed BOM removal *.cs: BDInfo-Emby.XmlTv 2019-01-13 20:54:44 +01:00
Erwin de Haan
a5288115a8 Visual Studio Reformat: Emby.Server.Implementations Part A-Da 2019-01-13 20:20:16 +01:00
Erwin de Haan
e2751d42e8 Merge branch 'dev' into code-cleanup 2019-01-11 12:50:36 +01:00
Erwin de Haan
ec1f5dc317 Mayor code cleanup
Add Argument*Exceptions now use proper nameof operators.

Added exception messages to quite a few Argument*Exceptions.

Fixed rethorwing to be proper syntax.

Added a ton of null checkes. (This is only a start, there are about 500 places that need proper null handling)

Added some TODOs to log certain exceptions.

Fix sln again.

Fixed all AssemblyInfo's and added proper copyright (where I could find them)

We live in *current year*.

Fixed the use of braces.

Fixed a ton of properties, and made a fair amount of functions static that should be and can be static.

Made more Methods that should be static static.

You can now use static to find bad functions!

Removed unused variable. And added one more proper XML comment.
2019-01-10 20:38:53 +01:00
hawken
bd169e4fd4 remove trailing whitespace 2019-01-07 23:27:46 +00:00
Bond_009
ea4c914123 Fix exception logging 2018-12-30 22:44:39 +01:00
Bond_009
0f8b3c6347 Use Microsoft.Extensions.Logging abstraction 2018-12-30 22:44:38 +01:00
Bond_009
6e5d2aadaa Remove custom ToArray extension 2018-12-28 16:48:26 +01:00
Andrew Rabert
a86b71899e Add GPL modules 2018-12-27 18:27:57 -05:00
stefan
48facb797e Update to 3.5.2 and .net core 2.1 2018-09-12 19:26:21 +02:00
Luke Pulverenti
175c085d90 Stub out new filtering api 2017-12-03 17:15:21 -05:00
Luke Pulverenti
5207067811 fix live tv over dlna 2017-11-29 15:50:18 -05:00
Luke Pulverenti
0a0303ca64 normalize strm file contents 2017-11-01 15:50:16 -04:00
Luke Pulverenti
7e5036a587 update image aspect ratio detection 2017-10-22 02:22:43 -04:00
Luke Pulverenti
0bc3cdfab7 update suggestions 2017-10-13 15:21:43 -04:00
Luke Pulverenti
98f4da6d14 3.2.32.3 2017-09-23 21:09:51 -04:00
Luke Pulverenti
2d29d903be fixes #2904 - disabling transcoding for a user is not working 2017-09-22 01:54:57 -04:00
Luke Pulverenti
9d69352fcf fixes #2891 - New Season ... popups repeatedly 2017-09-20 02:29:38 -04:00
Luke Pulverenti
cdd79ec7e2 update owned items 2017-09-18 12:52:22 -04:00
Luke Pulverenti
106575e443 3.2.30.21 2017-09-15 02:32:20 -04:00
Luke Pulverenti
4a9550e584 update live tv images 2017-09-14 15:23:34 -04:00
Luke Pulverenti
fe10df6935 improve queries from scheduled tasks 2017-09-09 23:18:23 -04:00
Luke Pulverenti
adc22b5e81 rework epg storage 2017-09-08 12:13:58 -04:00
Luke Pulverenti
eb63e0d264 update image processor 2017-09-07 14:17:18 -04:00
Luke Pulverenti
49b799adbe 3.2.30.8 2017-09-05 15:49:02 -04:00
Luke Pulverenti
39c4542cf6 update query objects 2017-09-04 15:28:22 -04:00
Luke Pulverenti
e287e3a50d remove async when there's nothing to await 2017-08-26 20:32:33 -04:00
Luke Pulverenti
6bc2a79792 fix folder rip probe 2017-08-26 03:03:19 -04:00
Luke Pulverenti
e441e2f53d update active recordings 2017-08-24 15:52:19 -04:00
Luke Pulverenti
3c1fe6ff83 add experimental warning for folder rip transcoding 2017-08-22 01:41:02 -04:00
Luke Pulverenti
1ad990ad72 update live tv data transfer 2017-08-19 15:43:35 -04:00
Luke Pulverenti
a57c887f7f update components 2017-08-16 13:30:16 -04:00
Luke Pulverenti
d2b86edf05 update hdhr channel ids 2017-08-15 23:40:36 -04:00
Luke Pulverenti
9c5bfeddca expand on hardware decoding options 2017-08-13 14:05:46 -04:00
Luke Pulverenti
6b28eee2db rework episode queries 2017-08-12 22:09:07 -04:00
Luke Pulverenti
cf350f3b7e expand on hardware decoding options 2017-08-12 15:09:13 -04:00
Luke Pulverenti
a7db7cd40c reduce traffic from session player 2017-08-11 02:29:49 -04:00
Luke Pulverenti
e7425e6205 revert servicestack.text update 2017-08-10 14:01:31 -04:00
Luke Pulverenti
40442f887b consolidate emby.server.core into emby.server.implementations 2017-08-09 15:56:38 -04:00
Luke Pulverenti
6d78824c8e update components 2017-08-06 19:01:00 -04:00
Luke Pulverenti
db315c4e32 update media source methods 2017-08-05 15:02:33 -04:00
Luke Pulverenti
9b0e289602 update databases 2017-08-04 02:35:24 -04:00
Luke Pulverenti
4e52c027bc improve nextup queries 2017-08-01 12:45:57 -04:00
Luke Pulverenti
f7f0d3eba0 3.2.26.6 2017-07-28 12:16:06 -04:00
Luke Pulverenti
d270b10db6 move auto-organize to plugin 2017-07-27 01:18:39 -04:00
Luke Pulverenti
a46840534f 3.2.26.3 2017-07-25 14:32:03 -04:00
Luke Pulverenti
dc7a59c73a ensure custom css is loaded last 2017-07-23 18:29:53 -04:00
Luke Pulverenti
15947c2a4c update opening of live streams 2017-07-02 14:58:56 -04:00
Luke Pulverenti
1f96841e04 add perfect match indicator to subtitle editor 2017-06-30 15:58:53 -04:00
Luke Pulverenti
dcaf8356e6 update inherited images 2017-06-29 15:10:58 -04:00
Luke Pulverenti
6b2445aa2c add stream loop option for m3u 2017-06-24 14:32:22 -04:00
Luke Pulverenti
1663b258a7 update home sections 2017-06-13 02:33:29 -04:00
Luke Pulverenti
e91f569c15 update live tv startup 2017-06-03 03:36:32 -04:00
Luke Pulverenti
f07af448fa update main projects 2017-05-24 15:12:55 -04:00
Luke Pulverenti
27c3acb2bf 3.2.17.11 2017-05-23 12:56:01 -04:00
Luke Pulverenti
2f93d4498b update query fields 2017-05-23 12:43:24 -04:00
Luke Pulverenti
54cf0da758 update query fields 2017-05-22 00:54:02 -04:00
Luke Pulverenti
da77b05817 update data queries 2017-05-21 03:25:49 -04:00
Luke Pulverenti
47fc7c6aee add GenreItems property 2017-05-18 17:05:47 -04:00
Luke Pulverenti
bc865ce698 update series sorting 2017-05-15 00:27:08 -04:00
Luke Pulverenti
8e7b6f6bca update db CacheSize 2017-05-13 15:32:10 -04:00
Luke Pulverenti
1dab9a60f4 rename methods 2017-05-07 16:02:32 -04:00
Luke Pulverenti
d48496b843 add new search filters 2017-05-06 15:45:23 -04:00
Luke Pulverenti
59f2463efd update nuget 2017-05-06 01:18:54 -04:00
Luke Pulverenti
3a8b567f14 update file responses 2017-05-05 13:55:38 -04:00
Luke Pulverenti
f53472584e update environment detection 2017-04-29 02:22:33 -04:00
Luke Pulverenti
4d7d8961b4 update encoding detection 2017-04-18 01:53:39 -04:00
Luke Pulverenti
38e05b11e2 unify encodng param creation 2017-03-19 14:59:05 -04:00
Luke Pulverenti
203fc64a97 improve clean db task 2017-03-13 14:58:00 -04:00
Luke Pulverenti
5fa3817a76 update components 2017-02-26 16:47:52 -05:00
Luke Pulverenti
0ee1a0d7bd fix mapping multiple tuner channels to same epg channel 2017-02-18 22:46:09 -05:00
Luke Pulverenti
6091e00e18 clean related files when deleting items 2017-02-18 03:32:17 -05:00
Luke Pulverenti
3ff216f05a update ShortOverview 2017-01-26 15:27:12 -05:00
Luke Pulverenti
2ef30a3ba8 update program titles 2017-01-21 15:27:07 -05:00
Luke Pulverenti
e4fd626d1c resolve local trailers not used for cinema mode 2017-01-20 13:30:22 -05:00
Luke Pulverenti
8d668095bb add IsRemote property 2017-01-20 12:53:48 -05:00
Luke Pulverenti
e3c5968db5 add + button to song lists 2017-01-12 14:50:38 -05:00
Luke Pulverenti
12f20de68b update offline detection 2017-01-10 15:44:02 -05:00
Luke Pulverenti
85cd90d6e6 update video osd 2017-01-09 12:05:34 -05:00
Luke Pulverenti
ba9222898b update intro queries 2017-01-07 03:04:54 -05:00
Luke Pulverenti
0f1a542c1f remove transaction from GetItemList 2017-01-01 17:35:22 -05:00
Luke Pulverenti
b23bdfe9f2 add content type error handling 2016-12-24 02:41:53 -05:00
Luke Pulverenti
d350dc0edb resolve error saving sync jobs 2016-12-23 12:09:50 -05:00
Luke Pulverenti
ac2c45dd6a update dlna genre views 2016-12-20 14:59:25 -05:00
Luke Pulverenti
2345d02b41 add error handling 2016-12-18 02:32:28 -05:00
Luke Pulverenti
cc73830cd6 fix music album image inheritance 2016-12-17 03:27:41 -05:00
Luke Pulverenti
3674a65fae stop guide refresh when needed 2016-12-15 01:41:10 -05:00
Luke Pulverenti
dcd06597a7 add missing files 2016-12-13 13:41:36 -05:00
Luke Pulverenti
81d685b882 update db connections 2016-12-13 10:44:34 -05:00
Luke Pulverenti
71854c1a09 update connection process 2016-12-13 03:45:04 -05:00
Luke Pulverenti
e1b880a5a0 update series queries 2016-12-13 02:36:30 -05:00
Luke Pulverenti
87c9f26e65 update similar queries 2016-12-12 15:46:45 -05:00
Luke Pulverenti
d84bb7160f update next up queries 2016-12-12 14:40:27 -05:00
Luke Pulverenti
c2d0fd9985 update season queries 2016-12-12 03:53:25 -05:00
Luke Pulverenti
1aff48b93b move book support into the core 2016-12-12 00:49:19 -05:00
Luke Pulverenti
71919dcc05 update components 2016-12-11 00:27:08 -05:00
Luke Pulverenti
7669e821f1 update db locks 2016-12-11 00:17:04 -05:00
Luke Pulverenti
a9a808a9c4 fix db locking errors 2016-12-11 00:12:00 -05:00
Luke Pulverenti
e936f49518 update use of shellexecute 2016-12-09 20:58:52 -05:00
Luke Pulverenti
016d8301f5 update series queries 2016-12-06 03:24:29 -05:00
Luke Pulverenti
61e195c096 update repositories 2016-11-29 14:12:37 -05:00
Luke Pulverenti
1c52e4f51b update transaction modes 2016-11-28 14:26:48 -05:00
Luke Pulverenti
26ef23d628 update caching headers 2016-11-27 14:36:56 -05:00
Luke Pulverenti
921ec9cd11 save additional info to recording nfo's 2016-11-26 19:40:15 -05:00
Luke Pulverenti
d54c11fb74 add image safeguards 2016-11-25 13:17:26 -05:00
Luke Pulverenti
f9702672f4 optimize series display 2016-11-25 12:36:00 -05:00
Luke Pulverenti
8bc4d49c89 fix scanning of new libraries 2016-11-23 01:54:09 -05:00
Luke Pulverenti
3f68882fa8 add setting to control import of missing episodes 2016-11-22 13:22:01 -05:00
Luke Pulverenti
70df357e1e rework connection management 2016-11-22 00:55:34 -05:00
Luke Pulverenti
92cf390fb0 update user data db 2016-11-21 15:22:43 -05:00
Luke Pulverenti
62f84acd26 fix auto-organize 2016-11-21 13:49:07 -05:00
Luke Pulverenti
f275d7f3d2 reduce library queries 2016-11-21 03:54:53 -05:00
Luke Pulverenti
1dc080df8b update connections 2016-11-20 22:52:58 -05:00
Luke Pulverenti
985c9111cf resolve incorrect field saving 2016-11-20 19:57:54 -05:00
Luke Pulverenti
e297e90bce update .net core startup 2016-11-20 18:48:52 -05:00
Luke Pulverenti
94e622e3a0 add sqlite logging 2016-11-20 16:02:32 -05:00
Luke Pulverenti
24dc91160d update activity log 2016-11-20 15:31:55 -05:00
Luke Pulverenti
827602711e update sqlite dependencies 2016-11-20 15:20:01 -05:00
Luke Pulverenti
184f3bc50a update db init 2016-11-20 04:46:07 -05:00
Luke Pulverenti
7f62a99ab5 update extensions 2016-11-20 02:10:07 -05:00
Luke Pulverenti
a385ab5142 update extension 2016-11-20 01:13:35 -05:00
Luke Pulverenti
64d15be839 update queries 2016-11-20 00:59:36 -05:00
Luke Pulverenti
b06d1851da add db helpers 2016-11-19 21:43:21 -05:00
Luke Pulverenti
2a0280d48d add dll config file 2016-11-19 16:07:01 -05:00
Luke Pulverenti
9d1b4e1074 update userdata repository 2016-11-19 15:10:59 -05:00
Luke Pulverenti
5209ce9b2f stub out portable item repository 2016-11-19 13:09:15 -05:00
Luke Pulverenti
bdab0a1588 move TypeMapper to portable project 2016-11-19 11:51:49 -05:00
Luke Pulverenti
52227ce00d update save methods 2016-11-19 03:40:13 -05:00
Luke Pulverenti
ffb1ec76a7 update components 2016-11-19 02:51:07 -05:00
Luke Pulverenti
65a1ef020b move sync repository to portable project 2016-11-19 00:52:49 -05:00
Luke Pulverenti
c6f1bd93fc rework organizer repository 2016-11-18 15:43:19 -05:00
Luke Pulverenti
13abfbc3b8 rework users repository 2016-11-18 13:28:45 -05:00
Luke Pulverenti
9f40c1982b rework additional repositories 2016-11-18 04:28:39 -05:00
Luke Pulverenti
fa714425dd begin to rework repositories 2016-11-18 03:39:20 -05:00