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
  #961  
Old 06-02-2009, 10: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 wayner View Post
Thanks Sean - I was wondering about the .my files since that is a setting unique to SageMC and for EvilPenguin's MediaScraper there is a setting to generate properties files or My files which is for: "/genMyFile - Generate a .my file, contains extra data for SageMC "
I may look at adding support for .my files, once I complete all other outstanding tasks But I'm not sure what a .my file provides that would not be in a .properties file.

Quote:
I saw something in your list of issues about deleting properties files - do you not need the properties files - that is, can they be deleted after being read by Sage? Or are they read every time you open up a show/movie?
.properties is the external way to get metadata into the SageTV wiz.bin file. Once metadata has been imported, the .properites file is no longer needed. That being said.... if your wiz.bin were to get corrupt, and you had to re-scan your collection, then having the .properties files would act as a backup for the metadata, and make rescanning a much faster operation. So, Once metadata has been imported, then the .properties are never read again unless you re-scan your collection. This "enhancement" is basically an option that would delete the file once the data was passed to SageTV from the automatic metadata plugin.

Quote:
One further question - occasionally I am getting 0 byte jpg files for Fanart - have you seen this?
I have not see this, but I can certainly see how it could happen. I think I added an issue for this as well, if not, then I'll add an issue.
Reply With Quote
  #962  
Old 06-03-2009, 05:07 AM
VikingCrown's Avatar
VikingCrown VikingCrown is offline
Sage Aficionado
 
Join Date: Jun 2006
Posts: 269
I am also getting 0 byte fan art. I thought it was because the file i tried last night was recording but i tried it again this morning using the plugin and still a 0 byte image. Using: 6.3.9-41, SageBeta 6.5.15, and latest bmt, all attempts from plugin.
Reply With Quote
  #963  
Old 06-03-2009, 07:07 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
0 byte fanart is most likely caused because the image stream could not be located during the write. Not sure what would cause this exactly, but I've opened a bug, so I'll investigate.
Reply With Quote
  #964  
Old 06-03-2009, 03:25 PM
electronics4lif electronics4lif is offline
Sage Advanced User
 
Join Date: Dec 2006
Posts: 141
Quote:
Originally Posted by stuckless View Post
If you disable fanart, then bmt behaves as it did before. ie, posters are written as "vidoe.jpg" in the same folder as the video item. I'll add a bug to take a look at this, but I currently use both scenarios in my home environment, and I have not noticed the issue that you have described.


On a side note... In a few days (or on the weekend) I'll be releasing a beta of the 3.0 release. I would encourage anyone that is currently "struggling" with the 2.x release to try the beta since you'd have nothing to lose anyways. The new beta will have web based configuration section that should make configuring and troubleshooting issues much more intuitive. In many cases, the issues that are reported, can never be reproduced, and I suspect that in some cases, it may simply be configuration related. Hopefully the new build will help with that by allowing a more visual approach to the configuration. The web configuration will depend on the Jetty webserver plugin, since will deploy a web configuration package to the Jetty plugin.
What is strange is that when I turn off fanart, the metadata is being retrieved but not the poster. I would think it would be all or nothing. I just tried it again to verify that I wasn't losing my mind. ) For now, I am turning fanart on but deleting the "backgrounds" folder from each movie. I look forward to your 3.0 release!
Reply With Quote
  #965  
Old 06-06-2009, 07:35 AM
Farm Farm is offline
Sage User
 
Join Date: Apr 2009
Location: Missouri
Posts: 38
Couple BMT questions

I'm in the process of setting up BMT on the server for my HD200 and a separate computer using the SageTV client.
So:
WHS Server running SageTV for WHS
Desktop running SageTV Client

I'm running the latest beta of SageMC 6.3.9a_41 and I've followed the installation instructions by sflamm.

If I understand the installation instructions for BMT I need to install BMT on both the server and the local client. I did that.

Then I added this to my metadata.properties file:
/dvdprofilerLocal/imageDir=\\\\D\\My Documents\\DVD Profiler\\Databases\\Default\Images
/dvdprofilerLocal/xmlFile=\\\\D\\My Documents\\DVD Profiler\\Databases\\Collection.xml

/compositeMetadataProviders/dvdprof2/name=DVD Profiler + TheMovieDB
/compositeMetadataProviders/dvdprof2/description=DVD Profiler, but get fanart and missing details from TheMovieDB
/compositeMetadataProviders/dvdprof2/iconUrl=
/compositeMetadataProviders/dvdprof2/searchProviderId=dvdprofiler
/compositeMetadataProviders/dvdprof2/detailProviderId=themoviedb.org
/compositeMetadataProviders/dvdprof2/compositeMode=1

I'm not sure if the lines in bold are correct. The path is correct, but is my formatting correct?

I'm unable to point my "Central Fanart Folder" to one of the WHS shares. The highest directory structure I can browse within SageTV is the local computer (C: D: F: etc.). It would be nice to have a central Fanart folder for all installations...is it possible to use one of the WHS shares for this?

When I try up update Metadata within SageTV it doesn't pull anything in from the DVDProfiler collection. It says something like "not found in the DB" if I try a DVDProfiler Refresh. I've tried renaming the movie to exactly what DVDProfiler calls it and several other variations as well.

I think I'm really close to getting this all to work, but I'm getting hung up on these final steps to actually import the DVDProfiler data and getting Fanart to work.

Any help is greatly appreciated.
Reply With Quote
  #966  
Old 06-06-2009, 09:02 PM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by Farm View Post
/dvdprofilerLocal/imageDir=\\\\D\\My Documents\\DVD Profiler\\Databases\\Default\Images
/dvdprofilerLocal/xmlFile=\\\\D\\My Documents\\DVD Profiler\\Databases\\Collection.xml

/compositeMetadataProviders/dvdprof2/name=DVD Profiler + TheMovieDB
/compositeMetadataProviders/dvdprof2/description=DVD Profiler, but get fanart and missing details from TheMovieDB
/compositeMetadataProviders/dvdprof2/iconUrl=
/compositeMetadataProviders/dvdprof2/searchProviderId=dvdprofiler
/compositeMetadataProviders/dvdprof2/detailProviderId=themoviedb.org
/compositeMetadataProviders/dvdprof2/compositeMode=1

I'm not sure if the lines in bold are correct. The path is correct, but is my formatting correct?
I think those lines should read:
Code:
/dvdprofilerLocal/imageDir=D\:\\My Documents\\DVD Profiler\\Databases\\Default\\Images
/dvdprofilerLocal/xmlFile=D\:\\My Documents\\DVD Profiler\\Databases\\Collection.xml
Basically you need a \ in front of all special characters (: \ etc)

Quote:
I'm unable to point my "Central Fanart Folder" to one of the WHS shares. The highest directory structure I can browse within SageTV is the local computer (C: D: F: etc.). It would be nice to have a central Fanart folder for all installations...is it possible to use one of the WHS shares for this?
yes you can click specify from that same dialog box then manually enter the path. You can also edit the .properties file directly with a text editor... if you go this route make sure sage is fully closed (client, ui, service all off)... and be careful with the slashies like above. You will need to do this on all clients.

Quote:
When I try up update Metadata within SageTV it doesn't pull anything in from the DVDProfiler collection. It says something like "not found in the DB" if I try a DVDProfiler Refresh. I've tried renaming the movie to exactly what DVDProfiler calls it and several other variations as well.
with BMT you do not need to (and should not) use the sagemc dvd profiler support... im pretty sure sflamms install document says so... if you want to use the built in one (not recommended) there are two other options that you need to set... i think its in sagemc settting -> paths -> metadataXML and dvd profiler path. again if using bmt to pull the dvd profiler info you should not use the sagemc default dvdprofiler support.

Goodluck
__________________
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
  #967  
Old 06-06-2009, 10:14 PM
Farm Farm is offline
Sage User
 
Join Date: Apr 2009
Location: Missouri
Posts: 38
Thanks for the advice.
I'll work on it in the morning and post the results.
Reply With Quote
  #968  
Old 06-07-2009, 07:07 AM
Farm Farm is offline
Sage User
 
Join Date: Apr 2009
Location: Missouri
Posts: 38
OK, I changed the paths in the metadata.properties file to centralized folders:

/dvdprofilerLocal/imageDir=\\\\Server\\SageTV\\DVD Profiler\\Databases\\Default\\Images
/dvdprofilerLocal/xmlFile=\\\\Server\\SageTV\\DVD Profiler\\Databases\\Default\\Collection.xml

I made all the changes to disabling DVD profiler support built into SageMC.

Nothing updates automatically, even after a refresh. The only way I can get Fanart to update is to fo into each movie and select Metadata\Fanart.

Also when I do that, if the videos are sorted by "All Videos" then I see the cover art and a background fanart as well. IF I sort the videos by "Genre", the background fanart will show up as I scroll, but I have NO cover art for the videos. ????? Any ideas on that?
Reply With Quote
  #969  
Old 06-07-2009, 07:13 AM
Farm Farm is offline
Sage User
 
Join Date: Apr 2009
Location: Missouri
Posts: 38
I'm not sure if this matters, but when I go to my

\\Server\SageTV\DVD Profiler\Databases\Default\Images

Folder, the thumbnails are all name crazy things. For Example, Monsters Inc. front cover jpg is called "786936164886f.jpg".

Do the jpg names in the DVDProfiler Images folder matter??
Reply With Quote
  #970  
Old 06-07-2009, 07:25 AM
matterw matterw is offline
Sage Advanced User
 
Join Date: Aug 2004
Location: New Jersey
Posts: 169
Send a message via AIM to matterw
SageAPI Provider is not set, will try to find the server...

Running MetadataUpdater from the commandline and getting the error "SageAPI Provider is not set, will try to find the server...".

Not sure why it's trying to connect to the server, but how do I fix this exception being thrown?

Thanks,
Matt
Reply With Quote
  #971  
Old 06-07-2009, 09:13 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
@Farm - The image name is not important. That is most likely the DVD Profiler imagename from your DVD Profiler images directory. DVD Profiler names their images as ########f.jpg and #########b.jpg for front and back respectively. BMT only uses the front images.

@matterw - You can download the latest Sage Remote apis, which has fix that should prevent it from trying to contact the server. Phoenix relies on the sagex apis, which for the most part is not an issues, since phoenix usually runs in the same process as the SageTV. BMT relies on phoenix for much of the fanart stuff, and as a result, the commandline will try to contact the server when doing some operations. The latest sagex apis has a temporary fix for this... basically it will still try and contact the server, but it should do it only once, and then fall back to a local implemenation for the apis. The upcomming BMT release has a more complete fix.
Reply With Quote
  #972  
Old 06-07-2009, 10:57 AM
Farm Farm is offline
Sage User
 
Join Date: Apr 2009
Location: Missouri
Posts: 38
Thanks stuckless.

BMT still won't automate any metadat/fanart import. I'm not sure where I may have my signals crossed.

One differentiation I found in reading this thread is in the installation instruction by sflamm he states:

Quote:
8.

Turn off “DVD Profiler” Meta Data refresh:
SageMC ->Paths ->Meta Data Xml = \\NAS\SageTV\DVD Profiler\Collection.xml
SageMC ->Paths ->Dvd Profiler Path = \\NAS\SageTV\DVD Profiler\Databases\Default
SageMC -> Main -> Screen Specific Options ->Video Library ->DVDProfiler Auto Meta Data "disabled"
But in post #663 on page 34 of this thread he states:

Quote:
e. DVD profiler settings

meta data xml = \\NAS\SageTV\DVD Profiler\Collection.xml
dvd profiler path = \\NAS\SageTV\DVD Profiler\Databases\Default
Auto Load DVD Profiler Meta Data "enabled"
Here is my metadata.properties file:

Code:
#Configuration Properties
#Fri Jun 05 21:44:46 CDT 2009
/compositeMetadataProviders/dvdprof2/compositeMode=1
/compositeMetadataProviders/dvdprof2/description=DVD Profiler, but get fanart and missing details from TheMovieDB
/compositeMetadataProviders/dvdprof2/detailProviderId=themoviedb.org
/compositeMetadataProviders/dvdprof2/iconUrl=
/compositeMetadataProviders/dvdprof2/name=DVD Profiler + TheMovieDB
/compositeMetadataProviders/dvdprof2/searchProviderId=dvdprofiler
/dvdprofilerLocal/imageDir=\\\\Server\\SageTV\\DVD Profiler\\Databases\\Default\\Images
/dvdprofilerLocal/xmlFile=\\\\Server\\SageTV\\DVD Profiler\\Databases\\Default\\Collection.xml
/metadata/backgroundImageWidth=-1
/metadata/bannerImageWidth=-1
/metadata/defaultProviderId=dvdprofiler-2,tvdb,themoviedb.org,imdb.xml,imdb
/metadata/enableDefaultSTVPosterCompatibility=false
/metadata/goodScoreThreshold=0.9
/metadata/importTVAsRecordedShows=false
/metadata/maxDownloadableImages=5
/metadata/persistenceClass=org.jdna.media.metadata.impl.sage.SageTVPropertiesWithCentralFanartPersistence
/metadata/posterImageWidth=200
/metadata/scoreAlternateTitles=true
/metadata/videoMetadataProviders=org.jdna.media.metadata.impl.tvdb.TVDBMetadataProvider,org.jdna.media.metadata.impl.imdb.IMDBMetaDataProvider,org.jdna.media.metadata.impl.nielm.NielmIMDBMetaDataProvider,,org.jdna.media.metadata.impl.dvdproflocal.LocalDVDProfMetaDataProvider,org.jdna.media.metadata.impl.themoviedb.TheMovieDBMetadataProvider,org.jdna.media.metadata.impl.mymovies.MyMoviesMetadataProvider
/metadata/wordsToClean=1080p,720p,480p,1080i,720i,480i,dvd,dvdrip,cam,ts,tc,scr,screener,dvdscr,xvid,divx,avi,vrs,repack,mallat,proper,dmt,dmd,stv,HDTV,x264
Do I need to add something to my properties file to get it to autoupdate?
Reply With Quote
  #973  
Old 06-07-2009, 12:05 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
@farm - Some people confuse the DVD profile plugin in SageMC with the DVD Profiler plugin for bmt. They are totally different solutions. So, any reference to DVD Profiler in SageMC has nothing to do with bmt and vice versa.

Your properties look fine. Although you can get rid of the compositeMetadataProvider stuff, if you want. The current bmt provides a composite provider for dvdprofiler, called dvdprofiler-2, which you are using instead of the one that you configured.

As for the automatic plugin.... It has to be configured on the sagetv server and not on the client. You'll need to check your Sage.properties on the server and ensure that that the plugin is installed as per the manual instructions.

Once the plugin is installed (and the server restarted), you can test the plugin by adding a new media item to your library, and forcing a sagetv refresh. If metadata is not showing up, then look in the SageTV log file (sagetv_0.txt) and look for lines that have BMT in them. When a media file is scanned, it will be logged there.
Reply With Quote
  #974  
Old 06-07-2009, 12:43 PM
matterw matterw is offline
Sage Advanced User
 
Join Date: Aug 2004
Location: New Jersey
Posts: 169
Send a message via AIM to matterw
Stuckless: Thanks for the quick fix (i.e., replacing sagex apis). That did it. It hangs at the end of the run, but it works for the time being. I'll keep my eye out for a permanent fix.
Reply With Quote
  #975  
Old 06-09-2009, 07:48 PM
Farm Farm is offline
Sage User
 
Join Date: Apr 2009
Location: Missouri
Posts: 38
@stuckless
Thanks. It seems to be working now on my Sage Client, but not on my HD200. The Central Fanart folder is that same and BMT is installed on the server, but no fanart shows for any video on the HD200. I'll have to troubleshoot that.

However, on the Client (where Fanart currently works) if the videos are sorted by "All Videos" then I see the cover art and a background fanart as well. If I sort the videos by "Genre", the background fanart will show up as I scroll, but I have NO cover art for the videos. ????? Any ideas on that?

I'm having a whole separate issue now of the Client not being able to access the shared folders for playback and that has turned into a troubleshooting nightmare. I've tried every iteration of user name, shared permission, etc. and no dice.

One of these days it will all work.
Reply With Quote
  #976  
Old 06-09-2009, 09:22 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Farm View Post
@stuckless
However, on the Client (where Fanart currently works) if the videos are sorted by "All Videos" then I see the cover art and a background fanart as well. If I sort the videos by "Genre", the background fanart will show up as I scroll, but I have NO cover art for the videos. ????? Any ideas on that?
Unfortunately I can't offer any advice on that. Maybe you could post something the SageMC forum about that.
Reply With Quote
  #977  
Old 06-11-2009, 08:27 AM
rmccoy rmccoy is offline
Sage User
 
Join Date: May 2009
Location: Tampa, FL
Posts: 17
Hey Stuckless, any idea on an ETA for the 3.0 beta? I'm about to do an initial setup on my media server for the first time, and I think it would be a heck of a lot easier with that web based UI configuration... If it's going to be a while still, let me know, and I'll just setup using the current iteration. Thanks!
Reply With Quote
  #978  
Old 06-11-2009, 09:12 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
I'm going to try and get a beta out sometime this weekend... I have a beta now that includes the configuration, but I'm currently adding in Scan support and metadata editing. Maybe i'll release a beta build with just the configuration section, and then release the scan/editing stuff as another beta build later.
Reply With Quote
  #979  
Old 06-11-2009, 09:48 AM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Cool, can't wait to try the configuration stuff.

__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders
Reply With Quote
  #980  
Old 06-11-2009, 09:51 AM
rmccoy rmccoy is offline
Sage User
 
Join Date: May 2009
Location: Tampa, FL
Posts: 17
Dang man, this sounds great! Can't wait to try it out! We all really appreciate all the work you've put into developing this great scraper.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 2 (0 members and 2 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 02:43 AM.


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