Can I execute custom post script?
-
- Newbie
- Posts: 14
- Joined: June 14th, 2011, 11:47 pm
Can I execute custom post script?
My players don't know how to play MKV files, but by simply renaming the .MKV to .AVI they play fine. Is there some way I can get SAB or Sickbeard to auto rename from MKV to AVI extension? A simple DOS command script won't work as it needs to traverse all the TV subfolders - so was hoping SAB or SB could do it.
Re: Can I execute custom post script?
Sorry, the only way is create a user script.
Re: Can I execute custom post script?
I wrote this as my media player doesn't like IMG unless the're renamed to ISO. It will search through all sub directories of the (in my case) the movie just downloaded.
Code: Select all
cd %1
for /r %%x in (*.IMG) do ren "%%x" *.ISO
Eejit - The name say's it all !!
-
- Newbie
- Posts: 14
- Joined: June 14th, 2011, 11:47 pm
Re: Can I execute custom post script?
Very nice - how do I get your script to auto execute - or do I just schedule a windows task or something?
-
- Newbie
- Posts: 14
- Joined: June 14th, 2011, 11:47 pm
Re: Can I execute custom post script?
So I set up a folder URL for as:
Post-Processing Scripts Folder: C:\Users\User\Videos\SAB Scripts
Within the folder I created a text file called: "Rename MKV to AVI.txt"
Within this text file I put:
cd %1
for /r %%x in (*.MKV) do ren "%%x" *.AVI
As I need to rename all my .MKV to .AVI
I then d/l a TV show that is .MKV, but SAB never seemed to execute the script - it extracted still as an .MKV and never renamed. Within the log file is no mention of my script having been ran - one thing I haven't restarted SAB since putting in the script folder location - so maybe that will help - will try now.
Is the above the correct process for adding a custom script?
Post-Processing Scripts Folder: C:\Users\User\Videos\SAB Scripts
Within the folder I created a text file called: "Rename MKV to AVI.txt"
Within this text file I put:
cd %1
for /r %%x in (*.MKV) do ren "%%x" *.AVI
As I need to rename all my .MKV to .AVI
I then d/l a TV show that is .MKV, but SAB never seemed to execute the script - it extracted still as an .MKV and never renamed. Within the log file is no mention of my script having been ran - one thing I haven't restarted SAB since putting in the script folder location - so maybe that will help - will try now.
Is the above the correct process for adding a custom script?
Re: Can I execute custom post script?
Although I never use windoze for this kind of thing, I doubt it will be able to execute files with a .txt extension (cmd? bat?). And you'll still need to tell sab to execute it as a postproc script (probably via category setup); just putting the file in the script directory only makes it selectable in sab's web interface.
-
- Newbie
- Posts: 14
- Joined: June 14th, 2011, 11:47 pm
Re: Can I execute custom post script?
That was it - nowhere did I find that I was supposed to make changes in categories section.