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 06-26-2010, 08:29 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Unable to scan folder ....

I just installed BMT 4.1 on a clean v7 setup.

From the web ui I can click on individual shows/movies and scan for metadata and it works. But every folder I try to scan I get the message "Unable to scan folder xxxxx"

The log files don't sohw any errors.

Any thoughts?
Reply With Quote
  #2  
Old 06-26-2010, 08:56 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
I was made aware of that issue in another thread. I'm hoping to have a build out tomorrow that will fix that issue, plus a few others that people have been having.
Reply With Quote
  #3  
Old 06-27-2010, 07:50 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
This is working now... and now that it is working I have another question.

When processing an AVI file or a folder of AVI files that are named for TV Series as...

"Burn Notice S01E02 Identity.avi"

BMT changes the title or episode name to "Identity" which is correct, however, the folder in Sage is now sorted alphabetically by this name rather than by the file name and so the episodes are out of order.

Is there a way for me to customize the process BMT uses so the Episode Name would become...

"Burn Notice S01E02 Identity"

and then the sort would work again.

Thanks
Reply With Quote
  #4  
Old 06-27-2010, 09:13 PM
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
This is working now... and now that it is working I have another question.

When processing an AVI file or a folder of AVI files that are named for TV Series as...

"Burn Notice S01E02 Identity.avi"

BMT changes the title or episode name to "Identity" which is correct, however, the folder in Sage is now sorted alphabetically by this name rather than by the file name and so the episodes are out of order.

Is there a way for me to customize the process BMT uses so the Episode Name would become...

"Burn Notice S01E02 Identity"

and then the sort would work again.

Thanks
I removed the title masks from bmt because I think it's the wrong solution. I'm hoping that someone will update the stv (ie create a plugin) that will present the TV media types using the Title, EpisodeName, Season and Episode. Rewriting the titles should be a part of the display and not the data.
Reply With Quote
  #5  
Old 06-27-2010, 09:36 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
I agree... perhaps I will take a shot at it.
Reply With Quote
  #6  
Old 06-28-2010, 08:04 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
On second thought....

Now that I said I agree and then spent some time reviewing the issue, I need to retract partly. I do agree that Sage needs some sorting features added but given the different uses of the folder views it will be a complex solution.

A request... perhaps a compromise...

A configurable setting like... "Preserve Original Episode Name" in the Fanart/Metadata Options. If set, just leave the episode name as is which would leave it as the file name excluding extension. Then the sort would work again for the few of us that have raised this.
Reply With Quote
  #7  
Old 06-28-2010, 09:13 PM
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
Now that I said I agree and then spent some time reviewing the issue, I need to retract partly. I do agree that Sage needs some sorting features added but given the different uses of the folder views it will be a complex solution.

A request... perhaps a compromise...

A configurable setting like... "Preserve Original Episode Name" in the Fanart/Metadata Options. If set, just leave the episode name as is which would leave it as the file name excluding extension. Then the sort would work again for the few of us that have raised this.
That setting does exist. In the web ui, Configure -> Phoenix -> Fanart / Metadata Options -> Preserve Original Metadata for Recordings. By default this is turned on, which prevent BMT for updating core metadata values for recordings. In a nutshell, when this is turned on, only fanart title, season and episode get populated, which is all is needed for TV fanart.
Reply With Quote
  #8  
Old 06-28-2010, 09:38 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Understood, but the issue is with the Episode Name which sage uses for the sort. Even with this setting on, the Episode Name gets changed from the filename, to just the episode. I guess thats the field I want to protect so it would stay as the original filename... but I can see how that name is likely important to the tool and the metadata.

Perhaps I just need to find a way to make Sage sort by the original filename rather than the episode name.
Reply With Quote
  #9  
Old 06-29-2010, 02:00 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
The real problem is that Sage's media library is not aware of season and episode (or any sort of numerical sort, such as Original Air Date, ShowID, etc). It is designed for movies, and other 'on-off' videos. If you want proper sorting, the best option would be to bring the TV shows into the TV Show database (SageTV Recordings) where this data IS sortable. If Slugger adds auto changing the ExternalID to EPtvdb[tvdbID]s00e00 format as I've been manually doing, it will automatically move them to the recordings database, where OAD and ShowID are sortable. (I also made a quick and dirty stvi that displays the s00e00 format instead of the ShowID if it detects SeasonNumber and EpisodeNumber metadata in the malore menus that I will hopefully publish in the morning, once I figure out the whole manifest thing)

Also, when changing this ExternalID as I have been doing, it sets the Archive flag on the resultant 'recording', making it easy to filter between short-term recordings, and your 'archived' tv shows.
__________________
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
  #10  
Old 06-29-2010, 05:33 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
Understood, but the issue is with the Episode Name which sage uses for the sort. Even with this setting on, the Episode Name gets changed from the filename, to just the episode. I guess thats the field I want to protect so it would stay as the original filename... but I can see how that name is likely important to the tool and the metadata.

Perhaps I just need to find a way to make Sage sort by the original filename rather than the episode name.
You have the setting that I mentioned earlier turned on? If so, then BMT should not be touching the episodename field, and if it is, then it's a bug. When that setting is enabled (ie, don't update metadata for recordings), then only the Fanart Title, Season # and Episode # are updated. If there are not originally recordings, then BMT will update all fields including the episode name. I think that it would be better for someone to write a small plugin for Sage7 that updates Sage's media browser to add in the Season and Episode information to the title as it's being displayed... although I realize that doesn't fix your sorting issue.

Last edited by stuckless; 06-29-2010 at 05:35 AM.
Reply With Quote
  #11  
Old 06-29-2010, 05:50 AM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
I do have this setting turned on, however, these files are DVD Rips and not originally recordings. So it's not a bug.
Reply With Quote
  #12  
Old 06-29-2010, 08:50 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 do have this setting turned on, however, these files are DVD Rips and not originally recordings. So it's not a bug.
I've added an issue to enable the support for a custom title mask on import. This mask will not behave like it did is 4.0, instead, the mask will be used ONLY during an automatic import/scan, and it will only be used for TV media files that are NOT being imported as TV. Bottom line, I want to restrict the use of masks as much as possible, since I believe the UI should be updated to support the various display/sorting methods.
Reply With Quote
  #13  
Old 06-29-2010, 09:53 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
I would also agree with not manipulating metadata simply for the purpose of sorting. An Episode title should only contain JUST that. With metadata tags such as SeasonNumber and EpisodeNumber, there is no reason to mess with 'falsifying' titles. It should be relatively trivial to add new sort categories in the UI to take advantage of the season and episode tags...

The only thing that prevents it from being a super easy fix is there is no 'single' metadata tag that signifies some specific season-episode sort order - currently. What needs to be done is to either add a new metadata category called SeasonEpisode (which would just be the s00e00 string - but that's redundant with the separate tags), or, preferred, create a specific ShowID for such as mentioned previously, that is sortable, and add ShowID as a sort category to the UI.
__________________
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
  #14  
Old 06-29-2010, 10:39 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by Fuzzy View Post
I would also agree with not manipulating metadata simply for the purpose of sorting. An Episode title should only contain JUST that. With metadata tags such as SeasonNumber and EpisodeNumber, there is no reason to mess with 'falsifying' titles. It should be relatively trivial to add new sort categories in the UI to take advantage of the season and episode tags...

The only thing that prevents it from being a super easy fix is there is no 'single' metadata tag that signifies some specific season-episode sort order - currently. What needs to be done is to either add a new metadata category called SeasonEpisode (which would just be the s00e00 string - but that's redundant with the separate tags), or, preferred, create a specific ShowID for such as mentioned previously, that is sortable, and add ShowID as a sort category to the UI.
Just realized a problem with sorting The video library by ExternalID... movies and such would NOT work well that way.. well, unless the ExternalID for them was set to 'MF[MovieTitle]'.. could get complicated... just move the TV shows into recordings, and everything is simpler.. :-)
__________________
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
  #15  
Old 06-29-2010, 11:57 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Just posted up my first v7 import. Season-Episode for Malore Recordings. If SeasonNumber is present, it will show s00e00 notation instead of the last 4 digits of the ExternalID. Liking it so far...
__________________
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
  #16  
Old 06-29-2010, 12:25 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Fuzzy View Post
Just posted up my first v7 import. Season-Episode for Malore Recordings. If SeasonNumber is present, it will show s00e00 notation instead of the last 4 digits of the ExternalID. Liking it so far...
Looks good... see, my plan is working already... i removed it from bmt, and already there is a plugin to fill the gap
Reply With Quote
  #17  
Old 06-29-2010, 02:19 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
well, this plugin doesn't move the recordings, nor does it set the ID to something sortable by season-episode. that's what you're plugin should do.. ;-) (well, in all honesty, I made one that does that as well, but it currently has to be done individually from each imported episode, after BMT has assigned the season and episode to it...) not really sure how to automate it... figured BMT 4.3 would do that for me.. ;-)
__________________
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
  #18  
Old 06-29-2010, 04:17 PM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by Fuzzy View Post
What needs to be done is to either add a new metadata category called SeasonEpisode (which would just be the s00e00 string - but that's redundant with the separate tags)
If a SeasonEpisode property was added, i would create an interger that is
Code:
SeasonEpisode =  SeasonNumber * 100 + EpisodeNumber
This is what i did for TVE to do proper season/episode sorting. You only run into a problem if are more then 100 episodes for a given season (highly unlikely). However, this is easy enough to do with a simple java method so don't think its necessary to clutter up the custom properties any more.
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
Reply With Quote
  #19  
Old 06-29-2010, 07:42 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
I think I solved this for myself... at least it works for how I store my files. I created a 1 line STVI that changes the following code...

FolderMediaList = SortLexical( DataUnion(FolderMediaList), false, "GetShowEpisode" )

To

FolderMediaList = SortLexical( DataUnion(FolderMediaList), false, "GetMediaFileRelativePath" )

Now the Folder view sorts by the FileName and not the Episode Name and as I name my files in a sortable manner ("Burn Notice S01E02 Identity.avi"), it does not matter that BMT changes the Episode Name.

Now I can continue with making my STVI Custom Folder View use the new metadata rather than the parsing I was doing before (and then perhaps I can share that STVI for beta testing).
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
Satellite Channel Scan Error: Can't do C-Band and Ku-Band Providers in the same scan Kiwi_Tim Hardware Support 0 09-16-2009 05:19 AM
Unable to Scan for Channels under 6.3.8 Madz SageTV Beta Test Software 5 02-06-2008 02:00 AM
scan for new recordings, but don't record to that folder mistergq SageTV Software 3 01-15-2008 08:49 AM
unable to tune bbc4 - scanchannelsbda "scan timed out" pschweig SageTV United Kingdom 6 10-23-2006 03:42 AM
question about over/under scan davey_fl SageTV Software 5 02-01-2006 07:49 PM


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.