Tools and other software FileBot - The ultimate TV Renamer and Subtitle Downloader (4 Viewers)

kiwijunglist

Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    Thanks :D

    I just learnt something I see you used %*
    I had been doing the following
    Code:
    REM ######################################
    REM # Turn the command line arguments into a
    REM # single string called path_and_filename
    REM ######################################
     
    SET AA=%~1
    SET AB=%~2
    SET AC=%~3
    SET AD=%~4
    SET AE=%~5
    SET AF=%~6
    SET AG=%~7
    SET AH=%~8
    SET AI=%~9
    SHIFT
    SHIFT
    SHIFT
    SHIFT
    SHIFT
    SHIFT
    SHIFT
    SHIFT
    SHIFT
    SET AJ=%~1
    SET AK=%~2
    SET AL=%~3
    SET AM=%~4
    SET AN=%~5
    SET AO=%~6
    SET AP=%~7
    SET AQ=%~8
    SET AR=%~9
    SHIFT
    SHIFT
    SHIFT
    SHIFT
    SHIFT
    SHIFT
    SHIFT
    SHIFT
    SHIFT
    SET AS=%~1
    SET AT=%~2
    SET AU=%~3
    SET AV=%~4
    SET AW=%~5
    SET AX=%~6
    SET AY=%~7
    SET AZ=%~8
    SET A_=%~9
     
    set "TSRecording=%AA% %AB% %AC% %AD% %AE% %AF% %AG% %AH% %AI% %AJ% %AK% %AL% %AM% %AN% %AO% %AP% %AQ% %AR% %AS% %AT% %AU% %Av% %AW% %AX% %AY% %AZ% %A_%"
     
    REM ######################################
    REM # Remove Spaces at the end of the string
    REM ######################################
     
    set str=%TSRecording%
     
    set str=%str%##
    set str=%str:                ##=##%
    set str=%str:        ##=##%
    set str=%str:    ##=##%
    set str=%str:  ##=##%
    set str=%str: ##=##%
    set str=%str:##=%
     
    set TSRecording=%str%

    on my HTPC Java wasn't part of the path environment, so I had to add some additional lines of code to filebot.cmd which located the java installation directory. It seems java install by default doesn't set path.
     
    Last edited:

    rednoah

    Portal Pro
    December 18, 2011
    83
    58
    Have you looked into my collection of useful FileBot scripts yet? If you're using filebot from cmdline, on a headless machine or just for automated downloading & processing, light-weight artwork fetcher, etc these scripts might be of interest:

    Script Index:

    You can use these out of the box, or modify them to your needs, or build something different entirely in which case I'd like to hear from you. ;)
     

    rednoah

    Portal Pro
    December 18, 2011
    83
    58
    FileBot 3.2 Get it here!

    This release brings lots of tweaks for episode/movie auto-detection and fully automated processing. The IMDb scraper is fixed and http connections will connect through the system proxy by default. Drag-n-drop on Linux now handles GVFS URIs as well and maps them to the ~/.gvfs filesystem abstraction via libgio.

    Features:
    * Much more robust and reliable movie detection
    * Improved movie/series detection and auto-selection
    * Transliteration-aware candidate ranking (e.g. 你好 VS ni hao => 100% match)
    * New and improved IMDb scraper
    * Support drag-n-drop from GVFS locations via ~/.gvfs filesystem abstraction

    Changes / Fixed Issues:
    * Use the system proxy by default
    * Replace -clear option with 2 options -clear-cache and -clear-prefs
    * {d} binding for movie release date or episode airdate
    * {es} convenience binding for multi-episode numbers
    * Make the revert function more obvious via a new button
    * Fixed various GTK LaF issues

    Chocolatey Windows Package available:
    Install and keep up to update via "cinst filebot" => http://chocolatey.org/packages/filebot/

    Noteworthy Scripts:
    New: Revert Renamed Files to their Original Names
    Revert files to their original names using the internal history.
    => http://filebot.sourceforge.net/forums/viewtopic.php?f=4&t=5#p2485

    New: MyEpisodes.com Integration
    Automatically add shows and tick episodes on your MyEpisodes account.
    => http://filebot.sourceforge.net/forums/viewtopic.php?f=4&p=2629#p2629

    Update: µTorrent Integration
    * Automatically tick new episodes as 'aquired' on MyEpisodes
    * Video Tutorial for standalone cmdline usage
    * ut_state_allow condition to better support running on state change
    * Support passing in formats via cmdline
    => http://filebot.sourceforge.net/forums/viewtopic.php?f=4&t=215&p=1561#p1561

    Merry Xmas everyone!~
     

    rednoah

    Portal Pro
    December 18, 2011
    83
    58
    Works for me.

    Input:
    Code:
    filebot -rename "Discovery Channel Documentaries S00E37.mkv"  --format "{n} - {s00e00} - {t}" --action test

    Output:
    Code:
    Filename pattern: [1,00] SxE, [0,00] CWS
    Rename episodes using [TheTVDB]
    Auto-detected query: [Discovery Channel Documentaries]
    Fetching episode data for [Discovery Channel Documentaries]
    Stripping invalid characters from new path: Discovery Channel Documentaries - S00E37 - Reign of the Dinosaurs: Evolution's Winners
    [TEST] Rename [E:\testdata\Discovery Channel Documentaries S00E37.mkv] to [Discovery Channel Documentaries - S00E37 - Reign of the Dinosaurs Evolution's Winners.mkv]
    Processed 1 files
     

    rednoah

    Portal Pro
    December 18, 2011
    83
    58
    FileBot 3.3 Get it here!

    This release brings a brand new Music Mode using AcoustID. There's also lots of enhancements in movie, episode and subtitle processing as well as various scraper fixes.

    Features:
    * New Music Mode using AcoustID audio-fingerprints and MusicBrainz info
    * Support movie detection via tt1234567 patterns in the filename
    * Improved handling 1e01 and 101 and S01E01-E02 SxE patterns
    * Improved Subtitle<->Episode matching

    Changes / Fixed Issues:
    * Fix Subscene and IMDb scraper issues
    * Value of {s00e00} now uses the S01E01-E02 pattern for multi episodes
    * Value of {imdbid} now includes the tt prefix
    * Added {tmdbid} binding
    * Added .m2ts as video extension
    * More caching to reduce load on the various webservices

    Update: µTorrent Integration
    * Automatically process music
     

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    Comedy Central Stand Up Specials S0E73.avi

    http://thetvdb.com/index.php?tab=episode&seriesid=246491&seasonid=459721&id=4480626&lid=7

    Is renamed as

    Comedy Central Stand Up Secials - S00E16 Eddie Murphy: Delerious.avi

    Instead of

    Comedy Central Stand Up Secials - S00E73 - Aziz Ansari Dangerously Delicious.avi



    Untitled-2.jpg
     
    Last edited:

    rednoah

    Portal Pro
    December 18, 2011
    83
    58
    Works for me, I guess you just edited TheTVDB and added it, so FileBot is using old data from it's cache where S00E73 didn't exist yet. With FileBot 3.3 TheTVDB data may be cached for up to two weeks to reduce load on TheTVDB (which kinda had finanical troubles last time I checked).

    Run with -clear-cache if you just edited TheTVDB so you get the latest data.
     

    Users who are viewing this thread

    Top Bottom