Need some help wit automated script
Need some help wit automated script
Hi,
I'm using couchpotato/sickbeard + rtorrent on my raspberry Pi, but couchpotato renamer is not what I want it to be (it's copying my older files instead of hard-linking) it's a problem because I have a lot of movies downloaded not using CP and want them to be seeded much longer, that's why i want to use filebot to hardlink and rename it for all of them in one go.
1. I have 1 download folder for all my movies/anime/tv-shows
2. I want filebot to search inside this folder and hard-link my movies/anime/tv-shows in 3 folders /movies /anime /tv Is it possible?
3. I want it to download subtitles for /movies and /tv
4. I want to do it automaticly if possible after download is complete in rtorrent or if it can't be done with rtorrent i want to manually start script from ssh.
5. I managed to install filebot on my raspberry Pi device.
If someone can help with script I would really appreciate it.
Best wishes
I'm using couchpotato/sickbeard + rtorrent on my raspberry Pi, but couchpotato renamer is not what I want it to be (it's copying my older files instead of hard-linking) it's a problem because I have a lot of movies downloaded not using CP and want them to be seeded much longer, that's why i want to use filebot to hardlink and rename it for all of them in one go.
1. I have 1 download folder for all my movies/anime/tv-shows
2. I want filebot to search inside this folder and hard-link my movies/anime/tv-shows in 3 folders /movies /anime /tv Is it possible?
3. I want it to download subtitles for /movies and /tv
4. I want to do it automaticly if possible after download is complete in rtorrent or if it can't be done with rtorrent i want to manually start script from ssh.
5. I managed to install filebot on my raspberry Pi device.
If someone can help with script I would really appreciate it.
Best wishes
Re: Need some help wit automated script
Here the answers to your questions:
2. Yes
3. Yes
4. Yes, depending on rtorrent
RTFM => http://www.filebot.net/forums/viewtopic.php?f=4&t=215
2. Yes
3. Yes
4. Yes, depending on rtorrent
RTFM => http://www.filebot.net/forums/viewtopic.php?f=4&t=215
Re: Need some help wit automated script
I tried it but can I turn off unzipping files? ( i got a lot of errors because 7-zip-jbindin is not supported on raspberry pi),rednoah wrote:Here the answers to your questions:
2. Yes
3. Yes
4. Yes, depending on rtorrent
RTFM => http://www.filebot.net/forums/viewtopic.php?f=4&t=215
Re: Need some help wit automated script
No, you can't turn off extraction, but if 7zip integration doesn't work it'll not affect anything. It's not errors, it's warnings, and you can just ignore them.
Re: Need some help wit automated script
It's not a waste of CPU/memory usage? if you could would it be possible to f.e add parameter unzip=disable ?
Re: Need some help wit automated script
Why would it use CPU or memory? Since it fails to load lib7zip it's not actually doing anything, not using CPU, not allocating memory, it's just logging some warnings which will not affect CPU or memory usage. If you really really die-hard not wanna see the warnings just redirect error output to /dev/null or modify the script OR get lib7zip-jbinding compiling on Raspberry Pie and tell us how you did it. 

Re: Need some help wit automated script
I have a problem with groovy:
When i try to test it's working properly - it's finding my movies/tv-series properly (with output filenema - [tvseries:name movie:null]
but when i try to use hardlink it's only getting my 7zip errors and after that it goes i think stopped (20 minutes no output) or something (it still in my processes as java, with a lot of resources used but no output and no hardlinks in output directory, i used:
filebot -script fn:amc --output "/media/media/filebot" --action hardlink -non-strict "/media/media/download" --def excludeList=amc.txt "seriesFormat=/media/media/filebot/TV/{n}/{'S'+s}/{fn}" "animeFormat=/media/media/filebot/Anime/{n}/{fn}" "movieFormat=/media/media/filebot/Movies/{n} {y}/{fn}" music=n
When i try to test it's working properly - it's finding my movies/tv-series properly (with output filenema - [tvseries:name movie:null]
but when i try to use hardlink it's only getting my 7zip errors and after that it goes i think stopped (20 minutes no output) or something (it still in my processes as java, with a lot of resources used but no output and no hardlinks in output directory, i used:
filebot -script fn:amc --output "/media/media/filebot" --action hardlink -non-strict "/media/media/download" --def excludeList=amc.txt "seriesFormat=/media/media/filebot/TV/{n}/{'S'+s}/{fn}" "animeFormat=/media/media/filebot/Anime/{n}/{fn}" "movieFormat=/media/media/filebot/Movies/{n} {y}/{fn}" music=n
Re: Need some help wit automated script
So what's the output when it's not working?
I can assure you that --action copy and --action hardlink will not affect any logic other than what action is perform when you "rename" A to B. It will not affect the extract() code in any way what-so-ever.
So when you say lib7zip-JBinding is not working, does that mean it's not being loaded and thus doesn't work. Or that it's actually loaded successfully but then when 7zip native code is executed things go bonkers? If it's the latter make sure to remove the troublesome native lib.
I can assure you that --action copy and --action hardlink will not affect any logic other than what action is perform when you "rename" A to B. It will not affect the extract() code in any way what-so-ever.
So when you say lib7zip-JBinding is not working, does that mean it's not being loaded and thus doesn't work. Or that it's actually loaded successfully but then when 7zip native code is executed things go bonkers? If it's the latter make sure to remove the troublesome native lib.
Re: Need some help wit automated script
I managed to get it working but have some problems:
1: Every anime I got in my folder is executed as TV-Show (nothing in Anime folder) f.e.
[HorribleSubs] Kill la Kill - 19 [720p].mkv [series: Kill la Kill, movie: Kill! (1971)]
Exclude Movie: Kill! (1971)
Rename episodes using [TheTVDB]
Auto-detected query: [Kill la Kill]
Fetching episode data for [Kill la Kill]
[HARDLINK] Rename [/media/media/download/[HorribleSubs] Kill la Kill - 16 [720p].mkv] to [/media/media/filebot/TV/Kill la Kill/S1/Kill la Kill S01E16 [.720p].mkv]
[HARDLINK] Rename [/media/media/download/[HorribleSubs] Kill la Kill - 19 [720p].mkv] to [/media/media/filebot/TV/Kill la Kill/S1/Kill la Kill S01E19 [.720p].mkv]
Processed 2 files
2. I download almost only Horrible Subs realeses of anime, and filebot cant handle with Name SX - EN f.e.
[HorribleSubs] Magi S2 - 21 [720p].mkv
[HorribleSubs] Magi S2 - 21 [720p].mkv [series: null, movie: null]
Unable to differentiate: [[HorribleSubs] Magi S2 - 21 [720p].mkv] => [null] VS [null]
3. Filebot didn't finished all of things it found it stopped in about half of them, without any error it just stopped on one. (i tried twice, once using it normal way from console, the other time I make sure that my session did'nt stop by using dtach (similiar app to screen)
my log
http://sebsauvage.net/paste/?1e337a8bfd ... 6fzj9h0ow=
amc.txt
http://sebsauvage.net/paste/?afddd257a3 ... N6qY8L4gg=
My script:
1: Every anime I got in my folder is executed as TV-Show (nothing in Anime folder) f.e.
[HorribleSubs] Kill la Kill - 19 [720p].mkv [series: Kill la Kill, movie: Kill! (1971)]
Exclude Movie: Kill! (1971)
Rename episodes using [TheTVDB]
Auto-detected query: [Kill la Kill]
Fetching episode data for [Kill la Kill]
[HARDLINK] Rename [/media/media/download/[HorribleSubs] Kill la Kill - 16 [720p].mkv] to [/media/media/filebot/TV/Kill la Kill/S1/Kill la Kill S01E16 [.720p].mkv]
[HARDLINK] Rename [/media/media/download/[HorribleSubs] Kill la Kill - 19 [720p].mkv] to [/media/media/filebot/TV/Kill la Kill/S1/Kill la Kill S01E19 [.720p].mkv]
Processed 2 files
2. I download almost only Horrible Subs realeses of anime, and filebot cant handle with Name SX - EN f.e.
[HorribleSubs] Magi S2 - 21 [720p].mkv
[HorribleSubs] Magi S2 - 21 [720p].mkv [series: null, movie: null]
Unable to differentiate: [[HorribleSubs] Magi S2 - 21 [720p].mkv] => [null] VS [null]
3. Filebot didn't finished all of things it found it stopped in about half of them, without any error it just stopped on one. (i tried twice, once using it normal way from console, the other time I make sure that my session did'nt stop by using dtach (similiar app to screen)
my log
http://sebsauvage.net/paste/?1e337a8bfd ... 6fzj9h0ow=
amc.txt
http://sebsauvage.net/paste/?afddd257a3 ... N6qY8L4gg=
My script:
Code: Select all
#!/bin/bash
OUTPUT_PATH="/media/media/filebot"
INPUT_PATH="/media/media/download"
EXC_LIST_PATH="/home/xbian/.filebot/amc.txt"
LOG_FILE="/home/xbian/.filebot/filebot.log"
ANIME_FORMAT="animeFormat=Anime/{n}/{n} {s00e00} [{source}.{vf}]"
MOVIES_FORMAT="movieFormat=Movies/{n} {y}/{n} ({y}) [{source}.{vf}]"
TV_FORMAT="seriesFormat=TV/{n}/{'S'+s}/{n} {s00e00} [{source}.{vf}]"
filebot -script fn:amc --output "$OUTPUT_PATH" --action hardlink -non-strict "$INPUT_PATH" --log-file "$LOG_FILE" --def excludeList="$EXC_LIST_PATH" music=n "$ANIME_FORMAT" "$TV_FORMAT" "$MOVIES_FORMAT"
Re: Need some help wit automated script
1. Your files look too much like TV Shows
http://www.filebot.net/forums/viewtopic ... tion#p7273
2. Magi S2 cannot be recognized. Neither can I.
3. No idea. When you say "my log" do you mean $LOG_FILE or redirected output? No idea why it would stop. Either you're missing error output somehow, or it didn't stop. Must be doing something anyway.
PS: I added --def extract=n option to disable extraction with future updates
http://www.filebot.net/forums/viewtopic ... tion#p7273
2. Magi S2 cannot be recognized. Neither can I.
3. No idea. When you say "my log" do you mean $LOG_FILE or redirected output? No idea why it would stop. Either you're missing error output somehow, or it didn't stop. Must be doing something anyway.
PS: I added --def extract=n option to disable extraction with future updates
Re: Need some help wit automated script
1. As I said I use mostly HorribleSubs is there anyway to say filebot to force_anime on files with [HorriblleSubs] ?
2. In Anime it's really common - AnimeName SX - EX (HorribleSubs does that with almost every anime with multiple seasons - which means if I could change regex to this would be great.
3. It's $LOF_FILE, and it stopped for sure! (tried it twice), don't have any idea what could go wrong :
http://horriblesubs.info/ HorribleSubs is now mostly downloaded english subtitled anime group.
2. In Anime it's really common - AnimeName SX - EX (HorribleSubs does that with almost every anime with multiple seasons - which means if I could change regex to this would be great.
3. It's $LOF_FILE, and it stopped for sure! (tried it twice), don't have any idea what could go wrong :
http://horriblesubs.info/ HorribleSubs is now mostly downloaded english subtitled anime group.
Re: Need some help wit automated script
1. Yep, you fork the scripts GitHub and modify the forceAnime() function.
2. Magi S2 => Magi: The Labyrinth of Magic is a bit of a stretch. Also with most S2 anime it's really is a second run, and in AniDB that's usually two different shows. In this case there seems to be only one show with 21 one episodes, again no seasons, just episode numbers.
3. No idea, you can try reproducing the issue on your desktop. Maybe using the latest Oracle Java release helps. Just try things.
2. Magi S2 => Magi: The Labyrinth of Magic is a bit of a stretch. Also with most S2 anime it's really is a second run, and in AniDB that's usually two different shows. In this case there seems to be only one show with 21 one episodes, again no seasons, just episode numbers.
3. No idea, you can try reproducing the issue on your desktop. Maybe using the latest Oracle Java release helps. Just try things.
Re: Need some help wit automated script
I'm using it on raspberry pi, I'll try using less max Ram usage, maybe that was the case (now I have 300M, or maybe it's too low?)
And according to TVDB it's season 1 and season 2, so is there any chance to check files using ShowName SX - EX ? not only Showname SXEX just like in Magi S2?
And according to TVDB it's season 1 and season 2, so is there any chance to check files using ShowName SX - EX ? not only Showname SXEX just like in Magi S2?
Re: Need some help wit automated script
Ah! That's the reason, it doesn't have enough memory so garbage collection without any space left keeps things from running fast. Since you run filebot on a very large set of files you'll probably need lots of memory. Just don't process too many files at once.
If you match with AniDB data there is no chance at all, since AniDB doesn't have any season number data. Might work with TheTVDB.
If you match with AniDB data there is no chance at all, since AniDB doesn't have any season number data. Might work with TheTVDB.
Re: Need some help wit automated script
So how can I add this regex for TheTVDB? It seams that almost any new anime is on TVDB now, so I would love to have this option in filebot.
Re: Need some help wit automated script
What regex? For S2 - 21? FileBot can make sense of that without regex just fine.
The issue is that the series name is shit and doesn't correspond to anything.
* Magi-Nation
* Magi: The Labyrinth of Magic
Even when I search for 'magi' with the GUI i'm still clueless to what show it is, and with 'magi s2' there's 0 results.
This one can't be helped, you'll have to handle that yourself or have a script that picks these files up and forces the query.
The issue is that the series name is shit and doesn't correspond to anything.
* Magi-Nation
* Magi: The Labyrinth of Magic
Even when I search for 'magi' with the GUI i'm still clueless to what show it is, and with 'magi s2' there's 0 results.
This one can't be helped, you'll have to handle that yourself or have a script that picks these files up and forces the query.
Re: Need some help wit automated script
Understood.
And one more question: Is there a way to postprocess only movies? (in my folders i got a lot of tv-shows, animes and others) But i would like to hardlink and rename only movies from this folder is there a way to say filebot to do this?
P.S. Thanks for your support really great job on FileBot!!
And one more question: Is there a way to postprocess only movies? (in my folders i got a lot of tv-shows, animes and others) But i would like to hardlink and rename only movies from this folder is there a way to say filebot to do this?
P.S. Thanks for your support really great job on FileBot!!