I am a complete beginner at scripting but I did my best and what I have works for me so I thought I'd share it with other WWE fans.
The first problem I wanted to tackle is to create the .nfo files used by xbmc's database.
I created this script (and had some fun learning how to do it) to create nfo's for raw and smack down.
how it works is it takes inputs from a user and calculates the amount of nfo's needed. there is no error correction so you need to make sure you put in a monday to a monday for RAW and friday to friday for SmackDown. It will only do one season at a time.
folders are like this
and the script and template sit in the WWE folder. it looks at the template file for the text needed to fill the nfo and changes the date and episode number and saves it with the corresponding filename. (I cd into each folder (raw or smack down) then run the script so it outputs the nfos into the folder. You could edit out the read functions for the variables to just be static variables (I just wanted to learn how to do it).
The next thing I did was create a script for SABnzbd to run when it downloads a file. I have created an RSS feed from nzb matrix that searches for specific files. i.e. (WWE Monday Night Raw 2012 04 09 HDTV x264 RUDOS NZB) it limits results to HDTV x264 RUDOS, then in sabs rss options I set filters for RAW and Smackdown, so it can run a different script for each (I'm sure it could be combined into one). and I have a specific catagory setup for wrestling so it downloads to a specific location as not to interfere with other downloads. you only need to change ID, DATE, EXT, and DIRPATH. I run sabnzbd on my freenas server so some of the scripting is different and commented out for ubuntu use. (I made it on ubuntu and move it to my server).
Anyways if you have an suggestions for improvement (as I said I am a complete beginner) that would be welcome or if you have any questions feel free to ask. I may try and edit it so I don't need separate scripts for raw and smack down.
thanks for viewing
The most recent script is available here http://forum.xbmc.org/showthread.php?tid...pid1131324
It will work for all releases (ie, rudos, kyr, c4tv), for both RAW and SmackDown, and for any quality (HDTV, 720P,etc)
The script will exit if it cannot find the proper file, this keeps it from moving/deleting the wrong one.
The script will automatically generate an NFO file for scanning into your XBMC library (just the basics, season, episode, title, air date).
This script has only been tested on OSX, it will fail on any other system (it works on freebsd, or freenas though).
If you want your own NFOs but don't want the script to rename and move files for you, you can use this simple NFO file generator. It is currently setup to create all the nessecary NFO files for RAW this year
it can be found here http://forum.xbmc.org/showthread.php?tid...pid1126223