Details
-
Bug
-
Resolution: Fixed
-
Minor
-
2.1
-
None
Description
<p>Currently the OnlineLibraries matchers are <a href="https://github.com/MediaPortal/MediaPortal-2/blob/b080ab9f55313972e5240fa3a669a3fe350c3f13/MediaPortal/Source/Extensions/MetadataExtractors/OnlineLibraries/OnlineMatcherService.cs#L101">initialized during startup</a>, the underlying wrapper may make web requests during the initialization which can cause significant delays to startup if there are connection issues.</p>
<p>This is notably the case for the TvDbWrapper which attempts to <a href="https://github.com/MediaPortal/MediaPortal-2/blob/b080ab9f55313972e5240fa3a669a3fe350c3f13/MediaPortal/Source/Extensions/MetadataExtractors/OnlineLibraries/Wrappers/TvDbWrapper.cs#L70">load the list of available languages</a> which can cause a 2 minute delay if TheTvDb is unreachable.</p>
<p><a href="https://forum.team-mediaportal.com/threads/mp2-server-exe-automatic-start-of-windows-service-fails.137041/#post-1226557">https://forum.team-mediaportal.com/threads/mp2-server-exe-automatic-start-of-windows-service-fails.137041/#post-1226557</a> </p>
<p>This is notably the case for the TvDbWrapper which attempts to <a href="https://github.com/MediaPortal/MediaPortal-2/blob/b080ab9f55313972e5240fa3a669a3fe350c3f13/MediaPortal/Source/Extensions/MetadataExtractors/OnlineLibraries/Wrappers/TvDbWrapper.cs#L70">load the list of available languages</a> which can cause a 2 minute delay if TheTvDb is unreachable.</p>
<p><a href="https://forum.team-mediaportal.com/threads/mp2-server-exe-automatic-start-of-windows-service-fails.137041/#post-1226557">https://forum.team-mediaportal.com/threads/mp2-server-exe-automatic-start-of-windows-service-fails.137041/#post-1226557</a> </p>