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
  #1301  
Old 07-16-2009, 01:46 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by stuckless View Post

As for the web scanning.... I use the MediaFileAPI.GetMediaFiles(mask) to return the list of media files. For some reason, I am seeing tuners showing up as media files as well, but I just thought this was normal. Also, note that when you are doing a scan from the web UI, then only results that are returned in the list, are those that CANNOT be automatically updated. All auto updated results are not returned in the list. My thinking here is that you'd only want to edit those results that cannot be automatically updated.

I'll try to get a build out later today.
As for the getmediafiles(mask) I has that problem once and think I had to ad a "islibraryfile" true filter to get rid of the tuners. You may have already figures this out
Reply With Quote
  #1302  
Old 07-16-2009, 02:10 PM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by PLUCKYHD View Post
As for the getmediafiles(mask) I has that problem once and think I had to ad a "islibraryfile" true filter to get rid of the tuners. You may have already figures this out
i think islibraryfile will also filter out non archived recorded tv.
__________________
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
  #1303  
Old 07-16-2009, 02:24 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
From what I can recall, you can pass "L" in the mediamask. You both are correct, but it adds a side effect. To return all media files, I would use "TVDB", but it included the tuners. So I added "L", which resulted in "LTVDB", and it would remove the tuners, but it also removed my TV (as per razrsharpe's post). In the end, i'm basically doing a couple of querries and then using DataUnion to build up the complete list. I'm not happy with it, but it's working.
Reply With Quote
  #1304  
Old 07-16-2009, 02:35 PM
mkanet's Avatar
mkanet mkanet is offline
SageTVaholic
 
Join Date: Feb 2004
Posts: 3,359


Quote:
Originally Posted by MeInMaui View Post
I know, I know....

It's more work now, but if you can get the success rate up then you'll spend less time on support later.

Aloha,
Mike
__________________
Upgraded to Comcast X1 + Netflix/Amazon Video streaming

***RIP SageTV***
Reply With Quote
  #1305  
Old 07-16-2009, 02:53 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by razrsharpe View Post
i think islibraryfile will also filter out non archived recorded tv.
What if you filter istv = true as well? I don mess with tv in my app so don't know just throwing is out here

Also didn't know about the "L" in mediamask is this new because I thought the api when I looked a while back only called tvdb
Reply With Quote
  #1306  
Old 07-17-2009, 08:56 AM
sflamm sflamm is offline
Sage Icon
 
Join Date: Mar 2009
Posts: 1,653
+1 for MeInMaui's suggestions (sounds familiar )

I know it is more work in the short run, but I think that in the long run you'll find that it will work more effectively -- and be far less work. It is simpler logic, both to code/debug as well as to understand and use from the end user perspective. And it behaves as expected - meaning that you configure Movies, TV, and Music respectively and you get what you have configured for each.

As always - appreciate all your hard work. Here's to hoping you bite the bullet on making this improvement
Reply With Quote
  #1307  
Old 07-17-2009, 04:52 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Hey Stuckless I am unable to change the scaling directory in the latest build.

Changing property in the clients.properties and sage.properties has no effect

/phoenix/imageutil/cacheDir=\\\Servername\\fanart\\cachescaled
Reply With Quote
  #1308  
Old 07-17-2009, 05:34 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by PLUCKYHD View Post
Hey Stuckless I am unable to change the scaling directory in the latest build.

Changing property in the clients.properties and sage.properties has no effect

/phoenix/imageutil/cacheDir=\\\Servername\\fanart\\cachescaled
I just checked, this property is only read on startup. So you'd have to shut down sage, change the property, and then start again.

Personally, i'd avoid changing the cacheDir, and i'd try to keep it local for performance reasons.
Reply With Quote
  #1309  
Old 07-17-2009, 05:41 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by stuckless View Post
I just checked, this property is only read on startup. So you'd have to shut down sage, change the property, and then start again.

Personally, i'd avoid changing the cacheDir, and i'd try to keep it local for performance reasons.
Yeah I did that shut down sage and restarted still nope.

I would like to keep it local but the cache files are getting large and keeping it on the WHS c:\ is not the best situation.
Reply With Quote
  #1310  
Old 07-17-2009, 08:53 PM
veger69's Avatar
veger69 veger69 is offline
Sage Advanced User
 
Join Date: Feb 2009
Posts: 119
jetty problem

I have followed the install directions but am having a problem when trying to configure the Jetty settings

9. Access BMT web configuration Console

http://JettyServerName:JettyServerPortNumber/bmt


If you are running on the SageTV server and using the default port:

http://localhost:8080/bmt

I installed jetty with default settings so the second entry "http://localhost:8080/bmt" should work but i get

Directory: /bmt/
WEB-INF/ 0 bytes Jul 17, 2009 7:20:51 PM

when entering the address and if a click on the wed-info link I get this

HTTP ERROR: 404

NOT_FOUND

RequestURI=/bmt/WEB-INF/

Powered by Jetty://

any help would be appreciated
Reply With Quote
  #1311  
Old 07-18-2009, 07:01 AM
RedCoat999's Avatar
RedCoat999 RedCoat999 is offline
Sage Aficionado
 
Join Date: Aug 2003
Posts: 371
Want to ignore the following folders:

D\:Simons Files\Videos\Home Movies

and

D\:Simons Files\My Pictures


How should these be entered into the config screen?
Using latest builds 3.x etc.

If I did a scan then files in these folders should not show up, correct?
Thanks
__________________
Happy Sage customer since 2003

Proud owner of a HD200 connected to a 47" LCD. Loving Sage 7 and Phoenix
Reply With Quote
  #1312  
Old 07-18-2009, 08:59 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by veger69 View Post
I have followed the install directions but am having a problem when trying to configure the Jetty settings

9. Access BMT web configuration Console

http://JettyServerName:JettyServerPortNumber/bmt


If you are running on the SageTV server and using the default port:

http://localhost:8080/bmt

I installed jetty with default settings so the second entry "http://localhost:8080/bmt" should work but i get

Directory: /bmt/
WEB-INF/ 0 bytes Jul 17, 2009 7:20:51 PM

when entering the address and if a click on the wed-info link I get this

HTTP ERROR: 404

NOT_FOUND

RequestURI=/bmt/WEB-INF/

Powered by Jetty://

any help would be appreciated
The only time I've seen this if when Jetty does not extract the contents of the war file. An older build of the bmt web context didn't the set the appropriate flags to extract the contents, but that's been fixed. Are you running the latest beta? If you, then try removing the jetty/webapps/bmt/ directory, not the .war file, and then restart the server.
Reply With Quote
  #1313  
Old 07-18-2009, 09:03 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by RedCoat999 View Post
Want to ignore the following folders:

D\:Simons Files\Videos\Home Movies

and

D\:Simons Files\My Pictures


How should these be entered into the config screen?
Using latest builds 3.x etc.

If I did a scan then files in these folders should not show up, correct?
Thanks
In the configuration panel, Configure - > Metadata Tools -> Media Configuration, add the following to the "Ignore These Folders" field.

Code:
Home Movies|My Pictures
The field is actually a regular expression, so that should loosely match those 2 folders.
Reply With Quote
  #1314  
Old 07-18-2009, 09:37 AM
BigDragon BigDragon is offline
Sage User
 
Join Date: Mar 2009
Location: Israel
Posts: 19
Error in presenting posters

When i view my movies i can't see the poster even thought
i can see in the properties files that there is a valid link to the poster.
Only one movie of mine presents the poster (only after i mark it).

Is there any solution to this problem?
Thanks
Reply With Quote
  #1315  
Old 07-18-2009, 10:36 AM
MeInMaui's Avatar
MeInMaui MeInMaui is offline
SageTVaholic
 
Join Date: Feb 2005
Location: Maui. HI
Posts: 4,203
Quote:
Originally Posted by BigDragon View Post
When i view my movies i can't see the poster even thought
i can see in the properties files that there is a valid link to the poster.
Only one movie of mine presents the poster (only after i mark it).

Is there any solution to this problem?
Thanks
Check the first post under the Submitting Bugs/Requesting Help section. There is a form there to help you provide Sean with relevant information.

Aloha,
Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full."
- Nikolaus (4yrs old)
Reply With Quote
  #1316  
Old 07-18-2009, 10:41 AM
veger69's Avatar
veger69 veger69 is offline
Sage Advanced User
 
Join Date: Feb 2009
Posts: 119
Quote:
Originally Posted by stuckless View Post
The only time I've seen this if when Jetty does not extract the contents of the war file. An older build of the bmt web context didn't the set the appropriate flags to extract the contents, but that's been fixed. Are you running the latest beta? If you, then try removing the jetty/webapps/bmt/ directory, not the .war file, and then restart the server.
thanks that did the trick
Reply With Quote
  #1317  
Old 07-19-2009, 08:21 AM
RedCoat999's Avatar
RedCoat999 RedCoat999 is offline
Sage Aficionado
 
Join Date: Aug 2003
Posts: 371
Quote:
Originally Posted by stuckless View Post
In the configuration panel, Configure - > Metadata Tools -> Media Configuration, add the following to the "Ignore These Folders" field.

Code:
Home Movies|My Pictures
The field is actually a regular expression, so that should loosely match those 2 folders.
Thanks. I changed it to that. If I do a scan the files in these folders still show up. Is that correct?
__________________
Happy Sage customer since 2003

Proud owner of a HD200 connected to a 47" LCD. Loving Sage 7 and Phoenix
Reply With Quote
  #1318  
Old 07-19-2009, 03:40 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Starting to get my tv into sage from media center and got a quick question on the media mask in the properties file.


"bmt/sageMetadata/tvTitleMask=S${SeasonNumber}E${EpisodeNumber} - ${EpisodeTitle}"

above is what I changed mine too.

Does that control the title that sage sees or the mask you ahve your tv saved in?

Example I save all of mine in showname s01e01 but I want sage to display

s01e01-episode title

thanks in advance as now when doing it sagemc shows title s01e01-episode title
Reply With Quote
  #1319  
Old 07-19-2009, 04:12 PM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by PLUCKYHD View Post
Starting to get my tv into sage from media center and got a quick question on the media mask in the properties file.


"bmt/sageMetadata/tvTitleMask=S${SeasonNumber}E${EpisodeNumber} - ${EpisodeTitle}"

above is what I changed mine too.

Does that control the title that sage sees or the mask you ahve your tv saved in?

Example I save all of mine in showname s01e01 but I want sage to display

s01e01-episode title

thanks in advance as now when doing it sagemc shows title s01e01-episode title
Sean can correct me if im wrong... but the the titlemask is used by BMT to write the "title" of the media item in the SageDB... calls to GetAiringTitle(), and GetMediaTitle() will read this as the title. This is what SageMC lists as the title in the video library.
__________________
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
  #1320  
Old 07-19-2009, 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 RedCoat999 View Post
Thanks. I changed it to that. If I do a scan the files in these folders still show up. Is that correct?
I'll to check the "ignore folders" option to see if it's broken. The idea, is that they should not be included in your scan, but it they are, then it's broken

Quote:
Originally Posted by razrsharpe
Sean can correct me if im wrong... but the the titlemask is used by BMT to write the "title" of the media item in the SageDB... calls to GetAiringTitle(), and GetMediaTitle() will read this as the title. This is what SageMC lists as the title in the video library.
That is correct. It's the "display title" for the item. The mask is used when calculating the display title, and it gets written to the sagedb or the properties file.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 9 (0 members and 9 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
STV Import: Read & Write Metadata files for Default STV 5/6 (v2.2.9 18/Feb./2010) JREkiwi SageTV Customizations 251 10-09-2019 11:11 AM
Automated VideoRedo (DOS batch files) grauchy SageTV Customizations 3 09-08-2011 10:01 PM
Simple utility to control multiple USB or Serial HD DirecTV STBs jchiso Hardware Support 15 02-19-2009 06:27 PM
DVB-S setup with Digiguide EPG Grabber & XMLTV importer MCE-Refugee SageTV United Kingdom 27 09-08-2008 09:10 AM
Keeping custom metadata for imports via AddShow() Opus4 SageTV Studio 9 02-20-2008 06:35 PM


All times are GMT -6. The time now is 04:13 PM.


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