Streaming Channel's Need Help

Running FileBot from the console, Groovy scripting, shell scripts, etc
taylor4747
Posts: 15
Joined: 01 Sep 2013, 20:02

Streaming Channel's Need Help

Post by taylor4747 »

I have used various tools that in the end, create a file of "Streams". Attached is the end result as it looks in the folder. The files are just links back to the streaming location. All these go into one folder - both TV and Movies. I need a script that will take the .strm files, move them to either a movie or tv folder, ensure they are readable to xbmc, pull in artwork, length of move or tv show (important) and then create nfo for folder. The length is important because me end goal, is to be able to have a guide of the streaming choices available. I have a java app that is pulling in these streams. I would like Filebot to monitor folder as a watch folder and move files appropriately every x hours.
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Streaming Channel's Need Help

Post by rednoah »

Can u send me some sample files of these .strm files? And how would I know the length of such a stream file? I can get values from DBs but that may not be exactly the same as the actual stream.

The first and easy to fix issue would to treat .strm as if they were video files. That's why it's not working at all right now, it's ignored as designed.
:idea: Please read the FAQ and How to Request Help.
taylor4747
Posts: 15
Joined: 01 Sep 2013, 20:02

Re: Streaming Channel's Need Help

Post by taylor4747 »

This forum will not take the strm files. May I send to an email address?
taylor4747
Posts: 15
Joined: 01 Sep 2013, 20:02

Re: Streaming Channel's Need Help

Post by taylor4747 »

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

Re: Streaming Channel's Need Help

Post by rednoah »

Looking at the stream files these stream URLs looks very specific for XBMC and can't be played by any other software, I definitely won't be able to access the media data.

What I did with r1707 is to add .strm as video type extension. That'll be enough to make sorting work as filebot mostly looks at the filename anyway as humans would do.

I'll upload a test jar for u tomorrow:
https://sourceforge.net/projects/filebo ... ebot/HEAD/
:idea: Please read the FAQ and How to Request Help.
taylor4747
Posts: 15
Joined: 01 Sep 2013, 20:02

Re: Streaming Channel's Need Help

Post by taylor4747 »

Yes, I figured there would be no way to read the media details from the stream so just pulling from imdb or whoever database you use is fine. i assume that if you know the title, we can get the details = run time, etc etc. May not be 100% accurate but it is close enough for gov work. I am unsure of what to do with the file you linked me to.
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Streaming Channel's Need Help

Post by rednoah »

Grab the latest .jar from the link above and override FileBot.jar in your FileBot install folder with it. Updating to the latest revision basically.

Here's a movie/episode naming schemes with runtime just as examples:

Code: Select all

{n} ({y}) [{info.runtime}min]

Code: Select all

{n} - {s00e00} - {t} - [{info.runtime}min]
Once it works manually in the GUI we can start trying to run the AMC to fully automate the setup.
:idea: Please read the FAQ and How to Request Help.
taylor4747
Posts: 15
Joined: 01 Sep 2013, 20:02

Re: Streaming Channel's Need Help

Post by taylor4747 »

Great, thanks I will work with it tonight, been awhile since i worked it with the gui, forgot how
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Streaming Channel's Need Help

Post by rednoah »

Next step is basically just calling AMC and hooking it up with those formats. If you're moving files u can just call it every few hours. If it's leaving files we may need to add some index of what has already been process and what hasn't.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Streaming Channel's Need Help

Post by rednoah »

Here's my current test setup for this:

Code: Select all

D:\>filebot -script fn:amc "D:\workspace\testdata\AMC-TEST" --output "D:\OUTPUT" --action test -non-strict --def "seriesFormat={n} - {s00e00} - {t} - [{info.runtime}min]" "movieFormat={n} ({y}) [{info.runtime}min]"
Parameter: seriesFormat = {n} - {s00e00} - {t} - [{info.runtime}min]
Parameter: movieFormat = {n} ({y}) [{info.runtime}min]
Argument: D:\workspace\testdata\AMC-TEST
Input: D:\workspace\testdata\AMC-TEST\Elysium.2013.360p.strm
Elysium.2013.360p.strm [series: Elysium, movie: Elysium (2013)]
Exclude Series: Elysium
Group: [tvs:null, mov:Elysium (2013), anime:null] => [Elysium.2013.360p.strm]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [D:\workspace\testdata\AMC-TEST\Elysium.2013.360p.strm]
[TEST] Rename [D:\workspace\testdata\AMC-TEST\Elysium.2013.360p.strm] to [D:\OUTPUT\Elysium (2013) [109min].strm]
Processed 1 files
:idea: Please read the FAQ and How to Request Help.
taylor4747
Posts: 15
Joined: 01 Sep 2013, 20:02

Re: Streaming Channel's Need Help

Post by taylor4747 »

Does not seem to be picking them up. But, it has been a long time since I used it from the GUI, I have always used the torrent command. My plan is to have it watch folders C:\Stream\Movies and C:\Stream\TV Shows and move them to a folder that XBMC watches at C:\Media. I might be doing something wrong with the GUI. I attached the error message I got. I am wondering if we ran it with your script, if it would work as it might be user error on my part. However, I am unfamiliar on how to run your script when I dont have a space such as utorrent to place the command. Where do I place it?

I attached the error. You just let me know what I owe you, I have no problem at all paying for your services. This is saving me many headaches.

Also, I am not concerned with the runtime being in the title, I just need the run time tagged or wherever it is kept in xbmc files = I assume on the nfo file, so that the guide can pick it up. The naming structure I would like to keep as xbmc format and write the run time on the nfo
taylor4747
Posts: 15
Joined: 01 Sep 2013, 20:02

Re: Streaming Channel's Need Help

Post by taylor4747 »

One more comment, can the network ie abc, cbs be written in the nfo file?
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Streaming Channel's Need Help

Post by rednoah »

* That error looks weird, try again grabbing the latest HEAD jar (r1710)
* AMC will create .nfo files which for TV Shows also include the network

First you can try to run with Windows CMD and see if it's working correctly:

Code: Select all

filebot -script fn:amc "D:\workspace\testdata\AMC-TEST" --output "D:\OUTPUT" --action test -non-strict --def artwork=y
If that works you can try setting up a Windows Scheduler Task:
http://windows.microsoft.com/is-is/wind ... ule-a-task

The executable would be filebot.exe and the arguments everything starting with -script fn:amc ...
:idea: Please read the FAQ and How to Request Help.
taylor4747
Posts: 15
Joined: 01 Sep 2013, 20:02

Re: Streaming Channel's Need Help

Post by taylor4747 »

So just to make sure i am doing this right, I am downloading the file you direct me to into the filebot directory. however, the exe file is not unchanged. The file you are giving me is just an extra. So i do that and I run from cmd line and I get:
taylor4747
Posts: 15
Joined: 01 Sep 2013, 20:02

Re: Streaming Channel's Need Help

Post by taylor4747 »

hit button to fast
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Streaming Channel's Need Help

Post by rednoah »

I see. I looks like the latest revision requires Java 7 but you're running with Java 6. I highly recommend using Java 7 anyway.
:idea: Please read the FAQ and How to Request Help.
taylor4747
Posts: 15
Joined: 01 Sep 2013, 20:02

Re: Streaming Channel's Need Help

Post by taylor4747 »

Oh, well that's easy. Will do and try.
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Streaming Channel's Need Help

Post by rednoah »

The newer jars I uploaded should be Java 6 compatible now, hopefully. Otherwise let me know how you fare and just let me know if you need need more examples or experience any issues.
:idea: Please read the FAQ and How to Request Help.
taylor4747
Posts: 15
Joined: 01 Sep 2013, 20:02

Re: Streaming Channel's Need Help

Post by taylor4747 »

Sorry to be such a pain, but I installed java 7 on a new install of windows, and i got the following. I am sure this is my issue and I was unsure which one I would take that was compatabile with 6
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Streaming Channel's Need Help

Post by rednoah »

This is just a warning, just ignore it. It's Java not being able to access system-wide registry settings. This is a Java warning unrelated to filebot and it won't affect filebot running at all.
:idea: Please read the FAQ and How to Request Help.
taylor4747
Posts: 15
Joined: 01 Sep 2013, 20:02

Re: Streaming Channel's Need Help

Post by taylor4747 »

Took weekend off, but back at it. Now i have ???? Which or course, I am ???
taylor4747
Posts: 15
Joined: 01 Sep 2013, 20:02

Re: Streaming Channel's Need Help

Post by taylor4747 »

Sorry, again too fast on button
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Streaming Channel's Need Help

Post by rednoah »

Looks like it can't find any video files in that folder. Do you have other video-type extension u want me to add other than .strm type?
:idea: Please read the FAQ and How to Request Help.
taylor4747
Posts: 15
Joined: 01 Sep 2013, 20:02

Re: Streaming Channel's Need Help

Post by taylor4747 »

No, was just these. You think we can go it?
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Streaming Channel's Need Help

Post by rednoah »

Then I assume the folder you passed in to filebot/amc in the screenshot above is empty, or at least doesn't contain any video files.
:idea: Please read the FAQ and How to Request Help.
Post Reply