Tools and other software FileBot - The ultimate TV Renamer and Subtitle Downloader (1 Viewer)

rednoah

Portal Pro
December 18, 2011
83
58
FileBot only runs on Java.

Like I said, you can edit the script to only do what you want. But there is no cmdline option for that if that's what you mean. You can skip UI confirmations by adding -non-strict.
 

kiwijunglist

Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    If I was to edit the script how would I use the custom script with filebot?
    eg. where to save / how to invoke?
     
    Last edited:

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    Thanks will update my script now.[DOUBLEPOST=1351949131][/DOUBLEPOST]btw - I'm pretty sure all the fanart images on thetvdb are jpg, but in your example usage you wrote png
     

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    Is it possible to download the landscape.jpg image

    I tried substituting
    fetchSeriesBanner(_args.output, tvshows[0], 'fanart', null, null, null)
    with
    fetchSeriesBanner(_args.output, tvshows[0], 'landscape', null, null, null)

    and fetchSeriesBanner(_args.output, tvshows[0], 'tvthumb', null, null, null)

    I went through lib.htpc but hit a brick wall

    ok the following seem to work
    fetchSeriesFanart(_args.output, tvshows[0], 'tvthumb', null, null)

    Thank you so much :D
     
    Last edited:

    rednoah

    Portal Pro
    December 18, 2011
    83
    58
    From TheTVDB:
    BannerType
    This can be poster, fanart, series or season.

    Actually you can get artwork from FanartTV as well, check the fetchSeriesFanart() function.
     

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    Yup I've got it pretty much sorted.

    When I ran filebot from the command line I didn't get any feedback as to whether it had found the tvseries, or the tvseries didn't exist, or if thetvdb was unavailable etc, so I just did a timeout for 8 seconds, and if the file wasn't downloaded after 8 seconds, then I make the assumption that the image is not available for that particular show.
     

    rednoah

    Portal Pro
    December 18, 2011
    83
    58
    The script never blocks, if the cmd doesn't terminate it's running and doing something, if something is wrong you'll get errror logging. If your internet is slow it could easily take sometime to refresh it's local search index. Also don't kill / Ctrl-C it while filebot is running, otherwise it'll have to refresh it's caches. So the first time around (or after you killed it) it can take a bit to run that script, the second time will be instant.
     

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    Normally I can do something like this

    Code:
    call "C:\FileBot\FileBot.exe" filebot -script "C:\FileBot\grab-fanart.groovy" --q "%ShowName%" --output "C:\Temp\%ShowName%-fanart.jpg"
    if exist "C:\Temp\%ShowName%-fanart.jpg" (
       echo success
       ) else (
       echo failure
       )

    However this will never work because it seems like filebot.exe launches another process to find the fanart then completes striaght away, so the script moves on to the next command before the fanart is downloaded.
     

    Users who are viewing this thread

    Top Bottom