Uploaded image for project: 'MediaPortal 2'
  1. MediaPortal 2
  2. MP2-683

Avoid making web requests during OnlineMatcherService init

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.1.2
    • 2.1
    • Metadata Extractors
    • 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>&nbsp;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&lt;/a&gt;&nbsp;&lt;/p>

      Attachments

        Activity

          People

            brownard Brownard
            brownard Brownard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: