Question about TV-Server thumb creation (1 Viewer)

megahorst

Super User
  • Team MediaPortal
  • Super User
  • July 8, 2006
    879
    259
    Germany Germany
    Country flag
    Hello!
    While having a look into the TV server logs I have seen that the server is creating a lot of thumbs after it has been started.
    So far so good. But the thumbs that it is trying to create are from recordings that are very very old.

    Example:
    Code:
    [2017-08-12 10:39:04,565] [Log    ] [20       ] [INFO ] - ThumbProcessor.DoWork: Creating thumb for D:\Recordings\Kommissar Wallander\Kommissar Wallander - 2015-04-21-23_35 - Mörder ohne Gesicht.ts
    Checking the filesystem shows that this file is there since the time when the movie was recorded.
    upload_2017-8-12_11-30-19.png

    Is this the expected behaviour?

    One other thing that I have found:
    There is an error in the log because the server is trying to delete a thumb and the filename of the thumb is to long.
    Code:
    [2017-08-12 10:39:04,603] [Log    ] [TVService] [ERROR] - RecordingFileHandler: Error while deleting a recording from disk: Der angegebene Pfad und/oder Dateiname ist zu lang. Der vollständig qualifizierte Dateiname muss kürzer als 260 Zeichen und der Pfadname kürzer als 248 Zeichen sein.
    But this file is not there on the disk.
     

    mm1352000

    Development Group
  • Team MediaPortal
  • September 1, 2008
    21,571
    8,218
    New Zealand New Zealand
    Country flag
    Hello

    While having a look into the TV server logs I have seen that the server is creating a lot of thumbs after it has been started.
    The log entry is a little misleading. It does say "creating...", but actually TV Server only creates a thumbnail when one doesn't already exist.
    (At startup TV Server checks that thumbnails exist for all recordings. That's where the log entry comes from.)

    Checking the filesystem shows that this file is there since the time when the movie was recorded.
    Exactly. As I said above, TV Server only creates if a thumbnail doesn't already exist. They're not recreated.
     

    megahorst

    Super User
  • Team MediaPortal
  • Super User
  • July 8, 2006
    879
    259
    Germany Germany
    Country flag
    Thx @mm1352000!
    Do you have any idea why the server wants to delete the thumb that is not thee anymore?
     

    mm1352000

    Development Group
  • Team MediaPortal
  • September 1, 2008
    21,571
    8,218
    New Zealand New Zealand
    Country flag
    Do you have any idea why the server wants to delete the thumb that is not thee anymore?
    Well, I can only guess like you!
    1. Presumably in the past you had such a recording.
    2. At some time you tried to delete it.
    3. When TV Server deletes a recording, it also deletes the thumbnail.
    4. TV Server will fail to delete any file - recording, thumbnail or otherwise - with name longer than ~260 characters. This is a Microsoft .NET/Windows limitation.
    5. The name of that recording was longer than 260 characters, so TV Server will [always!] fail to delete it.
    6. When TV Server fails to delete a recording, it adds the recording to a "retry" list.
    7. What you're seeing in the log is TV Server trying to remove all recordings that are in the retry list.
    8. Because of (5) and (6), the recording will never be successfully deleted and will stay in the retry list forever.
    9. Maybe the files don't exist because you manually deleted the recording and thumbnail.
    10. TV Server will continue to try to delete recordings even when the files don't exist because the database entry/record still exists.
    If I were you I would just ignore it. It's [a little] annoying, but completely harmless.
    If it really bothers you, delete the recording from the DB with a third party DB access/management tool.
     

    megahorst

    Super User
  • Team MediaPortal
  • Super User
  • July 8, 2006
    879
    259
    Germany Germany
    Country flag
    Thx @regeszter and @mm1352000!
    I have deteted the entry out of the "pendingdeletion" table.
    The "remove invalid entries" feature did not do the trick.
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    J TV Server setup question Newcomers Forum 0
    Rob Hexenmeister Skinning Online Videos question OnlineVideos 2
    Rob Hexenmeister Quick question - skinning MyPics General Support 7
    Lichloathe Trakt for MP2 question General 7
    A Question about Google Drive sync Feature Requests 3
    C Looking at transitioning from SageTV, but have some questions Newcomers Forum 1
    X Question about Google Token activation of Youtube MediaPortal 1 Talk 0
    P Another Fast Forward/Rewind/Skip/Replay Question General 3
    doskabouter Skin question Skins and Plugins Installer (MPEI) 1
    S Newbie questions Newcomers Forum 17
    M Tuning channels with quad tuner question General 6
    ajs [Help Us!] Extensions plugin question MediaPortal 1 8
    J Trying out MP 1 again, have some questions and a few log files Newcomers Forum 5
    J Question about thumbnail decorations MediaPortal 1 Talk 0
    D A couple of DVD questions General 2
    J A question regarding Slingbox-like capability online General 3
    U 2 questions Newcomers Forum 1
    J silly question: where do I add my login details!! OnlineVideos for MediaPortal 2 5
    BlueMax1916 Titanium Extended Theme Screensaver Question Skins and Design 6
    M 1.25.0 Tv Server Configuration Italian Dvb-t2 test channel preview error Television (MyTV frontend and TV-Server) 2
    M TV Server Preview Window is blank, sounds works Television (MyTV frontend and TV-Server) 3
    catalpa ...immer mal wird der Server abgekoppelt :( Allgemeines Support- und Diskussionsforum 0
    A Keine Verbindung mit Kodi auf Server Allgemeines Support- und Diskussionsforum 11
    CyberSimian Unhandled exception in TV Server TV-Server 0
    Grisu002 Failed to startup - TV Server funktioniert nicht Allgemeines Support- und Diskussionsforum 0
    Top Bottom