This project has moved. For the latest updates, please go here.

SageTV Request

Jun 18, 2014 at 7:28 PM
Edited Jun 18, 2014 at 7:41 PM
is it possible if given to you an XML file that contains sage data ... Including the fileID and MediafiledID that you can Parse these to a variable?. I believe doing this will complete SageTV completely. This will enable SAGETV users to keep the recordings with all the details in SageTV. See below in bold. I have some full XMLS in UPLOAD\NYPLAYER

FILEID
<airing channelId="62792" duration="1800" favoriteId="79042" sageDbId="118128" startTime="2014-06-17T14:30:00.00Z">

MEDIAFILEID
<mediafile duration="1800" sageDbId="145167" startTime="2014-06-17T14:30:00.00Z" type="TV">
Coordinator
Jun 18, 2014 at 8:04 PM
I don't understand, once the metadata is read from the XML file what do you want to do with it?


Jun 18, 2014 at 8:18 PM
Edited Jun 18, 2014 at 8:29 PM
I could name the file using SageTV Standards.

%ismovie%<%showname% (%airyear%),%showname% - S%season%##E%episode%## - %episodename% -%fileid%-0>.
Little People, Big World - S07E05 - A Bride and a Bulldozer -118128-0.mkv


The %mediafileid% can be use to issue a post command to delete the original file entry from the SAGE DB (wiz.bin).
Coordinator
Jun 19, 2014 at 3:26 AM
Open an enhancement ticket and will look into it. Be sure to attach some sample XML files

Coordinator
Jun 20, 2014 at 5:52 PM
https://mcebuddy2x.codeplex.com/workitem/1887

added

Added support for reading SageTV XML metadata
Added support for 2 new SageTV parameters in Custom Rename and Custom Command, %airingdbid% and %mediafiledbid% which represent the sageDbId’s from the SageTV metadata from the Airing and MediaFile tags respectively
Marked as answer by rboy1 on 6/20/2014 at 10:52 AM
Jun 21, 2014 at 12:15 AM
Edited Jun 21, 2014 at 12:16 AM
Great job on this it works perfectly.. I just have one thing is it possible to parse the <parentalRating>TVPG</parentalRating>. I uploaded a log to your server with a fully working rename. using the airing id etc.
Adam12-S01E05-YoureNottheFirstGuysHadtheProblem-125689-0.mpg-Rename SageLocal-2014-06-20T17-03-27.9838031-07-00.zip
Coordinator
Jun 21, 2014 at 4:11 AM
The rating tag is used for capturing the rating and it is already available in custom commands and rename