[WINDOWS] SABSync - TV Show Syncing

Got a program that plays well with SABnzbd? Share it here!
Post Reply
markus101
Release Testers
Release Testers
Posts: 406
Joined: August 13th, 2008, 2:51 am

[WINDOWS] SABSync - TV Show Syncing

Post by markus101 »

All,

I'd like to announce the first Public Release of SABSync, which allows you to sync one or many Newzbin RSS Feeds to download TV shows automatically.

SABSync will check your TV directory for the shows you want downloading only shows that are missing.
It supports ignoring seasons for shows that you do not want (you choose the season and that season + all previous seasons are ignored).
SABSync will also check the queue for episodes pending to be download (for both NZBs SAB has retrieved the info for and ones still 'fetching') in addition SABSync will check your imported NZB folder to see if that NZB has already been imported (great for times when SAB fails to unpack or rename the download correctly).

Support for most if not all naming conventions that SABnzbd supports (simply copy and paste you TV Renaming string into SABSync's configuration), support for Daily Shows as well.

SABSync is developed in C# Using version 2.0 of the .Net Framework and is limited to Windows (mono on Linux may also work, but this is untested). Thanks to Koonfused (Kay.One) for the assistance in developing this great application.

SABnzbd 0.5+ is required to use SABSync, due to the way the Queue Check is being done as well as the support for priority on individual NZBs and Daily show naming conventions.

SABSync is available for download at: http://code.google.com/p/sabscripts/

The Source Code is also available on Google Code.

Cheers,

Markus

EDIT: Added Notice that SABnzbd 0.5+ is supported.
Last edited by markus101 on May 21st, 2010, 9:42 am, edited 1 time in total.
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
arastaf
Newbie
Newbie
Posts: 13
Joined: November 6th, 2009, 7:29 am

Re: [WINDOWS] SABSync - TV Show Syncing

Post by arastaf »

Looks nice, but maybe a write up on how to configure it would be helpful.

I changed the config to my folders, and such but it doesn't seem to like something.

Code: Select all

Loading configuration...
Loading RSS feed list from \Sabsync\rss.config
Downloading feed TVNZB from http://tvnzbrss.com/feedgen.php?id=*********
Input string was not in a correct format.
System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt64(String value, NumberStyles options, NumberFormatInfo numfmt)
   at SABSync.Program.GetReports() in D:\Opensource\sabscripts\SABSync\SABSync\Program.cs:line 178
   at SABSync.Program.Main() in D:\Opensource\sabscripts\SABSync\SABSync\Program.cs:line 62
=====================================================================

Input string was not in a correct format.
System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt64(String value, NumberStyles options, NumberFormatInfo numfmt)
   at SABSync.Program.GetReports() in D:\Opensource\sabscripts\SABSync\SABSync\Program.cs:line 178
   at SABSync.Program.Main() in D:\Opensource\sabscripts\SABSync\SABSync\Program.cs:line 62
Number of reports added to the queue: 0
Process successfully completed. Duration 2.3s
markus101
Release Testers
Release Testers
Posts: 406
Joined: August 13th, 2008, 2:51 am

Re: [WINDOWS] SABSync - TV Show Syncing

Post by markus101 »

Unfortunately SABSync only supports RSS Feeds from Newzbin, at this time we have no intention of opening this up for other feeds, due to the added functionality that Newzbin provides (mainly the Standard naming convention including the episode name).

I'm in the process of Creating a GUI front end for SABSync as I know not everyone wants/enjoys manually editing config files.

-Markus
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
markus101
Release Testers
Release Testers
Posts: 406
Joined: August 13th, 2008, 2:51 am

Re: [WINDOWS] SABSync - TV Show Syncing

Post by markus101 »

Hello,

I've uploaded a GUI front end, conveniently named SABSync GUI, it is available as a separate download on http://code.google.com/p/sabscripts.

Place it in the same directory as SABSync.exe and the config file and run SABSyncGUI.exe to edit the config file. You will still need to manually edit the rss.config file, using the template in the config as a base or as seen below.

Code: Select all

FeedName|Feed URL
Cheers,

Markus
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
markus101
Release Testers
Release Testers
Posts: 406
Joined: August 13th, 2008, 2:51 am

Re: [WINDOWS] SABSync - TV Show Syncing

Post by markus101 »

Version 0.5.1 of SABSync has been released to fix a bug where a trailing semi-colon ; in the seasonIgnore string in the config file would break the app.

-Markus
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
Duffman
Newbie
Newbie
Posts: 14
Joined: December 1st, 2009, 3:24 pm

Re: [WINDOWS] SABSync - TV Show Syncing

Post by Duffman »

I just tried this with It's Always Sunny In Philadelphia but it just added everything in the search including the episodes i already had. Maybe i have not getting the  TV Template correct.


This is what my file system looks like currently
G:\TV\It's Always Sunny In Philadelphia\Season 5\its.always.sunny.in.philadelphia.507.ws.pdtv.xvid-xii.avi

Is there a way to set up different templates for different shows? Not all of mine look the same unfortunately.

Thanks for this though it looks pretty promising and awesome.
markus101
Release Testers
Release Testers
Posts: 406
Joined: August 13th, 2008, 2:51 am

Re: [WINDOWS] SABSync - TV Show Syncing

Post by markus101 »

Ideally for SABSync all shows should be renamed with SAB's TV Sorting functionality, but will all have to use the same naming standard or it won't be able to find the files. With what you posted below it would be possible to have SABSync setup with this string %sn\Season %s\%s.n.%s%0e.%e.n.%ext

If you're looking for a way to mass rename a large group of TV shows (into almost any naming format), check out TVRename (http://www.tvrename.com/). I've used it a number of times and it does a great job, but it may have some difficulty with shows with season/episode such as below (507), but then again it may be improved (And most of my shows were already named nicely through SAB's sorting piece).

-Markus
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
jansverre
Newbie
Newbie
Posts: 14
Joined: January 11th, 2010, 8:11 pm

Re: [WINDOWS] SABSync - TV Show Syncing

Post by jansverre »

Thanks Great thing to have. Some more documentation could be good, but hey :) I have some questions so I'll just ask them here .

1. Is it not possible to have a log or something on what it is doing? :)
2. I don't have to start it more than once when the machine starts? :)
3. No I guess that is it . no.. I have my tv series spread over 4 harddrives.. will there ever be a possibility to monitor more folders?

So, that should be it. Again, love SABsync.. just waiting for some of my shows to air so I can se it gets downloaded by itself ;)

..No I don't understand how it works. 2 series was ready for download and SABsync did nothing. When I started SABsync manually again it found one of the shows and downloaded that episode, but not the other.
Last edited by jansverre on January 12th, 2010, 3:37 am, edited 1 time in total.
markus101
Release Testers
Release Testers
Posts: 406
Joined: August 13th, 2008, 2:51 am

Re: [WINDOWS] SABSync - TV Show Syncing

Post by markus101 »

Glad you're enjoying it and yes the documentation is lacking... hopefully I'll get to that one day.

1. SABSync does log what it is doing, to both text file (in the log sub-folder) and to the Console screen
2. You do have to run it as often as you would like to check for new NZBs on Newzbin (15 minutes minimum or they get mad)
3. This isn't something I had thought of, I'm using Windows Home Server so the number of physical drives is irrelevant to me (as it all exists in a TV Show Share) - I'll look into this.

Take a look at the log and see why it skipped the one, the one it downloaded when you manually ran it just means you need to schedule it with Windows Task Scheduler.

-Markus
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
jansverre
Newbie
Newbie
Posts: 14
Joined: January 11th, 2010, 8:11 pm

Re: [WINDOWS] SABSync - TV Show Syncing

Post by jansverre »

Excelent. Wonder why I couldnt find the logs that where right in front of my eyes :D

Thanks again. Wonderful :)
Last edited by jansverre on January 12th, 2010, 2:28 pm, edited 1 time in total.
jansverre
Newbie
Newbie
Posts: 14
Joined: January 11th, 2010, 8:11 pm

Re: [WINDOWS] SABSync - TV Show Syncing

Post by jansverre »

hello again :)

.. is it somehow possible maybe to get this fantastic thing to check a windows7 library? .. I don't want to install whs on the machine since it has so much installed and I have so many computers connected to it hehe .. and it is becoming annoying to have many episodes doubled because I have the series over 5 hard drives :p

or maybe you have found out something about having it check more locations? :)
markus101
Release Testers
Release Testers
Posts: 406
Joined: August 13th, 2008, 2:51 am

Re: [WINDOWS] SABSync - TV Show Syncing

Post by markus101 »

I haven't looked into multiple storage locations just yet, I did take a peek at looking at a Win7 Library, but it appears to be a major undertaking since they are not local paths, but an Index of multiple paths.

-Markus
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
jansverre
Newbie
Newbie
Posts: 14
Joined: January 11th, 2010, 8:11 pm

Re: [WINDOWS] SABSync - TV Show Syncing

Post by jansverre »

markus101 wrote: I did take a peek at looking at a Win7 Library, but it appears to be a major undertaking since they are not local paths, but an Index of multiple paths.

-Markus
I know.. stupid thing :p I will take a new look at setting up a whs :p Thanks again :)
jansverre
Newbie
Newbie
Posts: 14
Joined: January 11th, 2010, 8:11 pm

Re: [WINDOWS] SABSync - TV Show Syncing

Post by jansverre »

Hello again.  Do you know why it downloads many shows that already is on hard drive? woke up today with 2 sets of castle season 1 .. and it is very often it downloads episodes that already is on the machine...
markus101
Release Testers
Release Testers
Posts: 406
Joined: August 13th, 2008, 2:51 am

Re: [WINDOWS] SABSync - TV Show Syncing

Post by markus101 »

It sounds like it couldn't match those files - possible because it didn't find them in the same path, or if that's correct the Sort string that SAB uses to rename the file is not the same as the one that SABSync has so it won't properly match.

Looked into the site a bit more, really odd why that error is being thrown, but I have an idea about why, I'm working on resolving it, but unfortunately I have exceeded my 5 requests per hour, I've sent a request to the site asking for assistance with this, but I'll keep everyone posted.

Hope that helps.

-Markus
Last edited by markus101 on May 25th, 2010, 9:34 pm, edited 1 time in total.
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
Post Reply