[Python] Corrie TV (Coronation Street)/Enders renamer script
Posted: April 25th, 2012, 9:00 pm
Corrie Fans Python script with Sabnzbd RSS setup
To all those Corrie fans (Coronation Street Fans)
I have found it very hard to use Sickbeard to gather Coronation Street episodes as they are release by date and not episodes. Even if you turn on air by date and setup Coronation Street it will not find anything. As it will not match with the way TVdb.org is labeling the Episodes. So of course the only way around this is to have Sabnzbd do the work for you. With the setup below I will show you how to setup the RSS feed and with the Python Script take the file downloaded and rename it and move it to a new folder named something Sickbeard will recognize and update the Show list.
Things you will need:
Sabnzbd – installed, Python 2.7- installed, Sickbeard – installed with sabtosickbeard setup, Binsearch
And a text editor – notepad or my Favorite notepad++ http://notepad-plus-plus.org/
CorrieTVrename.py - the script
Windows Setup
(It’s a python script so it should work on other OS’s. You may have to change Directory names \\ to \)
PATHEXT Setup
In Windows to run a python script from Sabnzbd you have to add .py and .pyw to your PATHEXT
Click Start – Right Click My Computer – Click Properties – Click Advance tab or Advance System Settings in Vista/7
Click Environment Variables …… Under system Variables find PATHEXT – Highlight PATHEXT - Click Edit and add; .PY; .PYW …… Click OK and Restart your system.
If the above is confusing try this link - http://www.voidspace.org.uk/python/arti ... line.shtml
Setup Sickbeard
Just add Coronation Street as a new show and setup as you would for any other shows. (You don’t need it set as Active)
http://code.google.com/p/sickbeard/wiki/PostProcessing
Create a CorrieTVTemp Category in Sabnzbd
Setup a new SABnzbd Category for CorrieTV ( 1 ) and under folder/path create a CorrieTVTemp folder\* ( 2 ) to save to.
(remember to add the * so it doesn’t create any folders when saving). Also remember to make a CorrieTV folder in your watch folder and make sure your CorrieTVTemp folder\* is a real folder.
Note: Add a Failed folder in the same location as CorrieTVTempfolder to catch any mislabeled files.
Image1
Now copy CorrieTVrename.py to your Sabnzbd script folder location with your sabtosickbeard files as stated here. - http://code.google.com/p/sickbeard/wiki/PostProcessing
Open CorrieTVrename.py with your Text editor and change the setup Info.
Image2
Remember to select your new script (CorrieTVrename.py) ( 3 )in your new CorrieTV category.
Image1
Setup RSS in SABnzbd+
Click on the RSS tab at the top
Click Add feed if you already have feeds setup to add new feed.
Change your feed name to Coronation Street 1
Paste ( http://rss.binsearch.net/rss.php?max=50 ... tish.drama ) URL in the box provided 2
Now Click the Add Feed below your URL you just entered. 3
image3
Click Coronation Street
Image4
Select your new category you created ( corrie_tv ) ( 1 ) then click Filters.
Image5
Setup your Filters as shown below
Image6
0 -- Requires -- Coronation Street ---- remember to save setting on each line.
1 -- Accept -- .2012
2 -- Accept -- .2013
Click Read Feed you can select Force Download now to download all matches or Download each by itself.
Or click the arrow ( 2 ) and Save Settings to turn on the automatic download.
Image5
Everything should be setup. You now should have a RSS feed that filters out Coronation street . After Sabnzbd downloads the file it will run the corrie script and move to your TV downloads that you have setup with Sickbeard.
I Hope this setup not only helps the Coronation Street fans download and track there shows but also shows how you can use the RSS feeds to help download what the Big guns aren’t . As for the Script it’s just a simple code that takes the file name changes the air date to an easier to read format and uses the Thetvdb API to find the correct season/episode and renames the file so Sickbeard can process the file.
This is not a sure fire way to download Coronation Street but as long as the uploader is using his current file naming scheme everything should work.
Updated 05/20/2012 - will delete all files but AVI's correcting left over files problem.
Download the script here : http://www.mediafire.com/download.php?mve3ja45730qve0
Download these steps here: http://www.mediafire.com/download.php?yshnxxea1xkvotw
Updated 07/30/2012
New EastEnders Renamer setup
Create a Ender_TV Category in Sabnzbd - (same as the corrie_tv but change the name to enders)
Now copy EndersTVrename.py to your Sabnzbd script folder - (same as the corrie_tv but change the name to enders)
Open EndersTVrename.py with your Text editor and change the setup Info. - (same as the corrie_tv but change the name to enders)
Setup your RSS feed like this -
Feed - http://rss.binsearch.net/rss.php?max=10 ... multimedia
Category - enders_tv or what you created in your category settings
your filters should be -
0 --- Requires ----- EastEnders -------- default default default default
1 --- Requires ----- WS/PDTV/XviD --- default default default default
2 --- Accept ------- .2012 --------------- default default default default
3 --- Accept ------- .2013 --------------- default default default default
Here is the new EastEnder Script - ( setup the same as corrie_tv )
http://www.mediafire.com/?g7fewqqymjc05wz
Just Giving Back
J03
To all those Corrie fans (Coronation Street Fans)
I have found it very hard to use Sickbeard to gather Coronation Street episodes as they are release by date and not episodes. Even if you turn on air by date and setup Coronation Street it will not find anything. As it will not match with the way TVdb.org is labeling the Episodes. So of course the only way around this is to have Sabnzbd do the work for you. With the setup below I will show you how to setup the RSS feed and with the Python Script take the file downloaded and rename it and move it to a new folder named something Sickbeard will recognize and update the Show list.
Things you will need:
Sabnzbd – installed, Python 2.7- installed, Sickbeard – installed with sabtosickbeard setup, Binsearch
And a text editor – notepad or my Favorite notepad++ http://notepad-plus-plus.org/
CorrieTVrename.py - the script
Windows Setup
(It’s a python script so it should work on other OS’s. You may have to change Directory names \\ to \)
PATHEXT Setup
In Windows to run a python script from Sabnzbd you have to add .py and .pyw to your PATHEXT
Click Start – Right Click My Computer – Click Properties – Click Advance tab or Advance System Settings in Vista/7
Click Environment Variables …… Under system Variables find PATHEXT – Highlight PATHEXT - Click Edit and add; .PY; .PYW …… Click OK and Restart your system.
If the above is confusing try this link - http://www.voidspace.org.uk/python/arti ... line.shtml
Setup Sickbeard
Just add Coronation Street as a new show and setup as you would for any other shows. (You don’t need it set as Active)
http://code.google.com/p/sickbeard/wiki/PostProcessing
Create a CorrieTVTemp Category in Sabnzbd
Setup a new SABnzbd Category for CorrieTV ( 1 ) and under folder/path create a CorrieTVTemp folder\* ( 2 ) to save to.
(remember to add the * so it doesn’t create any folders when saving). Also remember to make a CorrieTV folder in your watch folder and make sure your CorrieTVTemp folder\* is a real folder.
Note: Add a Failed folder in the same location as CorrieTVTempfolder to catch any mislabeled files.
Image1
Now copy CorrieTVrename.py to your Sabnzbd script folder location with your sabtosickbeard files as stated here. - http://code.google.com/p/sickbeard/wiki/PostProcessing
Open CorrieTVrename.py with your Text editor and change the setup Info.
Image2
Remember to select your new script (CorrieTVrename.py) ( 3 )in your new CorrieTV category.
Image1
Setup RSS in SABnzbd+
Click on the RSS tab at the top
Click Add feed if you already have feeds setup to add new feed.
Change your feed name to Coronation Street 1
Paste ( http://rss.binsearch.net/rss.php?max=50 ... tish.drama ) URL in the box provided 2
Now Click the Add Feed below your URL you just entered. 3
image3
Click Coronation Street
Image4
Select your new category you created ( corrie_tv ) ( 1 ) then click Filters.
Image5
Setup your Filters as shown below
Image6
0 -- Requires -- Coronation Street ---- remember to save setting on each line.
1 -- Accept -- .2012
2 -- Accept -- .2013
Click Read Feed you can select Force Download now to download all matches or Download each by itself.
Or click the arrow ( 2 ) and Save Settings to turn on the automatic download.
Image5
Everything should be setup. You now should have a RSS feed that filters out Coronation street . After Sabnzbd downloads the file it will run the corrie script and move to your TV downloads that you have setup with Sickbeard.
I Hope this setup not only helps the Coronation Street fans download and track there shows but also shows how you can use the RSS feeds to help download what the Big guns aren’t . As for the Script it’s just a simple code that takes the file name changes the air date to an easier to read format and uses the Thetvdb API to find the correct season/episode and renames the file so Sickbeard can process the file.
This is not a sure fire way to download Coronation Street but as long as the uploader is using his current file naming scheme everything should work.
Updated 05/20/2012 - will delete all files but AVI's correcting left over files problem.
Download the script here : http://www.mediafire.com/download.php?mve3ja45730qve0
Download these steps here: http://www.mediafire.com/download.php?yshnxxea1xkvotw
Updated 07/30/2012
New EastEnders Renamer setup
Create a Ender_TV Category in Sabnzbd - (same as the corrie_tv but change the name to enders)
Now copy EndersTVrename.py to your Sabnzbd script folder - (same as the corrie_tv but change the name to enders)
Open EndersTVrename.py with your Text editor and change the setup Info. - (same as the corrie_tv but change the name to enders)
Setup your RSS feed like this -
Feed - http://rss.binsearch.net/rss.php?max=10 ... multimedia
Category - enders_tv or what you created in your category settings
your filters should be -
0 --- Requires ----- EastEnders -------- default default default default
1 --- Requires ----- WS/PDTV/XviD --- default default default default
2 --- Accept ------- .2012 --------------- default default default default
3 --- Accept ------- .2013 --------------- default default default default
Here is the new EastEnder Script - ( setup the same as corrie_tv )
http://www.mediafire.com/?g7fewqqymjc05wz
Just Giving Back
J03