WWE Raw and Smackdown - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: XBMC General Help and Support (/forumdisplay.php?fid=111)
+--- Thread: WWE Raw and Smackdown (/showthread.php?tid=128921)
WWE Raw and Smackdown - lrusak - 2012-04-15 03:02
Soooo since thetvdb.com stopped updating WWE shows back in january I have been searching for the best way to keep it up to date with minimal effort.
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=128921&pid=1131324#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=128921&pid=1126223#pid1126223
RE: WWE Raw and Smackdown - lrusak - 2012-04-17 23:45
does anyone know how I can improve this step?
I had to make it like that in the first place because it would give me errors and I assume it's because of spaces in the filename, but I could only get it to work by moving the file then renaming it after
RE: WWE Raw and Smackdown - lrusak - 2012-04-24 07:08
it's too bad no one has interest in this! anyways, I updated it to use just one script instead of one each for raw and smack down
RE: WWE Raw and Smackdown - BrEEdAA - 2012-06-12 11:58
Just found this mate, looks good. Should this work on a mac ok?
WWE Raw and Smackdown - lrusak - 2012-06-12 23:45
The BSD formatted lines should work on OSX. I'll test it out
RE: WWE Raw and Smackdown - lrusak - 2012-06-13 00:40
if you just run this, it will create the neccassary nfo files for you. (it is setup for RAW, if you need smackdown as well you just have to change the dates and seasons. let me know if you need help.
nfo.sh for mac
RE: WWE Raw and Smackdown - lrusak - 2012-06-13 01:05
ok so I edited it so it's easier to understand and for use on a mac. place it in your SABnzbd scripts folder. then assign it to a download. IT WILL ONLY WORK WITH FILES NAMED AS FOLLOWS "WWE.Monday.Night.RAW.2012.01.02.HDTV.x264-RUDOS" this is because I am a beginner at scripting and I haven't spent much time at it but it works for me as long as I download RUDOS releases. KYR releases don't work as of now.
PS, this does work for RAW and Smackdown, as long as they are RUDOS releases.
DISCLAIMER: this script involves the rm command, if you aren't careful you can delete important files. if you don't feel comfortable then just comment the rm line out at the end of the script.
*** make sure to edit the paths to your own locations ***
wrestling.sh for mac (don't forget to chmod +x)
RE: WWE Raw and Smackdown - BrEEdAA - 2012-06-13 11:05
Good works thanks, Will setup for Fridays Smackdown and let you know how it goes :-)
RE: WWE Raw and Smackdown - lrusak - 2012-06-13 18:42
(2012-06-13 11:05)BrEEdAA Wrote: Good works thanks, Will setup for Fridays Smackdown and let you know how it goes :-)
I forgot to say that this will only work for .avi and .mp4 filetypes. if you download the 720P versions that are .mkv it will not work and I will have to change it for you.
PS you can always test it first by creating a sample file.
RE: WWE Raw and Smackdown - BrEEdAA - 2012-06-15 14:38
Ah! yeah i generally get the 720p .mkv versions, also of which RUDOS doesnt seem to be releasing any more, they are usually either KYR/CB4