2010-12-10, 19:45
IMPORTANT: Since SageTV has been purchased by Google and its future is unknown, I have abandoned SageTV and moved to ForTheRecord. I encourage you to check out the ForTheRecord PVR integration script I have made available
I've been using Sage TV as my PVR, which is a great piece of software, however, the front end and media library are not nearly as polished and XBMC's.
It also doesn't support as many formats as XBMC, and struggles with hardware accelerated playback on my ION HTPCs.
For that reason, I want to continue to use XBMC's excellent library to manage and playback my TV Shows and Movies.
So I created a script that does the following:
This script will archive your Movies and TV Shows like so, where DROPBOX is a folder you define:
DROPBOX\Movies\[Movie Title] (Movie Year)
DROPBOX\TV Shows\[Series]\[Season]\[SeriesName.SxxExx - Title]
XBMC likes this format, its easy to understand, and all your content will be available in XBMC's library once you add the folders to XBMC's sources and set the content type.
******************************************************
Download Here - v1.4.1
To install, read the readme.txt. Also, see the FAQ in the 2nd post below.
Post problems/feature suggestions/etc to this thread and I will try to help.
******************************************************
MORE DETAILS:
Current Features:
I've been using Sage TV as my PVR, which is a great piece of software, however, the front end and media library are not nearly as polished and XBMC's.
It also doesn't support as many formats as XBMC, and struggles with hardware accelerated playback on my ION HTPCs.
For that reason, I want to continue to use XBMC's excellent library to manage and playback my TV Shows and Movies.
So I created a script that does the following:
- Integrates XBMC video library and SageTV by archiving SageTV recordings in a format that XBMC understands and can scrape.
- Can add shows to XBMC's library even if they don't have known Season/Episode numbers.
- Optionally compresses the SageTV recordings w/ options.
- Optionally deletes the original recording once the archived recording is created.
- Optionally creates a symbolic link with an XBMC-friendly name that points to the original recording (allows XBMC to use its library and SageTV to both access the same video without conflict.)
- Optionally extracts Closed Captions from SageTV recordings and saves them as .srt's for XBMC subtitle compatibility.
- Optionally sends notifications on success/errors.
- Optional automatic updating of XBMC Library via XBMC's JSON-RPC interface.
- many more features (See comments in Config.xml)...
This script will archive your Movies and TV Shows like so, where DROPBOX is a folder you define:
DROPBOX\Movies\[Movie Title] (Movie Year)
DROPBOX\TV Shows\[Series]\[Season]\[SeriesName.SxxExx - Title]
XBMC likes this format, its easy to understand, and all your content will be available in XBMC's library once you add the folders to XBMC's sources and set the content type.
******************************************************
Download Here - v1.4.1
To install, read the readme.txt. Also, see the FAQ in the 2nd post below.
Post problems/feature suggestions/etc to this thread and I will try to help.
******************************************************
MORE DETAILS:
Current Features:
- All options are configurable in the Config.xml file.
- Filter which shows/movies you want to process by title/extension/highDefition. Also a wildcard is available for TV Shows & movies.
- Option to keep or delete original recording on a show-by-show basis.
- Comskip's .edl files can be copied with the video and changed to what type you want (commercial break/cut/mute etc.)
- Support for SageTV's .properties files.
- If .properties file does not exists, season/episode info is looked up on TheTVDB.com.
- Support for multi-part episodes.
- E-mail notifications on problems and successes.
- Sync watched statuses and resume points between XBMC and SageTV
- Optional compression via 3rd party program such as Handbrake.
- Limit the number of simultaneous compressions allowed to ease the CPU.
- Compression can be verified. And if it failed, you can optionally use Sage's internal compression to compress the video instead.
- Detection of hung compression based on CPU usage and Time Encoding.
- Closed Caption extraction.
- Symbolic links to "redirect" XBMC to the original recording, yet still use it's library features (must be using Vista or better).
- Option to "prefer original" recording which allows XBMC to use the original recording while it's available, and switch to the compressed recording when the original is no longer available.
- Log file expiration after user-defined number of days.
- Option to "manually archive" shows that don't have season/episode numbers available. They will be added to XBMC's library as "special" episodes, using meta-data from Sage.
- Option to wait X minutes before processing a video (give other process time to finish).
- Windows Only
- No GUI
- Only tested with SageTV v7 (but believed to work with v6)
- Allow automatic deleting of old videos based on user defined directory size limits.
- v 1.4.1 - Fixed thumbnail hash generation for hash's that start with zero. Improved TVDB lookup matching. Other minor improvements.
- v 1.4 - Automatic cleanup of video artifacts, auto-generate thumbs when none are available on thetvdb.com, can propagate symlink deletes to the original recording, options to force using current date as 'Aired Date' for manual archivings, Sage<-->XBMC Synchronization, handle > 99 episodes per season, many bug fixes
- v 1.3.2 - Fixed manual archiving (again). Now everything should work smoothly for manual archives.
- v 1.3.1 - Spaces are now allowed in the folder name where this program runs. Fixed bug where manual archive (special) episodes would be incorrectly marked as multi-part episodes by XBMC's scanner.
- v 1.3 - Added ability to archive videos that dont have season/episode numbers by using meta-data from SageTV and .nfo files. Option to extract thumbnails for manually archived videos (thumbnails will never be inside a commercial break, if you use .edl files). Added optional wait time before processing a video. Improved Config.xml to be more user friendly. Made more settings user-configurable in Config.xml. Added cleanup to keep tracking files from getting large.
- v 1.2 - Added "redirection" via symbolic links. Added "prefer_original" option for central MySQL XBMC libraries. Added automatic updating of XBMC via JSON-RPC interface. Added subtitle extraction via CCExtractor. Set limit on time between identical TVDB queries (60 min). Improved caching. Automatic deleting of old log files. Improved multi-part episode handling. Automatically adds tvdbid to Showfilter when a match is successful. (Prevents unnecessary re-queries to get the ID every time). Added local_equiv attribute to match UNC paths to their local equivalent.
- V 1.1 - Fixed bug where some .edls were not being read by XBMC. Fixed multi-episode naming for episodes that use external compression.
- V 1.0 - Initial release