[Finished] SlimTvService: Only refresh media library for single file (1 Viewer)

MrTechno

Retired Team Member
  • Premium Supporter
  • February 27, 2011
    1,256
    511
    London
    Home Country
    United Kingdom United Kingdom
    SlimTvService refreshes the recorded TV media source when a recording finishes, but the refresh level is right at the top i.e. the whole media source even though only a single item (TS / XML files) have changed:

    Code:
    [2017-03-04 10:10:11,826] [52459572] [scheduler thread] [INFO ] - SlimTvService: RecordingEnded: Z:\ServerFolders\Recorded TV\Power Rangers_ Dino Supercharge\Power Rangers_ Dino Supercharge - 20170304_1.ts
    [2017-03-04 10:10:11,827] [52459573] [scheduler thread] [INFO ] - ImporterWorker: Refresh for path '{e88e64a8-0233-4fdf-ba27-0b44c6a39ae9}:///Z:/ServerFolders/Recorded TV/', MediaCategories: 'Movie,Series,Video', including subdirectories requested...

    The trigger should be restricted to just that file.
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Your findings are correct: on recording start/end the full media source is imported. This should be fast enough as all other files are unchanged and should be skipped.

    The technical reason for this it the kind of media source import handling: it always starts at root of configured source, selects the required MetaDataExtractors, processes and saves all directories recursively, and processes the contained files.

    So the problem is to start with a "deep path" to a single file, it doesn't know or process all parent steps, folders and MDE selection. This would require some major code changes, so the current way was considered as best compromise.
     

    MrTechno

    Retired Team Member
  • Premium Supporter
  • February 27, 2011
    1,256
    511
    London
    Home Country
    United Kingdom United Kingdom
    That makes sense. The import problems are probably specific to my setup where the running import hasn't finished yet.
     

    Users who are viewing this thread

    Top Bottom