SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v7 Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV v7 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 7 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 7 and newer.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-02-2015, 05:07 PM
jptheripper jptheripper is offline
Sage Fanatic
 
Join Date: Dec 2007
Location: Florida
Posts: 956
.properties file specs for tv series

background - I use mymovies for file management

I have recently engaged with the mymovies folks, and I will be updating the dll that does sage .properties file exports for movies and tv series.

Movies are easy

Tv Series - does anyone have a .properties file that shows what should be included on an archived tv show so it shows properly in sage when included in an import directory?

My guess is for the minimum is:

Title - Show name?
Description - Episode Description
EpisodeName - self explanatory
Duration
RunningTime - different from duration?
SeasonNumber
EpisodeNumber
Year
OriginalAirDate

Any info or a fully populated example file would be AWESOME! thank you in advance
__________________
Gigabyte GA-MA770-DS3/4gb DDR2/AMD Phenom 955 3.2ghz Quad Core
Windows 7 64bit Home Premium
Hauppauge 1600/1850/2250/colossus/2650(CableCard 2 tuner)
8tb RAID5 storage/media/other &3tb RAID5 backup storage on a HighPoint RocketRaid 2680
1tb 3 disk Recording Pool
all in a beautiful Antec 1200
SageMyMovies/Comskip/PlayON/SageDCT/SRE
HD100/HD300 extenders
Reply With Quote
  #2  
Old 09-02-2015, 05:19 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by jptheripper View Post
background - I use mymovies for file management

I have recently engaged with the mymovies folks, and I will be updating the dll that does sage .properties file exports for movies and tv series.

Movies are easy

Tv Series - does anyone have a .properties file that shows what should be included on an archived tv show so it shows properly in sage when included in an import directory?

My guess is for the minimum is:

Title - Show name?
Description - Episode Description
EpisodeName - self explanatory
Duration
RunningTime - different from duration?
SeasonNumber
EpisodeNumber
Year
OriginalAirDate

Any info or a fully populated example file would be AWESOME! thank you in advance
Code:
#Generator: CMT Metadata, written on Sunday, August 23, 2015 2:04 PM
Subtitled=false
Genre=Drama
Contestant=
ChannelPremiere=false
RunningTime=0
Widescreen=false
Guest=
Choreographer=
ExtendedRatings=
Dolby=false
Composer=
Writer=
Stereo=false
ParentalRating=TVG
EpisodeNumber=9
Description=Mary accepts Adam's proposal, but doubts they can raise children.
ExternalID=EP0026330104
SAP=false
HDTV=false
Title=Little House on the Prairie
SeasonNumber=5
CC=false
SeriesFinale=false
TotalParts=0
Live=false
Voice=
Surround=false
Judge=
EpisodeName=The Wedding
Director=Michael Landon
SeriesPremiere=false
Anchor=
PartNumber=0
Guest\ Voice=
3D=false
DD5.1=false
Executive\ Producer=
Guest\ Star=
SeasonPremiere=false
Musical\ Guest=
New=false
Letterbox=false
Taped=false
Producer=
Misc=
Language=English
Dubbed=false
Narrator=
SeasonFinale=false
Rated=
Correspondent=
OriginalAirDate=279244800000
Host=
Team=
Year=
Premiere=false
Actor=Michael Landon;Karen Grassle;Melissa Gilbert;Melissa Sue Anderson;Richard Bull;Katherine MacGregor;Alison Arngrim;Jonathan Gilbert;Kevin Hagen;Dabbs Greer;Merlin Olsen;Patrick Laborteaux;Hersha Parady;Matthew Laborteaux;Linwood Boomer;Don "Red" Baker;Lindsay Greenbush;Sidney Greenbush;Brenda Turnbaugh;Wendi Turnbaugh
Reply With Quote
  #3  
Old 09-02-2015, 05:35 PM
jptheripper jptheripper is offline
Sage Fanatic
 
Join Date: Dec 2007
Location: Florida
Posts: 956
awesome I really appreciate it

Any idea what the source of

ExternalID

is? (edit - its the zap2it id, is this necessary?)

Any good lord, is OriginalAirDate unixtime in milliseconds? Tue, 07 Nov 1978 00:00:00 GMT Does seem right for that episode
__________________
Gigabyte GA-MA770-DS3/4gb DDR2/AMD Phenom 955 3.2ghz Quad Core
Windows 7 64bit Home Premium
Hauppauge 1600/1850/2250/colossus/2650(CableCard 2 tuner)
8tb RAID5 storage/media/other &3tb RAID5 backup storage on a HighPoint RocketRaid 2680
1tb 3 disk Recording Pool
all in a beautiful Antec 1200
SageMyMovies/Comskip/PlayON/SageDCT/SRE
HD100/HD300 extenders

Last edited by jptheripper; 09-02-2015 at 06:27 PM.
Reply With Quote
  #4  
Old 09-03-2015, 06:02 AM
Monedeath Monedeath is offline
Sage Expert
 
Join Date: Sep 2009
Location: Idaho
Posts: 514
Quote:
Originally Posted by jptheripper View Post
RunningTime - different from duration?
Yes, this comes from Sage being a recorder. If a program is scheduled to be on air for one hour, it will have a 1 hour duration. If at some point that recording were to say, become 42 minutes and 30 seconds in length, and be reimported into SageTV. It would then have a runtime that reflected the shorter recording time, but still report a 60 minute duration.

This is where people will start to see a red bar to go with their green and white bars during playback. SageTV uses the red bar to indicate incomplete recordings and which section it thinks is missing.
Reply With Quote
  #5  
Old 09-03-2015, 06:59 AM
jptheripper jptheripper is offline
Sage Fanatic
 
Join Date: Dec 2007
Location: Florida
Posts: 956
Quote:
Originally Posted by Monedeath View Post
Yes, this comes from Sage being a recorder. If a program is scheduled to be on air for one hour, it will have a 1 hour duration. If at some point that recording were to say, become 42 minutes and 30 seconds in length, and be reimported into SageTV. It would then have a runtime that reflected the shorter recording time, but still report a 60 minute duration.

This is where people will start to see a red bar to go with their green and white bars during playback. SageTV uses the red bar to indicate incomplete recordings and which section it thinks is missing.
perfect thank you
__________________
Gigabyte GA-MA770-DS3/4gb DDR2/AMD Phenom 955 3.2ghz Quad Core
Windows 7 64bit Home Premium
Hauppauge 1600/1850/2250/colossus/2650(CableCard 2 tuner)
8tb RAID5 storage/media/other &3tb RAID5 backup storage on a HighPoint RocketRaid 2680
1tb 3 disk Recording Pool
all in a beautiful Antec 1200
SageMyMovies/Comskip/PlayON/SageDCT/SRE
HD100/HD300 extenders
Reply With Quote
  #6  
Old 09-03-2015, 10:18 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by jptheripper View Post
ExternalID

is? (edit - its the zap2it id, is this necessary?)
I don't think any of the properties are 'necessary'. It just makes sense to populate any you can source info for.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #7  
Old 09-03-2015, 11:14 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Here's a few other OPTIONAL things to consider...

1. If I recall, ExternalID is used internally by SageTV to denote actual recordings vs imported media. For example ExternalID sthat starts with "EP" will show up as an actual SageTV recording instead of an imported media file. The numbers folloing EP is not relevant so in BMT, I'll do something like EP[IMDBID][SEASON][EPISODE], so might be EP39725740101.

2. Consider populating some of NON core fields that will help Phoenix and Gemstore better organize our media.

These include...
Code:
# These are core SageTV fields
Title=Ray Donovan
EpisodeName=The Kalamazoo
EpisodeNumber=1
SeasonNumber=3
OriginalAirDate=1436673600000
ParentalRating=TVM
Genre=Crime/Drama
RunningTime=3600000

# These are NON CORE OPTIONAL
IMDBID=tt3972574

# Separate fields for storing the "provider" and "id"
# So, you an use this for something like, "mymovies" for the ProviderID
# the MyMovies ID for the ProviderDataID.
# You might use this information, later, in SageTV, etc.
MediaProviderDataID=259866
MediaProviderID=tvdb

# Media TItle is usually same as Title
MediaTitle=Ray Donovan
# Media Types are "TV", "Movie", "Music"
MediaType=TV

# Setting this to MyMovies will prevent BMT/Phoenix from re-scraping the files when they are added/updated in sagetv. 
# The ScrapedBy can be anything, except for Phoenix :)
ScrapedBy=Phoenix
ScrapedDate=1437744051015
Dates are Java Date long values.
RunningTime is Milliseconds

And as Fuzzy said... populate whatever you have... the more the better.

Last edited by stuckless; 09-03-2015 at 11:21 AM.
Reply With Quote
  #8  
Old 09-03-2015, 11:56 AM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
In case it wasn't seen, there was an old sticky that talked about .properties and had some links to lists of valid entries. (I'm not sure how much has changed since then.)

Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #9  
Old 09-03-2015, 01:13 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
Quote:
Originally Posted by Monedeath View Post
Yes, this comes from Sage being a recorder. If a program is scheduled to be on air for one hour, it will have a 1 hour duration. If at some point that recording were to say, become 42 minutes and 30 seconds in length, and be reimported into SageTV. It would then have a runtime that reflected the shorter recording time, but still report a 60 minute duration.

This is where people will start to see a red bar to go with their green and white bars during playback. SageTV uses the red bar to indicate incomplete recordings and which section it thinks is missing.
Actually, that's not correct. The reason there's a 'Running Time' parameter is for movies. For example you have a 2 hour Airing on HBO of a movie; so that 2 hours is the duration. BUT the movie itself is only 1 hour and 50 minutes long....so that would then be the 'RunningTime' of the movie. The 'duration' is stored in the Airing object and the RunningTime is stored in the Show object (both use a field called 'duration'). SageTV has logic in the code for determining when you've watched something completely to take this into account. So when you stop playing that movie at the credits; and there's still another 15 minutes left in the actual program...it'll know you actually watched the whole movie.
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #10  
Old 09-03-2015, 07:54 PM
Monedeath Monedeath is offline
Sage Expert
 
Join Date: Sep 2009
Location: Idaho
Posts: 514
Quote:
Originally Posted by Narflex View Post
Actually, that's not correct. The reason there's a 'Running Time' parameter is for movies. For example you have a 2 hour Airing on HBO of a movie; so that 2 hours is the duration. BUT the movie itself is only 1 hour and 50 minutes long....so that would then be the 'RunningTime' of the movie. The 'duration' is stored in the Airing object and the RunningTime is stored in the Show object (both use a field called 'duration'). SageTV has logic in the code for determining when you've watched something completely to take this into account. So when you stop playing that movie at the credits; and there's still another 15 minutes left in the actual program...it'll know you actually watched the whole movie.
Interesting, although it has been the observed behavior I've seen when reimporting edited versions of episodes that have lost their commercials. May have been an unintended outcome, but it is there.
Reply With Quote
  #11  
Old 09-04-2015, 06:51 AM
Tiki's Avatar
Tiki Tiki is offline
Sage Icon
 
Join Date: Feb 2005
Location: Southwest Florida, USA
Posts: 2,009
Quote:
Originally Posted by Monedeath View Post
Interesting, although it has been the observed behavior I've seen when reimporting edited versions of episodes that have lost their commercials. May have been an unintended outcome, but it is there.
I don't think this is because of the Running Time parameter though.
I think Sage also keeps track of the airing start time and looks at the time/date stamp of the file (which should be when it stopped recording). If that timestamp minus the start time doesn't match the "duration" that Sage has stored, you will see the red bar indicating that something is missing (or the bar may be screwed up in other ways of the time stamp is really wrong).
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM
Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2)
,USBUIRT (multi-zone)
Source:
Comcast/Xfinity X1 Cable
Primary Client: Server Other Clients: (1) HD200, (1) HD300
Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE,
HDHR, HVR-2250, HD-PVR
Reply With Quote
  #12  
Old 09-04-2015, 07:27 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
The Airing has a duration, as does the MediaFile. The MediaFile duration is taken from the file itself when it is imported (I think it passes the file through ffmpeg - SageTVTranscoder - to get that info). The Airing duration would come from the actual EPG data if it was a recording, or from another metadata provider.

You can set an Airing's duration to whatever you want... you cannot alter or change the duration of the mediafile, as it is directly representative of the file itself.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #13  
Old 09-04-2015, 08:59 AM
Monedeath Monedeath is offline
Sage Expert
 
Join Date: Sep 2009
Location: Idaho
Posts: 514
Quote:
Originally Posted by Fuzzy View Post
The Airing has a duration, as does the MediaFile. The MediaFile duration is taken from the file itself when it is imported (I think it passes the file through ffmpeg - SageTVTranscoder - to get that info). The Airing duration would come from the actual EPG data if it was a recording, or from another metadata provider.
That's what I get for posting from memory rather than checking at the server, of course, it would help to not be 1,000 miles away from the thing when posting.

This does sound more like what I'm remembering seeing, so I stand corrected on this.

Quote:
Originally Posted by Tiki View Post
I think Sage also keeps track of the airing start time and looks at the time/date stamp of the file (which should be when it stopped recording). If that timestamp minus the start time doesn't match the "duration" that Sage has stored, you will see the red bar indicating that something is missing (or the bar may be screwed up in other ways of the time stamp is really wrong).
The web-interface has options for altering recording data to specify how many seconds(IIRC) before and/or after a recording was set to run, so SageTV does have a data field for that kind of information and does track it. The red bar indicates what Sage believes to be missing data based on reported start/stop times and file duration.

What I haven't seen exposed to an end-user (via plugin) is how Sage tracks the multi-part recordings that sometimes occur when there are tuner problems or other things going on(person watching live TV and tuning in and out of a channel without actually setting to record continuously), as I've seen the progress bar fill up with alternating bands of red and green, at least until the watched flag comes rolling along, which will overwrite everything to the left of it. So SageTV itself evidently has some way of knowing and tracking when each individual part of a multi-part recording of a single program was made. Although those are very much edge-cases for the more crazed video-archivists among us, as that would normally be grounds to re-record or find other means of obtaining a continuous recording of the show in question, if not simply deleting it. So the need to import or export metadata for such an event is quite small I'd imagine.

Last edited by Monedeath; 09-04-2015 at 09:16 AM.
Reply With Quote
  #14  
Old 09-04-2015, 10:36 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by Monedeath View Post
What I haven't seen exposed to an end-user (via plugin) is how Sage tracks the multi-part recordings that sometimes occur when there are tuner problems or other things going on(person watching live TV and tuning in and out of a channel without actually setting to record continuously), as I've seen the progress bar fill up with alternating bands of red and green, at least until the watched flag comes rolling along, which will overwrite everything to the left of it. So SageTV itself evidently has some way of knowing and tracking when each individual part of a multi-part recording of a single program was made. Although those are very much edge-cases for the more crazed video-archivists among us, as that would normally be grounds to re-record or find other means of obtaining a continuous recording of the show in question, if not simply deleting it. So the need to import or export metadata for such an event is quite small I'd imagine.
That is handled by a given MediaFile object containing a number of segments. Each of those segments has it's own duration, and start time. Multiple MediaFile Segments are attached to the same Airing object.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Properties file heffneil SageTV Software 9 02-15-2012 08:07 PM
BMT and Properties file? nyplayer Batch Metadata Tools 2 03-14-2011 08:20 PM
* H U G E * sage.properties file??? arielshu SageTV Software 2 05-16-2007 05:10 PM
SageTV 6.1 and the new .properties file AtariJeff SageTV Software 0 04-14-2007 07:29 PM
Properties file RRR SageTV Software 10 08-24-2004 10:37 AM


All times are GMT -6. The time now is 03:15 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.