|
Batch Metadata Tools This forums is for discussing the user-created Batch Metadata Tools for SageTV. |
|
Thread Tools | Search this Thread | Display Modes |
#181
|
||||
|
||||
Basically, from my perspective, i'd grab the series info (which i'm doing now), and I'd use the year from the series info (which should be the same no matter the season), if it exists, otherwise, it would work as it does now, and not include the year. I'll do some testing.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#182
|
|||
|
|||
@stuckless - Sean, you're right about the tvdb name actually being "Battlestar Galactica (2003)". I tried the same method with "The Prisoner" by renaming my episodes to "The Prisoner (2009)" only to find out that it also worked because the tvdb name was "The Prisoner (2009)". Soooo...I just got lucky and my suggestion to use the modifed names in the MediaTitles.xml file is probably moot. Therefore, I'm interested to know the working status of the MediaTitles.xml approach.
|
#183
|
||||
|
||||
@newpath - could you email me your MediaTitles.xml, and a few filenames, that you are having issues with. I'll test them here and see the results. From that, i can then hopefully get a better handle on what's the issue. My time this weekend is pretty tight (I have some other dev committments), but I'll try to take a look at this as well. In my limited testing, the MediaTitles.xml was working, so having your filenames and MediaTitles.xml is important.
Thanks,
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#184
|
||||
|
||||
Sean, is there a way to stop BMT from overwriting the Episode field when doing a metadata update on imported videos which are not being imported as SageTV Recordings?
The Episode field usually contains the imported video filename and it is the field that videos are sorted on. BMT is replacing the Episode field with the same value as EpisodeTitle, which means all my videos are being displayed out of order. thanks, John |
#185
|
|||
|
|||
on 3.x (havent tried 4.x out yet) you could change the Media Title mask. There were 2 different masks... one for when importing tv to the recording db and one for when not... my guess is its still there....
__________________
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 |
#186
|
||||
|
||||
Quote:
It could be that for some reason sagetv stores the filename in the Episode fields, but then I question, where is the actual episode title stored? A Show contains the following fields... Code:
Title - the title of the Show (for music this should be album name) IsFirstRun - true if this Show is a first run, false otherwise (this parameter has no effect anymore since Airings determine first/rerun status) Episode - the episode name for this Show (for music this should be the song title) Description - the description of the Show Duration - the duration of the Show, not necessary and can be zero; this is only used for indicating differences between Airing duration and the actual content duration Category - the category of the Show (should be genre for music) SubCategory - the subcategory of the Show PeopleList - a list of all of the people in the Show, the roles of the people should correspond to the RolesListForPeopleList argument RolesListForPeopleList - a list of the roles for the people in the Show, this should correspond to the PeopleList argument Rated - the rating for the Show see GetShowRated() ExpandedRatingsList - the expanded ratings list for the show, see GetShowExpandedRatings() Year - the year of the Show ParentalRating - the parental rating for the Show (this is no longer used since Airing contains the parental rating) MiscList - miscellaneous metadata for the Show ExternalID - the global ID which should be used to uniquely identify this Show Language - the language for the Show OriginalAirDate - the original airing date of the Show BTW... unchecking Update Wiz.bin will still populate the Season/Episode info in the custom metadata fields (which is required for fanart), but it will not use the AddShow() api to directly update the wiz.bin. I don't think BMT allows masks on the Episode title (I could be wrong). I think it only allows masks on the Title field.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#187
|
|||
|
|||
Quote:
but... i think for sorting imported videos the Sage video library sorts by the MediaTitle field... which i think is the title field that you allow a mask to be set for... which should/might be what he is looking for...
__________________
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 Last edited by razrsharpe; 03-15-2010 at 12:54 PM. |
#188
|
||||
|
||||
But if I turn off update wiz.bin I won't get any description.
I think the addshow part is handling the music field anomaly, but not catering for the imported video field anomaly. Unfortunately you need to look further up the page for the descriptions of GetShowTitle() and GetShowEpisode() to see a proper description of what is stored in those fields Code:
Title: the title of the specified Show. For music this will correspond to the Album name. For imported videos, this will be the title of the file with the relative import path as it's prefix Episode: the episode name for the specified Show. For music files, this will be the name of the song. For imported videos, this will be the title of the file. Last edited by JREkiwi; 03-15-2010 at 12:56 PM. |
#189
|
||||
|
||||
John, I gues I'm trying to understand exactly what that would look like... so, if I have an import dir of "/Videos/" and I import "/Videos/DVDs/Terminator/VIDEO_TS", then my fields become
Title=DVDs/Terminator/VIDEO_TS/The Terminator Episode=The Terminator likewise, if i import, "/Videos/TV/Heroes/Season 1/Heroes S01E01.avi" Title=TV/Heroes/Season 1/Heroes/Heroes S01E01 Episode=Heroes Episode Title Would that be correct? If so, I can look at changing the code, I was unaware that the title was to contain the relative path of the imported file.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#190
|
||||
|
||||
Sean, Sorry I'm at work at the moment and can't recall the details off the top of my head. It would be easy enough to check with GetShowTitle() and GetShowEpisode() on some unadulterated imports.
I cheat when using AddShow for imported videos and just use GetShowTitle() to get the existing value of title and use that as the title value. The episode value on imported videos i believe defaults to the filename excluding extension and that is the value the default STV uses to sort on, so in your example if I was changing it I would set it to Episode=Heroes S01E01 Pilot so that it still sorts nicely. John |
#191
|
||||
|
||||
Hey Sean, I remember seeing a post for how to enable support for
Code:
Show SxE - Episode.avi Code:
Top Gear 10x02 - Crossing The Channel.avi
__________________
Clients: 1xHD200 Connected to 50" TH-50PZ750U Plasma Server : Shuttle SFF SSH55J2 w/ Win7 Home, SageTV v7, Core i3 540, 2GB RAM, 30GB SSD for OS, 1.5TB+2x1TB WDGP for Recordings, BluRay, 2xHDHR, 1xFirewire SageTV : PlayOn, SJQ, MediaShrink, Comskip, Jetty, Web Client, BMT Having a problem? Don't forget to include a log! (Instructions for: PlayOn For SageTV v1.5, MediaShrink) |
#192
|
||||
|
||||
@evilpenguin - not sure what perspective you are looking at... so i'll cover both
1. To add support for parsing tv filenames, the scrapers are in scrapers/xbmc/tvfilenames. You modify an exsiting scraper, or add a new one to cover the filename patterns that you want. There is already a scraper for Title-00x00.xml that should include the filenames that you listed. But, maybe the scraper is broken in your case. 2. If you want to name your titles in the format, "Show SxE Episode", then you can look at the title masks (just search for mask in the configuration ui). If it's neither of those options, then let me know.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#193
|
||||
|
||||
Quote:
Code:
Processing: Top Gear 10x01 - The Best Driving Roads In Europe.avi Searching for: Top Gear 1 Search Results: Top Gear 1 [h=help, q=quit, n=next (default), ##=use result ##, TITLE=Search TITLE] > It covers both SXXEXX and SxE as well as handing some common naming conventions that I found caused problems. Title-00x00.xml: Code:
<scraper name="title-00x00" content="filename" thumb="thumb.png"> <!-- input: $1=complete file uri --> <!-- returns: show name --> <GetShowName dest="3"> <RegExp input="$$1" output="\1" dest="3"> <expression>.*[/\\](.+)[ ]?[\-\. ]{1}[ \[\.]?S?([0-9]{1,2})[ \.\-]?[xE]([0-9]{2})[^pi0-9]</expression> </RegExp> </GetShowName> <!-- input: $1=complete file uri --> <!-- returns: Season #--> <GetSeason dest="3"> <RegExp input="$$1" output="\2" dest="3"> <expression>.*[/\\](.+)[ ]?[\-\. ]{1}[ \[\.]?S?([0-9]{1,2})[ \.\-]?[xE]([0-9]{2})[^pi0-9]</expression> </RegExp> </GetSeason> <!-- input: $1=complete file uri --> <!-- returns: Episode #--> <GetEpisode dest="3"> <RegExp input="$$1" output="\3" dest="3"> <expression>.*[/\\](.+)[ ]?[\-\. ]{1}[ \[\.]?S?([0-9]{1,2})[ \.\-]?[xE]([0-9]{2})[^pi0-9]</expression> </RegExp> </GetEpisode> </scraper>
__________________
Clients: 1xHD200 Connected to 50" TH-50PZ750U Plasma Server : Shuttle SFF SSH55J2 w/ Win7 Home, SageTV v7, Core i3 540, 2GB RAM, 30GB SSD for OS, 1.5TB+2x1TB WDGP for Recordings, BluRay, 2xHDHR, 1xFirewire SageTV : PlayOn, SJQ, MediaShrink, Comskip, Jetty, Web Client, BMT Having a problem? Don't forget to include a log! (Instructions for: PlayOn For SageTV v1.5, MediaShrink) Last edited by evilpenguin; 03-15-2010 at 07:03 PM. |
#194
|
||||
|
||||
wow... that really does make my head hurt.. i started to work my way through it... but then I just up
btw... i took update to my scraper and checked it in... so that'll be in the next build. thx.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#195
|
||||
|
||||
Just for the record
Quote:
Title=DVDs/Terminator Episode=Terminator import "/Videos/DVDs/Terminator" Title=DVDs/Terminator Episode=Terminator Quote:
Episode=Heroes S01E01 The only use I see in the Episode field on imported videos is that it is the value that is used for sorting, so if my filenames are constructed so that they are sorted correctly then there's no need to change the Episode field. John |
#196
|
||||
|
||||
Thanks John, I was inpecting some files last night as well.. to better understand how sagetv uses those 2 fields.
I hope that I can resolve some of these things for the next build. Thanks, Sean.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#197
|
||||
|
||||
So I had a problem with my Sage server last night, but I didn't loose any of my recordings. When I go into TV Explorer I see all my recordings and imports, but I don't see the season or episode information for anything recorded prior to the problem. That shouldn't be a problem since I can go to the BMT web page and get it started looking for the metadata. Oops, most of my recordings aren't shown in either imported videos or recordings. I'm not sure why BMT is missing them. I could manually get the metadata from within Sage, but there's close to 1,000 recordings so I'd rather not do that.
Things I've tried so far: 1. Full reindex both from BMT's GUI and with the property in Sage. 2. Refresh imports. 3. Added my recordings folder to the imports folder. I'm not sure what to try next. Any suggestions would be greatly appreciated. |
#198
|
||||
|
||||
@toricred - you want to browse the collection in bmt, where it's showing missing recordings, etc, and then create a support zip for me with just the log files. Maybe there are some errors in there for some shows, and that's why they are not showing up.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#199
|
||||
|
||||
The zip file has been sent.
|
#200
|
||||
|
||||
OK, so it's working to a degree after running the advanced video recovery process to update the paths to the files even though they never changed. The problem now seems to be that the automatic plugin is not working. How long after a recording starts should it take to go get the metadata?
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Batch Metadata Tools new releases subscription thread | stuckless | Customization Announcements | 18 | 02-17-2010 09:27 PM |
Is there a way of doing Metadata WITHOUT BMT | plnewton | SageTV Customizations | 12 | 08-17-2009 06:53 PM |
BMT Metadata Provider List? | cowboyway | SageMC Custom Interface | 1 | 08-12-2009 05:54 AM |
Metadata Tools (Donations) | stuckless | SageTV Customizations | 4 | 06-26-2009 05:54 AM |