Coder Social home page Coder Social logo

filebot / filebot-node Goto Github PK

View Code? Open in Web Editor NEW
60.0 8.0 13.0 9.09 MB

Run and monitor filebot commands remotely

Home Page: https://www.filebot.net/

License: GNU General Public License v3.0

JavaScript 79.43% HTML 1.00% CSS 2.59% Shell 15.75% Makefile 0.94% Groovy 0.29%

filebot-node's Introduction

FileBot Node

Github Releases GitHub release

Introduction

FileBot Node is a server-side Node.js application that allows you to make filebot calls via a straight-forward ExtJS web application.

FileBot Node

User Manual

FileBot Node is available as Synology package via the FileBot Package Source and as generic Linux package for all other devices. Please refer to the How To manual if you need help getting started.

Installation

Add the following Package Source to Synology DSM ► Package Center ► Settings ► Package Sources:

https://get.filebot.net/syno/

FileBot Node will work on any Linux device that can run filebot and node but some tinkering may be required. You will need to download and unpack the tar package and start the node service yourself. See start.sh for details.

A Docker image is available here.

Notes

  • Node.js is required for the server-side process
  • System authentication is implemented for Synology DSM and QNAP NAS

Discussion

Please visit the FileBot Forums if you need help with setting things up.

filebot-node's People

Contributors

dependabot[bot] avatar fisero avatar rednoah avatar s4muel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

filebot-node's Issues

start needs to be updated for node 8.0

the function max-executable-size is deprecated in node 8.0.0 and above and has been replaced
by max_old_space_size.
users trying to run filebot-node on a system with newer node versionget an error stating node -max-executable-size=xx is an invalid option.
if this can be documented it will help new users.

custom port

would love to be able to define a custom port that this runs on.

Filebot-node: "command not found"

Hey!

I have been using the FileBot Amc for a long time now and it's great! Thank you for that, first of all! :)

I have recently acquired a Synology DS216+II. So far everything seems to be running smoothly, but I am stuck in the FileBot Node. It won't seem to run.
I have installed the Unofficial Java Installer, the FileBot and of course the FileBot Node. It won't run and it gives me an Error window:

screen shot 2017-02-15 at 20 04 26

I have checked port 5452/5453, nothing seems to be wrong there. Here's the log, with the "command not found" at line 28:

screen shot 2017-02-15 at 19 57 32

Thanks in advance!
Simon-LJ

Error: spawn EACCES

I have an error on package opening:
01

My firewall is open using the filenode firewall profile.

Log file is:

ENVIRONMENT { CONTENT_TYPE: 'application/x-www-form-urlencoded; charset=UTF-8',
  GATEWAY_INTERFACE: 'CGI/1.1',
  USER: 'admin',
  FILEBOT_CMD_UID: '1024',
  HTTP_X_REQUESTED_WITH: 'XMLHttpRequest',
  FILEBOT_NODE_HTTPS_CRT: '/usr/syno/etc/ssl/ssl.crt/server.crt',
  FILEBOT_NODE_HTTPS_KEY: '/usr/syno/etc/ssl/ssl.key/server.key',
  REMOTE_ADDR: '192.168.1.6',
  OLDPWD: '/usr/syno/synoman/webman/modules/PkgManApp',
  QUERY_STRING: '',
  HTTP_USER_AGENT: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/601.4.4 (KHTML, like Gecko) Version/9.0.3 Safari/601.4.4',
  DOCUMENT_ROOT: '/usr/syno/synoman',
  REMOTE_PORT: '59985',
  SYNOPKG_DSM_VERSION_MAJOR: '5',
  FILEBOT_NODE_AUTH: 'SYNO',
  SYNOPKG_PKG_PROGRESS_PATH: '/tmp/install_progress_filebot-node',
  HTTP_ACCEPT: '*/*',
  SERVER_SIGNATURE: '',
  CONTENT_LENGTH: '306',
  SYNOPKG_TEMP_LOGFILE: '/volume1/@tmp/56BF544385422E6C',
  SCRIPT_FILENAME: '/usr/syno/synoman/webman/modules/PkgManApp/PkgSynoMan.cgi',
  SYNOPKG_PKGDEST: '/volume1/@appstore/filebot-node',
  SYNOPKG_USERNAME: 'admin',
  HTTP_HOST: '192.168.1.104:5000',
  SYNOPKG_DSM_ARCH: '88f6282',
  FILEBOT_NODE_HTTP_PORT: '5452',
  SYNOPKG_PKG_STATUS: 'INSTALL',
  REQUEST_URI: '/webman/modules/PkgManApp/PkgSynoMan.cgi',
  SERVER_SOFTWARE: 'Apache',
  HTTP_CONNECTION: 'keep-alive',
  USERNAME: 'admin',
  FILEBOT_NODE_HTTPS_PORT: '5453',
  MOD_X_SENDFILE_ENABLED: 'yes',
  HTTP_COOKIE: 'PHPSESSID=b92hh374efkmrnnnes3qbu9sq4; id=aMfw2hQMO1dGoACH9N00040; plushContainerWidth=100%25; plushMultiOps=1; plushNoTopMenu=0; sds_login_time_format=24h; stay_login=0',
  SYNOPKG_DSM_VERSION_MINOR: '2',
  FILEBOT_NODE_HOST: '0.0.0.0',
  PATH: '/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin',
  HTTP_ACCEPT_LANGUAGE: 'fr-fr',
  FILEBOT_NODE_HTTP: 'YES',
  HTTP_REFERER: 'http://192.168.1.104:5000/webman/index.cgi',
  SYNOPKG_PKGVER: '0.1.7',
  HTTP_X_SYNO_TOKEN: 'aMG5sLaKYKHaA',
  SERVER_PROTOCOL: 'HTTP/1.1',
  HTTP_ACCEPT_ENCODING: 'gzip, deflate',
  SCRIPT_URI: 'http://192.168.1.104:5000/webman/modules/PkgManApp/PkgSynoMan.cgi',
  FILEBOT_CMD_GID: '101',
  FILEBOT_NODE_HTTPS: 'YES',
  SCRIPT_URL: '/webman/modules/PkgManApp/PkgSynoMan.cgi',
  REQUEST_METHOD: 'POST',
  SERVER_ADDR: '192.168.1.104',
  SERVER_ADMIN: 'admin',
  FILEBOT_NODE_CLIENT: '',
  FILEBOT_CMD: 'filebot',
  PWD: '/volume1/@appstore/filebot-node',
  HTTP_ORIGIN: 'http://192.168.1.104:5000',
  SYNOPKG_DSM_LANGUAGE: 'fre',
  SERVER_PORT: '5000',
  SCRIPT_NAME: '/webman/modules/PkgManApp/PkgSynoMan.cgi',
  SYNOPKG_PKGDEST_VOL: '/volume1',
  SYNOPKG_PKGNAME: 'filebot-node',
  FILEBOT_CMD_CWD: '/volume1',
  SERVER_NAME: '192.168.1.104',
  SYNOPKG_DSM_VERSION_BUILD: '5644' }
USER { UID: 1024, GID: 101 }
filebot-node listening at http://0.0.0.0:5452
filebot-node listening at https://0.0.0.0:5453
AUTH_CACHE: {"id=aMfw2hQMO1dGoACH9N00040":"admin"}

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn EACCES
    at errnoException (child_process.js:1011:11)
    at Process.ChildProcess._handle.onexit (child_process.js:802:34)

Problem starting node

Hi guys,
i have a Synology 112j and i have a problem
When i open filebot node i get

1

and when i press execute i get

filebot -script 'fn:amc' /volume1/download/ --output /volume1/download/ --action duplicate -non-strict --conflict auto --lang en --def 'music=y' 'unsorted=y' 'subtitles=ell' 'deleteAfterExtract=y' 'excludeList=.excludes' --log all --log-file '/volume1/@appstore/filebot-node/data/filebot.log'


/usr/local/bin/filebot: line 65: java: command not found

[Process error]

any ideas would be appreciated

Crash when pointing to single file

I cannot run FB on the entire directory so sometimes I need to point it at a single file, well this crashes the dropdown search, but FB processes the file just fine.

GET: /folders?q=%2Fdata%2Ffile.mkv
fs.js:914
  return binding.readdir(pathModule._makeLong(path), options.encoding);
                 ^

Error: ENOTDIR: not a directory, scandir '/data/file.mkv'
    at Object.fs.readdirSync (fs.js:914:18)
    at listFolders (/usr/local/filebot-node/server/app.js:238:12)
    at handleRequest (/usr/local/filebot-node/server/app.js:303:20)
    at Server.server (/usr/local/filebot-node/server/app.js:533:16)
    at emitTwo (events.js:106:13)
    at Server.emit (events.js:194:7)
    at parserOnIncoming (_http_server.js:565:12)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)

After upgrading to 0.2.9 on Synology getting parsing failed errors

org.codehaus.groovy.control.CompilationFailedException: parsing failed
org.codehaus.groovy.control.CompilationFailedException: parsing failed
	at org.apache.groovy.parser.antlr4.AstBuilder.createParsingFailedException(AstBuilder.java:4538)
	at org.apache.groovy.parser.antlr4.AstBuilder.convertException(AstBuilder.java:416)
	at org.apache.groovy.parser.antlr4.AstBuilder.buildAST(AstBuilder.java:426)
	at org.apache.groovy.parser.antlr4.Antlr4ParserPlugin.buildAST(Antlr4ParserPlugin.java:58)
	at net.filebot.cli.ScriptShell.evaluate(Unknown Source)
	at net.filebot.cli.ScriptShell.runScript(Unknown Source)
	at net.filebot.cli.ArgumentProcessor.runScript(Unknown Source)
	at net.filebot.cli.ArgumentProcessor.run(Unknown Source)
	at net.filebot.Main.main(Unknown Source)
Caused by: java.lang.ExceptionInInitializerError

Nothing to do

If I start filebot node it doesn't find anything,
If I than copy the command that has been generated into my shell and execute it there, it works.
I reinstalled filebot and searched on the internet for a solution, but there is nothing.

QNAP package

Can you make this compatible with QNAP as well.

strange logging

Whats up with my logging pls?

Locking /volume1/@appstore/filebot-node/filebot.log
Ignore short: /volume1/MOVIES/COUCH/Collide.2016.720p.BluRay.x264-ROVERS[rarbg]/Collide.2016.720p.BluRay.x264-ROVERS.mkv
Ignore short: /volume1/MOVIES/COUCH/The.Girl.on.the.Train.2016.720p.BluRay.x264-SPARKS[rarbg]/The.Girl.on.the.Train.2016.720p.BluRay.x264-SPARKS.mkv
Done ヾ(@⌒ー⌒@)ノ

Keep getting this whole day..

Not finding subtitle for a movie that is on OpenSubtitle website with same name.

Hello,

I just installed your program and it found some subs.

But it has to find more :(

thats the logging screenshot , dunno where to find the actual log file.
image

It should find a sub because this is OS link : http://www.opensubtitles.org/nl/search/sublanguageid-dut/idmovie-145852

Star.Wars.Episode.VII.The.Force.Awakens.2015.720p.BluRay.x264-Replica this is the file that has been used to make the sub.

my filebot settings:

image

Custom port is not obeyed by the /filebot endpoint

I have defined a custom port via the -e FILEBOT_NODE_HTTP_PORT='####' command in my docker run command but the /filebot/ url is still forwarding requests to the default 5453 port. Naturally all of these will end up 404.

Filebot add a sub folder in output destination

Hi there,

I was wondering if it's possible to indicate to Filebot-node to not create subfolder in destination output ?

If I set "Documents\PersonnalFolder" in output destination, it will always add "TV Shows" or "Movies" subfolder in the destination output and not directly in the folder I targeted.

Synology DSM 6.1

Hello, will there be an update for fileBot Node to support Synology DSM 6.1?

In the Paket-Centre the Paket-Status is offline, if you start it anyway it drops an Error called "Error"

Thanks in before

Synology DSM 6.0 - Can't start FileBot-Node Service

Unable to start Filebot-Node service on DSM 6.0 (which I just loaded today). Never used filebot on this system before. Installation today also installed FileBot and Node.js 0.12 services, which are running. I've attached a screenprint showing the error.

filebot-node

error in log

Hey,

Locking /volume1/@appstore/filebot-node/filebot.log
Illegal Argument: java.nio.file.NoSuchFileException: /usr/syno/synoman/webapi/subtitles=nld (subtitles=nld)
Ignore small: /volume1/MOVIES/COUCH/Resident.Evil.The.Final.Chapter.2016.1080p.BluRay.H264.AAC-RARBG/RARBG.mp4
Fetch subtitles for [/volume1/MOVIES/COUCH/Resident.Evil.The.Final.Chapter.2016.1080p.BluRay.H264.AAC-RARBG]
Get [Dutch] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Looking up subtitles by name via OpenSubtitles

Any idea?

DSM 6.2.4 broke things. No output for any commands, won't show tasks

Upgraded to 6.2.4, was working on 6.2.3.

Configure task, hit Execute, nothing happens (no output in window, no task in bottom left tab. Same with Dry Run. Clear Cache, System Info are the same. Uninstalled FB, FB Node and Node.js, re-installed same, with no luck.

Log file only shows:

2021-03-10T13:20:27-0800 /usr/syno/synoman/webman/modules/authenticate.cgi
{
  HTTP_COOKIE: 'id=null',
  HTTP_X_SYNO_TOKEN: 'xSAjOl1FfFyWE',
  REMOTE_ADDR: 'x.x.x.x'
}

being repeated, once per second.

Rerooting the app on / instead of /filebot/ ?

Hi there - I'd like to reroot filebot-node so that I can run it on the root of a domain rather than under the /filebot/ pathing. Yes, yes, I could set up a reverse proxy to remap all of this, but there are various reasons that I'd prefer not to mess with it.

Am I reading correctly that the logic is that such that I could use a FILEBOT_NODE_CLIENT set to / rather than /filebot/ to get this to happen? I'm reading around in server-nodejs/app.js -- it looks like that trickles down and the PUBLIC_HTML vars get built out of it.

Docker vulnerabilities

Is it possible to get an updated docker image?

A trivy scan on the current latest image shows:

rednoah/filebot:node (ubuntu 20.04)
===================================
Total: 359 (UNKNOWN: 0, LOW: 86, MEDIUM: 271, HIGH: 2, CRITICAL: 0)

Thanks!

DSM 7 - Filebot-node always failed

hi,

i migrate to DSM 7
with sysinfo from button tools, i have this config

`filebot -script 'fn:sysinfo' --log-file '/var/packages/filebot-node/var/filebot.log'


FileBot 4.9.4 (r8757)
JNA Native: 6.1.0
MediaInfo: 21.03
Tools: fpcalc/1.5.0 p7zip/16.02 unrar/5.70 ffprobe/4.1.6
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2021-08-02 (r761)
Groovy: 3.0.8
JRE: OpenJDK Runtime Environment 16.0.2
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 8 Core / 8 GB Max Memory / 34 MB Used Memory
OS: Linux (amd64)
HW: Linux NAS_HOME 4.4.180+ #41890 SMP Thu Jul 15 03:42:45 CST 2021 x86_64 GNU/Linux synology_v1000_1821+
CPU/MEM: AMD Ryzen Embedded V1500B [MemTotal: 33 GB | MemFree: 29 GB | MemAvailable: 31 GB | SwapTotal: 22 GB | SwapFree: 22 GB]
STORAGE: ext4 [/] @ 947 MB | btrfs [/volume1] @ 9 TB
USER: FileBot
DATA: /var/packages/filebot/var/data/106247
Package: SPK
License: UNREGISTERED
Done ヾ(@⌒ー⌒@)ノ


[Process completed]`

i have a registered key

but when i launched Execute/Dry Run,
i have this script
filebot -script 'fn:amc' /volume1/video/_downloads --output /volume1/video --action hardlink -non-strict --order Airdate --conflict auto --lang en --def 'unsorted=y' 'subtitles=fra' 'skipExtract=y' 'exec=synoindex -R {quote folder}' 'seriesFormat=series/{n}/Saison {s.pad(2)}/{n} - {s00e00} - {t}' 'animeFormat=anime/{n}/Saison {s.pad(2)}/{n} - {s00e00} - {t}' 'movieFormat=films/{primaryTitle}.{y}' 'excludeList=.excludes' --apply refresh --log info --log-file '/var/packages/filebot-node/var/filebot.log'

and this log
`Run script [fn:amc] at [Tue Aug 31 00:06:22 CEST 2021]
Parameter: unsorted = y
Parameter: subtitles = fra
Parameter: skipExtract = y
Parameter: exec = synoindex -R {quote folder}
Parameter: seriesFormat = series/{n}/Saison {s.pad(2)}/{n} - {s00e00} - {t}
Parameter: animeFormat = anime/{n}/Saison {s.pad(2)}/{n} - {s00e00} - {t}
Parameter: movieFormat = films/{primaryTitle}.{y}
Parameter: excludeList = .excludes
Argument[0]: /volume1/video/downloads
Use excludes: /volume1/video/.excludes (538)
.
.
.
list of elements from excludes file
.
.
.
No files selected for processing
Done ¯_(ツ)


[Process completed]`

but in your app, it's always failed
and the schedule option show an popin error synology
image_2021-08-31_002528
image_2021-08-31_002644

if i remove a file in my excludes file, filebot not rescan the file in my folder

thx for any answers

Filebot-Node An illegal reflective access operation has occurred

I keep getting this:

Locking /volume1/@appstore/filebot-node/data/filebot.log
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/volume1/@appstore/filebot/jar/groovy.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.