BaronGreenback
8a69300bf5
Changes styles as suggested by @barronpm
...
Added addtional comments & source type as per intellisense suggestion
change code as per sonacloud
2020-04-29 12:24:01 +01:00
BaronGreenback
ebd589aa86
Whilst fixing issues with SSDP on devices with multiple interfaces, i came across a design issue in the current code - namely interfaces without a gateway were ignored.
...
Fixing this required the removal of the code that attempted to detect virtual interfaces. Not wanting to remove functionality, but not able to keep the code in place, I implemented a work around solution (see 4 below).
Whilst in the area, I also fixed a few minor bugs i encountered (1, 5, 6 below) and stopped SSDP messages from going out on non-LAN interfaces (3)
All these changes are related.
Changes
1 IsInPrivateAddressSpace - improved subnet code checking
2 interfaces with no gateway were being excluded from SSDP blasts
3 filtered SSDP blasts from not LAN addresses as defined on the network page.
4 removed #986 mod - as this was part of the issue of #2986 . Interfaces can be excluded from the LAN by putting the LAN address in brackets. eg. [10.1.1.1] will exclude an interface with ip address 10.1.1.1 from SSDP
5 fixed a problem where an invalid LAN address causing the SSDP to crash
6 corrected local link filter (FilterIPAddress) to filter on 169.254. addresses
2020-04-28 21:57:39 +01:00
BaronGreenback
a3140f83c6
Revert "Whilst fixing issues with SSDP on devices with multiple interfaces, i came across a design issue in the current code - namely interfaces without a gateway were ignored."
...
This reverts commit 2aaecb8e14
.
2020-04-28 21:51:49 +01:00
BaronGreenback
2aaecb8e14
Whilst fixing issues with SSDP on devices with multiple interfaces, i came across a design issue in the current code - namely interfaces without a gateway were ignored.
...
Fixing this required the removal of the code that attempted to detect virtual interfaces. Not wanting to remove functionality, but not able to keep the code in place, I implemented a work around solution (see 4 below).
Whilst in the area, I also fixed a few minor bugs i encountered (1, 5, 6 below) and stopped SSDP messages from going out on non-LAN interfaces (3)
All these changes are related.
Changes
1 IsInPrivateAddressSpace - improved subnet code checking
2 interfaces with no gateway were being excluded from SSDP blasts
3 filtered SSDP blasts from not LAN addresses as defined on the network page.
4 removed #986 mod - as this was part of the issue of #2986 . Interfaces can be excluded from the LAN by putting the LAN address in brackets. eg. [10.1.1.1] will exclude an interface with ip address 10.1.1.1 from SSDP
5 fixed a problem where an invalid LAN address causing the SSDP to crash
6 corrected local link filter (FilterIPAddress) to filter on 169.254. addresses
2020-04-28 21:45:46 +01:00
Joshua M. Boniface
4fa6d1ccee
Merge pull request #2940 from balu92/master
...
Fix missing colons
2020-04-26 15:22:38 -04:00
Joshua M. Boniface
ca4b6836c1
Merge pull request #2906 from randrey/dlna-nullref-fix
...
Fix InvalidOperationException while browsing via DLNA client.
2020-04-26 15:02:34 -04:00
Bond_009
118f30059c
Merge branch 'master' into nullable4
2020-04-23 11:29:19 +02:00
crobibero
461b298be7
Migrate DlnaServerController to Jellyfin.Api
2020-04-21 19:15:27 -06:00
crobibero
f5385e4735
Move Emby.Dlna DlnaService.cs to Jellyfin.Api
2020-04-21 18:12:46 -06:00
Bond-009
c0b3c11b2e
Merge pull request #2846 from jellyfin/azure
...
Remove requirement to build web during server builds
2020-04-22 00:17:44 +02:00
Mark Monteiro
c5f163293f
Add <ProjectGuid> properties to all project files
...
This is required for SonarCloud analysis to run
2020-04-21 16:21:09 -04:00
Unknown
80f5dd1e59
Fixed missing colons
...
some colons were missing from the default ProtocolInfo string
2020-04-20 13:52:50 +01:00
randrey
0bef4eef87
Fix InvalidOperationException while browsing via DLNA client.
2020-04-17 14:45:56 -07:00
a1
eba781eac5
Fix DLNA clients displaying wrong album art.
2020-04-16 23:36:43 -07:00
Bond_009
2fcbc2a5b8
Enable nullabe reference types for Emby.Drawing and Jellyfin.Drawing.Skia
2020-04-05 21:19:04 +02:00
Bond_009
30ce346f34
Enable nullabe reference types for MediaBrowser.Model
2020-04-05 18:10:56 +02:00
Vasily
d5cc10d7e1
Merge pull request #2741 from Bond-009/dlnawarnings2
...
Fix some warnings
2020-04-04 01:38:09 +03:00
Bond-009
64692af1a2
Update Device.cs
2020-04-04 00:24:36 +02:00
Bond-009
91b17e7289
Update Device.cs
2020-04-04 00:21:26 +02:00
Bond-009
4cacfd5997
Update DidlBuilder.cs
2020-04-03 23:20:04 +02:00
Bond-009
ad0e2e42e6
Update Device.cs
2020-04-03 23:13:45 +02:00
Bond_009
3161e85f76
Address comments
2020-04-03 17:30:01 +02:00
Bond-009
f6c9a44703
Update Device.cs
2020-04-03 16:46:14 +02:00
Bond-009
231c1e519f
Update Emby.Dlna.csproj
2020-04-03 16:44:40 +02:00
Vasily
a37b69a493
Merge pull request #2559 from whooo/295-fix
...
Add descriptive TV episode titles for DLNA browsing
2020-04-03 17:39:33 +03:00
Bond_009
8a566dfe73
Fix build
2020-04-02 17:07:37 +02:00
Bond_009
be8ba96183
Fix some warnings
2020-04-02 16:52:11 +02:00
Bond-009
62a18af17a
Update Emby.Dlna/Main/DlnaEntryPoint.cs
...
Co-Authored-By: Vasily <JustAMan@users.noreply.github.com>
2020-04-01 18:50:19 +02:00
Erik Larsson
b63ed35238
Add descriptive TV episode titles for DLNA browsing
...
When browsing TV episodes in Next Up, etc via DLNA a more descriptive
title should be used to easier identify the right episode.
2020-03-27 06:34:22 +01:00
Bond_009
e9d1eabd53
Remove unused usings
2020-03-24 16:12:06 +01:00
Bond-009
94fe9b8f6d
Merge branch 'master' into warn17
2020-03-11 20:26:43 +01:00
Mark Monteiro
b67e9cde8c
Replace ILogger with ILogger<T> wherever possible
...
Log entries will contain additional class context when using this interface
2020-03-03 23:07:10 +01:00
Bond_009
07cc4be6a7
Fix some warnings
...
* Add analyzers to MediaBrowser.XbmcMetadata
* Enable TreatWarningsAsErrors for MediaBrowser.XbmcMetadata
* Add analyzers to MediaBrowser.WebDashboard
* Enable TreatWarningsAsErrors for MediaBrowser.WebDashboard
* Disable SA1600 in favor of CS1591
2020-02-23 12:11:43 +01:00
Claus Vium
241e351a61
Merge branch 'master' into dlnawarnings
2020-02-03 13:51:34 +01:00
dkanada
b7a9900556
Merge pull request #2357 from Bond-009/warn13
...
Fix warnings
2020-02-03 17:15:03 +09:00
Bond_009
87d2479b78
Fix warnings
2020-01-31 22:26:53 +01:00
dkanada
cd13f718fb
Merge pull request #2247 from Bond-009/stringhelper
...
Remove StringHelper functions
2020-02-01 03:29:16 +09:00
Bond-009
d69870680b
Close xmlwriter first
2020-01-29 17:30:27 +01:00
Bond_009
6ee04855cd
Style
2020-01-28 21:54:51 +01:00
Bond-009
ae9c1e29e7
My bad
2020-01-28 17:50:25 +01:00
Bond-009
36d62c3093
Fix?
2020-01-28 13:19:25 +01:00
Bond_009
6b68521bae
Try again
2020-01-27 23:34:40 +01:00
Bond_009
fc578de3b3
Try possible solutions
2020-01-27 22:43:58 +01:00
Bond-009
bade35958a
Fix
2020-01-26 17:41:34 +01:00
Bond-009
3a338c1899
Address comments
2020-01-26 17:37:47 +01:00
Bond-009
c8409d2ea1
Remove FileSystem.GetStream
2020-01-22 22:20:35 +01:00
Bond_009
82112b6788
Improvements to dlna server
...
* Improve response writer
* Add analyzers
* Error on warnings in release mode
* Disable doc warnings
2020-01-22 21:00:07 +01:00
dkanada
1dd4abebbd
Merge pull request #2297 from Bond-009/asyncio
...
Kestrel doesn't like sync IO operations
2020-01-23 01:59:52 +09:00
Bond-009
5340eb9363
Update Emby.Dlna/Service/BaseControlHandler.cs
...
Co-Authored-By: dkanada <dkanada@users.noreply.github.com>
2020-01-22 17:46:26 +01:00
Bond-009
ac3b958c67
Use async methods
2020-01-21 17:59:41 +01:00
Carey Metcalfe
f2eea89ff0
Fix pagination for DLNA root folder list
...
Previously, when responding to a DLNA "Browse" request, the
`StartingIndex` was not respected and all of the root items were
returned each time. This caused infinite loops with in DLNA clients that
ignored the `TotalMatches` data in the response and just continued
asking for the next page until they got an empty response.
This fix makes the root folder list respect the `StartingIndex` and
`RequestedCount` parameters like all other responses.
Fixes issue #2303
2020-01-19 01:37:52 -05:00
Bond_009
2610f377c0
Kestrel doesn't like sync IO operations
2020-01-18 00:09:25 +01:00
Bond_009
976459d3e8
Rewrite WebSocket handling code
2020-01-13 20:06:08 +01:00
Bond-009
fdbb329118
Remove StringHelper functions
2020-01-09 17:07:13 +01:00
Bond-009
49330e3082
Fix a couple of TODOs
2019-12-30 16:03:20 +01:00
dkanada
dee3076eaf
Merge pull request #1923 from Bond-009/random
...
Don't shuffle some types by default
2019-12-10 22:28:44 +09:00
Bond-009
a2c35e6dba
Merge remote-tracking branch 'upstream/master' into random
2019-12-06 12:06:13 +01:00
Bond-009
94edb5b9f9
Add else
2019-12-06 11:58:45 +01:00
Bond-009
a6f883345f
Reduce #lines
2019-12-05 17:44:46 +01:00
Bond_009
3221e837f9
* Add support for multi segment base urls
...
* Make baseurl case-insensitive
2019-11-25 11:55:24 +01:00
Bond-009
69d76af054
dlna GetPathValue
...
Forgot to update this last time, just copied the code from `MediaBrowser.Api/BaseApiService.cs`
2019-11-25 10:56:23 +01:00
Bond_009
5ee070eb29
Remove leading / from baseurl
2019-11-17 19:53:12 +01:00
Bond-009
d161b9cbfc
Fix GetPathValue function for DLNA service
2019-11-13 16:40:34 +01:00
dkanada
0b02c77691
Merge pull request #1864 from Bond-009/installationmanager
...
Improve IInstallationManager interface
2019-11-13 21:12:52 +09:00
Bond-009
983d38a43b
Merge branch 'master' into installationmanager
2019-11-07 10:50:55 +01:00
Bond_009
b0a25c4237
Use Mono.Nat Nuget package
2019-11-01 21:22:35 +01:00
Bond_009
d529f81cd9
Improve IInstallationManager interface
2019-11-01 17:57:19 +01:00
Bond_009
a245f5a0d4
Rewrite hex encoder/decoder
2019-11-01 17:52:29 +01:00
Bond_009
bbc0875387
Don't shuffle some types by default
2019-10-20 16:08:40 +02: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
marius
3deeca43a1
- use streamInfo.StartPositionTicks if provided over userdata.PlaybackPositionTicks when creating the Samsung Bookmark Info
2019-08-29 02:38:53 +03:00
Bond_009
237db8ae92
Clean up livestreaming code
2019-08-16 21:13:18 +02:00
dkanada
bb04545068
Merge pull request #1614 from Bond-009/docs2
...
Document all public/internal members of Emby.Drawing
2019-08-15 21:01:44 -07:00
Bond_009
838e5d05d5
Document all public/internal members of Emby.Drawing
...
Forces all new public/internal members to be documented.
Enables TreatWarningsAsErrors for Emby.Drawing
2019-08-11 16:52:37 +02:00
Bond_009
5eaf5465a5
Check checksum for plugin downloads
...
* Compare the MD5 checksum when downloading plugins
* Reduced log spam due to http requests
* Removed 'GetTempFileResponse' function from HttpClientManager
* Fixed caching for HttpClientManager
2019-08-11 15:54:58 +02:00
Bond-009
6032f31aa6
Use CultureInvariant string conversion for Guids
2019-08-09 23:17:54 +02:00
Bond-009
8b1bd7ac6b
Use a dictionary to look up mimetypes
2019-07-28 20:20:03 +02:00
Bond_009
ddd1a282ea
Remove IpAddressInfo and IpEndPointInfo classes
2019-07-25 00:15:06 +02:00
Bond_009
b1bd062709
Properly set content type
2019-07-13 17:12:06 -04:00
Bond_009
d405a400aa
Fixes issues with HttpClientManager
2019-07-06 20:04:42 +02:00
bugfixin
87c8f19f19
Move DLNA thumbnail element to after larger image elements
2019-05-16 18:00:38 +00:00
Andrew Rabert
608fd873de
Optimize images with image_optim
2019-04-03 22:58:52 -04:00
Bond-009
d623f616fa
Improved dispose method
2019-03-25 17:32:27 +01:00
Bond-009
fc8de8aead
Check if disposed first
2019-03-25 17:27:24 +01:00
Erwin de Haan
21cc38fcf4
Adjusted AssemblyCopyright attribute values.
2019-03-14 22:17:56 +01:00
Erwin de Haan
ee7bf86e0f
Adjusted the Product Name so the User Agent is correct/better.
2019-03-14 22:11:47 +01:00
Vasily
297f25cfc2
Merge pull request #1059 from Bond-009/os
...
Remove EnvironmentInfo
2019-03-13 00:01:00 +03:00
Bond-009
3ddbda9aca
Merge branch 'master' into xml
2019-03-12 16:37:18 +01:00
Bond-009
decaffed86
Remove EnvironmentInfo
...
This moved the last bit of usefulness of EnvironmentInfo into a static
class.
2019-03-07 22:41:41 +01:00
Vasily
e04a152ed0
Merge pull request #996 from Bond-009/libscan
...
Reduce the amount of exceptions thrown
2019-03-08 00:11:53 +03:00
Vasily
75996476a7
Merge pull request #1061 from Bond-009/dead
...
Remove dead code
2019-03-07 23:57:51 +03:00
Bond_009
37ea50a572
Reduce the amount of exceptions thrown
2019-03-07 21:42:56 +01:00
Claus Vium
0abe57e930
Merge remote-tracking branch 'remotes/upstream/master' into kestrel_poc
2019-03-07 20:16:51 +01:00
Bond-009
65c0b486aa
Remove dead code
...
What it says on the tin
2019-03-07 19:27:43 +01:00
Claus Vium
8c609bc9ce
Reduce aspnet imports
2019-03-07 19:04:09 +01:00
Bond_009
ffd6dac03a
Remove useless comments
2019-03-07 12:24:44 +01:00
Bond_009
a9302b8b53
Remove useless abstraction around XmlReaderSettings
...
This removes the amount of stuff that needs to be passed around
Also removes some unneeded `ManagedFileSystem` usage
2019-03-07 12:04:14 +01:00
Claus Vium
318e0d4a24
Add GetValueOrDefault dictionary extension
2019-03-05 10:27:25 +01:00
Claus Vium
040871459b
Remove some unused references
2019-03-03 14:35:54 +01:00
Bond-009
9993dafe54
Don't mix LINQ and roreach loops for readability
2019-03-01 17:12:22 +01:00