Using Filebot as API

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
usernames_are_hard
Posts: 2
Joined: 05 Nov 2013, 09:04

Using Filebot as API

Post by usernames_are_hard »

I thought I would re-ask a question as it has been a few years since last asked (as far as I can find):

http://sourceforge.net/p/filebot/discus ... /29a68cdd/

Ideally, I would like to send a remote request from my Media Centre based on a filename, and then use the returned results to locally rename the file and refresh my Movie jukebox.

Does this functionality exist or is it still the same as it was back in 2010?

Thanks

Shaun
User avatar
rednoah
The Source
Posts: 22994
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Using Filebot as API

Post by rednoah »

You mean webservice, not API, and nope, that's not planned neither since you can run filebot locally any any reasonable linux box. Or just mounting the remote filesystem into the local machine. This round-about way of yours just doesn't feel like a good idea.

Nowadays you would run your own groovy script with filebot which answers http requests and thus make your own web service:

If I was gonna do it DIY style I'd look into this first:
http://www.kellyrob99.com/blog/2013/03/ ... p-servers/
:idea: Please read the FAQ and How to Request Help.
usernames_are_hard
Posts: 2
Joined: 05 Nov 2013, 09:04

Re: Using Filebot as API

Post by usernames_are_hard »

Hi Rednoah,

Thanks for the reply... I was a bit vague in my post... my thoughts were to do my own webservice call to the remote server which would then fire off some program that would talk with filebot. I'm confident if I go down this route, then Groovy would do what I need.

And fully agree.. this is far from an ideal approach and would be my last resort. My strategy is:

1) Install Filebot on my Media Centre (Popcorn Hour A400) - Gave it a crack using the instructions on your site with little luck... but I will invest a bit extra time as keeping it local would seem to be the most efficient way

2) If 1) fails, then I can mount the media player drive on the remote computer (Win 8, Wireless connection) with filebot installed. However, the copy process is a little slow (persuming to the network) and permissions hurt my head but should be able to get it going

3) Finally, if neither of the above work, then I was considering the webservice call to get the name and locally copying and renaming.

Thanks for your help and a fantastic product.. will be sure to send a beer your way.

Shaun
User avatar
Ithiel
Power² User
Posts: 204
Joined: 11 Jul 2013, 14:58

Re: Using Filebot as API

Post by Ithiel »

Hi usernames_are_hard,

I might be a little offbase here, but if I am understanding things correctly, I'm wondering if you might be coming at this the wrong direction?

To clarify - you've got a Popcorn Hour A400 acting as media player, media storage, and media download, correct?
Is it just the new files that (I assume) the transmission client on the A400 downloads that you want renamed and sorted?

If that's the case, wouldn't the easiest way be to load FileBot onto the A400, and have transmission run your rename script locally upon completion of the download?

Hopefully installing FileBot on the A400 is similar to getting it running on the Raspberry Pi:
http://www.filebot.net/forums/viewtopic.php?f=3&t=644

Running scripts on transmission download completion: https://forum.transmissionbt.com/viewtopic.php?t=10364
Some examples of what to run: http://www.filebot.net/forums/viewtopic.php?f=4&t=520

If Java SE isn't already on the device, you can get it here, but it's a learning curve to get it running on your device:
http://www.oracle.com/technetwork/java/ ... index.html

If you are actually wanting to browse via a network share to rename 'that file I'm clicking on right now in explorer', maybe this would help:
http://www.filebot.net/forums/viewtopic.php?f=3&t=1222

Of course, I could be totally missing the point of what it is you're trying to do and have just posted a bunch of totally unhelpful links, but in any case, I hope the above is of some help :-)
There can be only one Power² User
Post Reply