Set Comskip to ignore certain channel? (1 Viewer)

Jay_UK

Test Group
  • Team MediaPortal
  • October 6, 2009
    1,781
    283
    Derby
    Home Country
    United Kingdom United Kingdom
    Hi there,

    You could try something like this (just quickly typed it):

    you will need to specify the path to the location of comskip
    @echo off
    REM
    REM place the channel names within the brackets that you do not want to run Comskip for
    REM We will loop through each name looking to see if it exists in the recording/filename
    REM

    FOR %%A IN (itv bbc bbc2) DO (
    echo "%1" | findstr /I /C:"%%A" 1>nul 2>&1
    if errorlevel 1 (

    REM
    REM No match found
    REM
    ) else (
    REM
    REM Match found - so bypassing comskip and jumping straight to the end
    REM
    goto end
    )
    )

    REM
    REM Lets run comskip
    REM
    "c:\program files (x86)\comskip\comskip.exe" "%1"

    :End




    Cheers,

    J.
     

    Jay_UK

    Test Group
  • Team MediaPortal
  • October 6, 2009
    1,781
    283
    Derby
    Home Country
    United Kingdom United Kingdom
    Yep :)

    Another option is to have a separate file with the channel names in (one channel per line)

    Call the file something like: exclude_from_comskip.txt

    Then modify the script above to be:

    For /f %%A in (exclude_from_comskip.txt).....

    J.
     

    gonzo90017

    Portal Pro
    September 3, 2012
    238
    26
    25
    Home Country
    United States of America United States of America
    Thanks for the info, i'm about to try it out. One question. This is what my channel list looks like. I decide to include the channel # in front of the channel name. So should I include the # or just the name?
     

    Attachments

    • Channels.jpg
      Channels.jpg
      221 KB

    Jay_UK

    Test Group
  • Team MediaPortal
  • October 6, 2009
    1,781
    283
    Derby
    Home Country
    United Kingdom United Kingdom
    Hi there,

    Just the channel name.

    Basically within Mediaportal (its configurable) you have a list of variables that can be used to produce the filename of the recording (for example channel name - but not channel number). Therefore whatever "channel name" is within Mediaportal, then this is part of the filename.

    This filename is then passed as the %1 variable in the script.

    All my script is doing is to check if the list of your excluded channel names (or part of) is within the passed filename. If it is, then it simpy goes to the end of the script (bypassing comskip)

    J.
     

    Users who are viewing this thread

    Top Bottom