SageTV Community  

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

Notices

Batch Metadata Tools This forums is for discussing the user-created Batch Metadata Tools for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-03-2010, 09:11 AM
Fonceur's Avatar
Fonceur Fonceur is offline
Sage Icon
 
Join Date: Jan 2008
Location: DDO, QC
Posts: 1,915
EPGID...

I am curious, are you making up/overwriting the regular EPGID with something like: EPmt75760S05E18 (instead of EP757600518) or is it SageTV 7.0 (or the guide data provider) doing it? The lower cap "mt" is kinda pointing to BMT, but...
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API
MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC
TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device
TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2
TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad
Reply With Quote
  #2  
Old 09-03-2010, 09:37 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Yes, that is done by BMT. It is how BMT moves imported tv shows to the recordings.
__________________
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
  #3  
Old 09-03-2010, 09:43 AM
Fonceur's Avatar
Fonceur Fonceur is offline
Sage Icon
 
Join Date: Jan 2008
Location: DDO, QC
Posts: 1,915
OK, thanks. So I guess I have to go put a work around in my MainLobby, CQC and Android applications that got broken by that non standard modification...

EDIT: Probably a good idea to double check with someone from Sage that it won't break anything in SageTV itself, having those non conform EPGID... For example when grouping by series or something...
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API
MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC
TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device
TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2
TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad

Last edited by Fonceur; 09-03-2010 at 09:53 AM.
Reply With Quote
  #4  
Old 09-03-2010, 10:05 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Fonceur View Post
OK, thanks. So I guess I have to go put a work around in my MainLobby, CQC and Android applications that got broken by that non standard modification...

EDIT: Probably a good idea to double check with someone from Sage that it won't break anything in SageTV itself, having those non conform EPGID... For example when grouping by series or something...
Previously, I've checked with the core sage team. The EPGID in sage is basically, EP/SH/MV/DT followed by the 6 digit numeric series id from the guide data. Since bmt does not know the actual series id from the guide data, it creates its own, and uses a EPmt prefix to identify that bmt modified the epgid.

More recently, I've had discussions about sage using other prefixes to identify imported media, and as of 7.0.16, sage now support IM and IE which represent, "Imported Movie" and "Imported Episode" respectively. So in future releases of BMT, i'll probably not use the EPmt and MVmt and use IEmt and IMmt instead. The reason that I wasted a new prefix is so that I can easily identify an imported recording vs a real recording.

fyi, bmt uses 2 formats for epgid, EPmtTVDBIDS##E00, and MVmt########, and soon (IEmt and IMmt), but the one thing that is for certain, is the characters 3 and 4 will be 'mt'.

EDIT: As Fuzzy noted as well, bmt only ever modifies the EPGID if a user requests to import an existing file in as a Sage Recording.

EDIT2: I am curious how this epgid modification created a bug in your apps?

Last edited by stuckless; 09-03-2010 at 10:10 AM.
Reply With Quote
  #5  
Old 09-03-2010, 10:34 AM
Fonceur's Avatar
Fonceur Fonceur is offline
Sage Icon
 
Join Date: Jan 2008
Location: DDO, QC
Posts: 1,915
There are some more prefixes, like SP for sporting events. And the length of the series id is not a constant, about 3 years ago they had to add a digit or 2, to prevent running out of them... I've been extracting the episode production numbers since 2004 in BTV...

What broke is that I was taking the Integer value of the last 4 digits. While 1E01 could be wrongfully extracted as 10, the value 5E18 just doesn't fit in an Integer... As long as you pad to 2 on the other side of the E (i.e. 2E01 not 2E1), then I can just strip the E and be on my way...
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API
MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC
TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device
TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2
TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad
Reply With Quote
  #6  
Old 09-03-2010, 10:44 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Fonceur View Post
There are some more prefixes, like SP for sporting events. And the length of the series id is not a constant, about 3 years ago they had to add a digit or 2, to prevent running out of them... I've been extracting the episode production numbers since 2004 in BTV...

What broke is that I was taking the Integer value of the last 4 digits. While 1E01 could be wrongfully extracted as 10, the value 5E18 just doesn't fit in an Integer... As long as you pad to 2 on the other side of the E (i.e. 2E01 not 2E1), then I can just strip the E and be on my way...
Actually I do pad both the season and episode #s in the epgid (actually fuzzy's idea to use that in the epgid, since previously I was just randomly generating ids to make the import work)
Reply With Quote
  #7  
Old 09-03-2010, 11:09 AM
Fonceur's Avatar
Fonceur Fonceur is offline
Sage Icon
 
Join Date: Jan 2008
Location: DDO, QC
Posts: 1,915
Quote:
Originally Posted by stuckless View Post
Actually I do pad both the season and episode #s in the epgid
OK, all good, I can work with that.

The only possible issue that I'm seeing with that scheme, instead of the usual production number, is for a daily shows with more than 99 episodes a year (i.e. Virginie in Quebec), but I guess there might not be a lot of those...
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API
MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC
TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device
TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2
TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad
Reply With Quote
  #8  
Old 09-03-2010, 11:35 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by Fonceur View Post
OK, all good, I can work with that.

The only possible issue that I'm seeing with that scheme, instead of the usual production number, is for a daily shows with more than 99 episodes a year (i.e. Virginie in Quebec), but I guess there might not be a lot of those...
most of those shows don't even have defined seasons, and don't have data on thetvdb, so don't get season-episode numebrs into BMT at all.
__________________
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


All times are GMT -6. The time now is 07:22 PM.


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