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 07-15-2010, 12:42 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Problem with Sorting

If I look at a season of Charmed or any other series its shows the episodes in the right sequence. If i go deeper into the folder views the files are all out of sequence any way I can correct this.

Pics attached. The main Pic to the rightshows all the episodes correct but the files are all out of sequence. The files where in sequence before I downloaded the metadata.
Attached Images
File Type: jpg Season1main.JPG (94.4 KB, 223 views)
File Type: jpg Season1files.JPG (84.7 KB, 225 views)
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 07-15-2010 at 01:44 PM.
Reply With Quote
  #2  
Old 07-15-2010, 01:41 PM
ChaOConnor's Avatar
ChaOConnor ChaOConnor is offline
Sage Aficionado
 
Join Date: Nov 2008
Location: Bel Air, MD
Posts: 355
Mine does this too, no idea why. Only happens on TV shows.
__________________
Server: AMD Phenom II X6 1090T 3.2GHz, ASRock 890FX Deluxe4 890FX, PNY Optima 8GB DDR3 1333
Media Storage: Rosewill RSV-S4-X 4 Bay Enclosure w/ 4 x 3TB via unRAID
Capture: HDHomerun Prime, HDHomerun x 2
Software: Sage Server 7.1.9 on Windows 7 (Virtualized in ESXi)
Clients: i3-2105, ASRock Z68 Pro3-M, 4GB DDR3 1600, 64GB SATA III (OS), 2TB WD Green (Recording), PNY GT 430 // 2 x HD-300
Reply With Quote
  #3  
Old 07-15-2010, 01:48 PM
MitchSchaft MitchSchaft is offline
Sage Expert
 
Join Date: Jan 2008
Posts: 717
Mine does that even with the TVExplorer plugin .
Reply With Quote
  #4  
Old 07-15-2010, 02:44 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Yeah Its driving me crazy thought I could live with it but I like watching my episodes when I get an opportunity makes it hard find the next one unless you play all and skip forward. I will see if re-indexing helps.



Edit : Definitely a bug in the BMT after removing the import folder and re-adding them.. The right side looks like this.

1. Charmed
2. Charmed
3. Charmed
4. Charmed
5..............

No episode names like my first screen above had them.... but 1 thing now at least the files are in the correct sequence.
Attached Images
File Type: jpg noepisodes.JPG (86.0 KB, 190 views)
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 07-15-2010 at 02:58 PM.
Reply With Quote
  #5  
Old 07-15-2010, 03:24 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
I speak about the sorting, since bmt doesn't do anything related to sorting.

But as for the last screen shot, showing all episodes as "Charmed", that would be correct as of bmt 4.2. The reason has been discussed in other threads, bu the simple answer is this...

bmt stores the Show Title in the Title field and the Episode Title in the EpisodeName field. Since Sage has no concept of TV files that are recordings, then it just shows them like regular video files. Hopefully another plugin will come along and add a presentation that will show both the episode name, episode id, etc.

In older versions of bmt, bmt would create a Title using title masks, so that the "Title" would show up as "Charmed S01E01 - Episode Title", but this is something that should be done in the UI and not in the metadata.
Reply With Quote
  #6  
Old 07-15-2010, 04:18 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Also, as I've mentinoed elsewhere, the sage default video library is just NOT well suited to episodic tv shows. You would be far better off moving them into the recordings half of sage, where it is much better suited, and has much more control of grouping and sorting (Malore, especially). I've got a plugin in the repository that can move the imported episodes into the recordings database, after BMT has given them the proper metadata.
__________________
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 07-15-2010, 04:32 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
I understand all this but why does the sorting by filename get messed up when the metadata is updated? for the first time and in order to correct it you have to remove and re-add the import directory.
... my initial post.

PS I really do not want my imported shows with TV shows where they can be easily deleted. I have the imports where they cannot be deleted unless you go in and change the option.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 07-15-2010 at 04:36 PM.
Reply With Quote
  #8  
Old 07-15-2010, 05:03 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by nyplayer View Post
I understand all this but why does the sorting by filename get messed up when the metadata is updated? for the first time and in order to correct it you have to remove and re-add the import directory.
... my initial post.

PS I really do not want my imported shows with TV shows where they can be easily deleted. I have the imports where they cannot be deleted unless you go in and change the option.
FYI... The next release of the phoenix apis (probably not for 3+ weeks) will have an api, called, phoenix_media_GetFormattedTitle() (it's in the beta, unpublished builds now). This formatted title will behave similar to the legacy bmt title field, in that it will return a formatted title, on the fly, to a formatted title that use title masks. This way, a plugin author can simply change the GetMediaTitle calls in the STV with phoenix_media_GetFormattedTitle (ie, just a simply search/replace), and all your titles will magically show up correctly.

BMT/Phoenix will not provide this stv plugin... so hopefully some other plugin auther will use the API once it is available.
Reply With Quote
  #9  
Old 07-18-2010, 05:54 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Let me know when you have a version of this new api to test with as I am working on an STVI to better handle TV shows within the Video Folder area of Sage.
Reply With Quote
  #10  
Old 07-18-2010, 09:14 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
I see you released a new version that has this function in it. Do you have any details or an example to use the api with a mask?
Reply With Quote
  #11  
Old 07-19-2010, 05:56 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by jusjoken View Post
I see you released a new version that has this function in it. Do you have any details or an example to use the api with a mask?
From a STV, you can call, phoenix_media_GetFormattedTitle(MediaFile), where MediaFile is a sagetv mediafile object.

Currently there are 5 masks, which can be configured via the web ui or the phoenix-core plugin. The 5 masks cover the formatting titles for the following conditions...

1. Sage Recording
2. TV File with Season and Episode
3. TV File with Season and Disc
4. Regular Media File (movie, dvd, bluray, etc)
5. Regular Media File with more than one CD. (Movie cd1.avi, Movie cd2.avi)

The Title masks is basically a formatted string, that contains embedded SageTV fieldnames. For example the TV Season Mask looks like this...

Code:
${Title} - S${SeasonNumber:java.text.DecimalFormat:00}E${EpisodeNumber:java.text.DecimalFormat:00} - ${EpisodeName}
The format of a field is, ${name} or ${name:class:format}.
name is a sagetv field name
class (optional) is a format class
format (optional) is a format string

the format class and string is used for advanced formatting... ie, I wanted the Season and Episode #s to be formatted with leading 0s, so I used it there.

Some of the SageTV field names include
Actor
Description
Director
DiscNumber
EpisodeName
EpisodeNumber
EpisodeTitle
ExtendedRatings
Genre
IMDBID
MediaProviderDataID
MediaProviderID
MediaTitle
MediaType
OriginalAirDate
ParentalRating
Rated
RunningTime
SeasonNumber
Title
UserRating
Writer
Year

I should point out, that this API is still very beta, although the code has been around some time. It was originally contributed to the BMT project for a renaming files (although I forget by who, or else I'd credit the individual).

The Web UI shows the formatted title today, when you edit the metadata for an item. ie, when you are in that panel, and it shows in larger font, the title, it's actually the title computed using the GetFormattedTitle api.
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
Favorite Sorting bluenote SageTV Software 3 08-30-2008 03:56 PM
Sorting nathanm SageTV Studio 3 11-12-2006 11:15 AM
Library sorting darkside SageTV Software 1 06-19-2004 10:09 PM
Sorting Guide m0ng00se30 SageTV Beta Test Software 3 04-09-2004 01:16 PM
Sorting Recordings kummell SageTV Beta Test Software 0 01-30-2004 01:38 PM


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


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