[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

Re: [WINDOWS] SABSync - TV Show Syncing

Post by markus101 »

Updated SABSync to 0.9.6 to fix the issue johncaruso mentioned. GUI has also been updated (0.4.0 released) and also included with SABSync 0.9.6.

You are now able to test SABSync from the GUI and add a scheduled task (also test the scheduled task to ensure it will run properly), minimum 15 minutes delay between running SABSync in the scheduled task. You will also need to provide the username and password for the service to run under, also choose whether you want the console window to be visible when the Scheduled Task runs or not (running hidden will run SABSyncHide.exe to invoke SABSync.exe).

For Vista, 7 or Server 2008 you will need to run SABSyncGUI as the Administrator (click-click, Runas Administrator), otherwise the Scheduled Task cannot be setup, if UAC is disabled you may be able to bypass that.

-Markus
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
sentra99
Newbie
Newbie
Posts: 9
Joined: April 4th, 2010, 12:22 pm

Re: [WINDOWS] SABSync - TV Show Syncing

Post by sentra99 »

ok i have one show it will not download. this is what it says when reading the rss feed. Verifying 'Doctor Who 2005.5x04.Time Of The Angels.720p HDTV x264-FoV'
Unsupported Title: Doctor Who 2005.5x04.Time Of The Angels.720p HDTV x264-FoV
not sure what would make it a unsupported title. who love any help thanks again
markus101
Release Testers
Release Testers
Posts: 406
Joined: August 13th, 2008, 2:51 am

Re: [WINDOWS] SABSync - TV Show Syncing

Post by markus101 »

It's actually the 5x04 that is the issue, I hadn't seen that in a non-Newzbin feed before, so I hadn't added it in. I'm working on it right now, not a huge change so it should be pretty quick, thanks for letting me know.

-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 »

SABSync 0.9.7 adds support for RSS titles with 1x01 naming for Season/Episode.

Grab it from: http://code.google.com/p/sabscripts

-Markus
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
sentra99
Newbie
Newbie
Posts: 9
Joined: April 4th, 2010, 12:22 pm

Re: [WINDOWS] SABSync - TV Show Syncing

Post by sentra99 »

still getting the same error after updating. Not sure what is going on.
markus101
Release Testers
Release Testers
Posts: 406
Joined: August 13th, 2008, 2:51 am

Re: [WINDOWS] SABSync - TV Show Syncing

Post by markus101 »

Sorry about that, missed a couple of things, 0.9.8 should actually fix it :)

-Markus
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
sentra99
Newbie
Newbie
Posts: 9
Joined: April 4th, 2010, 12:22 pm

Re: [WINDOWS] SABSync - TV Show Syncing

Post by sentra99 »

Thats ok having to manual download one program. Is alot better then manual downloading all of the tv shows i watch. I really appreciate the hard work you put into the program.
Thanks for taking time out of your day to  fix a small problem. I was having with sabsync. sabsync is now downloading the tv show. Without any problems. Thanks again for your hard work.
Last edited by sentra99 on April 25th, 2010, 5:53 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 »

Thanks for the update sentra, glad its working for you properly now.

-Markus
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
LarzJG
Newbie
Newbie
Posts: 38
Joined: April 16th, 2010, 4:29 pm

Re: [WINDOWS] SABSync - TV Show Syncing

Post by LarzJG »

Hey Markus,

After getting it set up right, it's running very very smooth. Your install stuff is good.

Got one file that bugged me out today, maybe it's worth looking at - it redownloaded itself about 30 times before I caught it. ;)
   
    The Colbert Report - 2010-02-01 - Nicole.Detling.Miller,.Jessica.Smith,.Harold.Ford.Jr.1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.avi
Verifying 'The Colbert Report 2010 02 01 Nicole Detling Miller Jessica Smith Harold Ford Jr HDTV XviD FQM'
'The Colbert Report' is being watched.
Checking Queue for: [The Colbert Report 2010 02 01 Nicole Detling Miller Jessica Smith Harold Ford J] or [The Colbert Report - 2010-02-01 - Nicole Detling Miller, Jessica Smith, Harold Ford Jr.]
Checking for Imported NZB for [The Colbert Report 2010 02 01 Nicole Detling Miller Jessica Smith Harold Ford J] or [The Colbert Report - 2010-02-01 - Nicole Detling Miller, Jessica Smith, Harold Ford Jr.]
Adding report [The Colbert Report 2010 02 01 Nicole Detling Miller Jessica Smith Harold Ford Jr HDTV XviD FQM] to the queue.
Queue Response: [ok]
Got any idea why this one kept getting readded? :)
markus101
Release Testers
Release Testers
Posts: 406
Joined: August 13th, 2008, 2:51 am

Re: [WINDOWS] SABSync - TV Show Syncing

Post by markus101 »

Holy crap... That's a lot of downloads. Based on your sorting string that file should be found, I have a feeling the imported NZB wasn't found due to a 80 character limitation from SABnzbd for the name in the queue and the nzb file, but it still should have been caught at the at the disk level. I will dig into it further. It also looks like the part of SABSync that should look for *S01E01* instead of * - S01E01 - * is flawed, so I will need to fix that.

-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 »

Think I got it figured out, it was actually a couple of issues, one was the actual check for a daily show episode on disk, this will be fixed, the other is an issue with the way SABnzbd trims down the name of an item added by a newzbin report ID to 80 characters (and then trims any trailing spaces and periods), the latter I just found out, but does not trim down a NZB title added by any other means, also unknown. The issue you saw was actually due to SABSync trimming the title to 80 characters when looking for an existing NZB file (which when imported by SABnzbd was not trimmed down) so it was not found, plus the check for the episode on disk was flawed (multiple *'s effectively broke it).

This will be fixed soon I hope, we know the root cause, but with some major help from johncaruso there is some overhauling of the code being done, which will slow the next release down. As an interm fix to stop this episode from downloading over and over, create a file in your nzb imported directory with this name:

Code: Select all

The Colbert Report 2010 02 01 Nicole Detling Miller Jessica Smith Harold Ford J.nzb.gz
Either rename the previous one, or create a text file with this name (can be empty), but make sure "Hide Extensions for Known File Types" is disabled in Folder Options, or the file will still have a .txt extension.

-Markus
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
G3f
Newbie
Newbie
Posts: 6
Joined: April 22nd, 2010, 4:46 am

Re: [WINDOWS] SABSync - TV Show Syncing

Post by G3f »

Hi markus, been having some probs since I switched to the 0.9.8 version. Running SABSync.exe seems fine, but running the SABSyncHide.exe throws up errors.

When it's first run I get a dw20.exe memory error, then after a couple of seconds SABSync.exe it throws up an exception.

ProcessID=0x674 (1652), ThreadID=0x468 (1128)

If that's any use. Its a Vista machine. It does seem to be still processing, because stuff get's added okay. Just having to close 20 application error boxes every day is pretty annoying ;)

The scheduled tasks look promising but I can't seem to get it to work, I just get message "ERROR: The network path was not found"

Also smaller thing, if you set the task repeat time higher than 60 minutes it throws up an error also.

I tried running it as administrator and the UAC is off, no to avail.
markus101
Release Testers
Release Testers
Posts: 406
Joined: August 13th, 2008, 2:51 am

Re: [WINDOWS] SABSync - TV Show Syncing

Post by markus101 »

Thanks for the info G3f, the bug you describe is an issue with the app waiting for user input before terminating, something I overlooked when I released this version (again), unfortunately when I added that line for testing and forgot to remove it.

As for the issues with the GUI, I'm not 100% sure why you get network path not found, but it sounds like it isn't able to find "localhost" which is what I'm using as the computer name, perhaps I should instead get the current computer name as use that, can you confirm that your HOSTS file contains localhost, with the IP 127.0.0.1 ?

If UAC is disabled you shouldn't need to do these steps: http://maximumpcguides.com/windows-vist ... osts-file/ just edit it in notepad (added the link just to be sure).

Over 60 minutes makes sense actually, it's because it is being added to run on a minute schedule with a modifier of the value supplied, and 60 is the maximum modifier for that field - I'll have to correct that, I was hoping it would allow more than 60 minutes to be passed, but I didn't think about it before.

Not sure when I'll get new versions of these apps out, but stay tuned.

-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 »

SABSync 0.9.8.1 Released!

You MUST download and install DotNet 4.0 to use SABSync 0.9.8.1 (and any future version)

You can get DotNet 4.0 as either the Web Installer (downloads the full package after you start the install - good for single system updates):
http://www.microsoft.com/downloads/deta ... laylang=en

or the Full Installer (aka Redistributable) which is good for updating multiple systems with only one download:
http://www.microsoft.com/downloads/deta ... laylang=en

In the end each will download about 50MB, this update will also require a reboot to your system.

As always download SABSync here: http://sabscripts.googlecode.com

Fixes a bug with checking for an episode in disk when the episode name was not in the file.
Fixes a bug with the Imported NZB check not checking for the proper NZB file (was limited to 80 characters)
If the episode name cannot be obtained from TheTVDB.com it will now be blank and the resulting Queue item will now be: "Show Name - 1x01" (with no trailing dash or spaces).

A major rework of the code has taken place (Thanks John) and there is more to come, along with some changes, still looking to implement TVRage for getting episode names if it fails retrieving it from TheTVDB.

I've also included an update to the GUI (0.4.1), it will now get the computer name instead of using localhost, I've also limited the check time to 60 minutes, since that is the maximum supported by Windows when using Minutes as the time variant.

If you have any issues, or questions, please post.

-Markus

PS In-case you missed the above, DotNet 4.0 is REQUIRED.
Last edited by markus101 on May 4th, 2010, 4:17 pm, edited 1 time in total.
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
Flambard
Newbie
Newbie
Posts: 23
Joined: November 4th, 2008, 12:21 pm

Re: [WINDOWS] SABSync - TV Show Syncing

Post by Flambard »

Hey Markus, great script & GUI you have here. It picks up all the shows etc that I want to look out for, but there seems to be something wrong with the disk checking part for existing episodes for me. Here's a log:

Code: Select all

Verifying 'Desperate Housewives S06E23 720p HDTV x264 CTU'
'Desperate Housewives' is being watched.
Episode Name is: I Guess This Is Goodbye
Quality is wanted - Default
Building string for Episode Dir
Building string for Episode File Mask
Checking Queue for: [Desperate Housewives S06E23 720p HDTV x264 CTU] or [Desperate Housewives - 6x23 - I Guess This Is Goodbye]
Checking Queue Item for match: medium - 6x19 - sal
Checking for Imported NZB for [Desperate Housewives S06E23 720p HDTV x264 CTU] or [Desperate Housewives - 6x23 - I Guess This Is Goodbye]
Getting Fixed Title for: Desperate Housewives S06E23 720p HDTV x264 CTU
Title Fix is: Desperate Housewives - 6x23 - I Guess This Is Goodbye
Adding report [Desperate Housewives - 6x23 - I Guess This Is Goodbye] to the queue.
DEBUG: http://localhost:8080/api?mode=addurl&name=http://nzbmatrix.com/nzb-details.php?id=649332%26hit=1&cat=tv&nzbname=Desperate Housewives - 6x23 - I Guess This Is Goodbye&priority=1&apikey=a04a13490984271c946b5444070df799&ma_username=&ma_password=
Queue Response: [ok]
I'm not really sure, but it seems not to be checking the disk? Here's another part of the same log, where it does find a file that exists:

Code: Select all

Verifying 'The Simpsons S21E22 720p HDTV X264 DIMENSION'
'The Simpsons' is being watched.
Episode Name is: The Bob Next Door
Quality is wanted - Default
Building string for Episode Dir
Building string for Episode File Mask
Checking directory: T:\The Simpsons\Season 21 for [*21x22*]
Episode on disk. 'T:\The Simpsons\Season 21\The Simpsons - 21x22 - The Bob Next Door.mkv'
The files exist on the disk in both examples. The top one matches character for character.

Any ideas why it's not checking?

Thanks!
Post Reply