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
  #81  
Old 07-30-2008, 07:48 AM
warwon warwon is offline
Sage User
 
Join Date: Oct 2007
Posts: 61
When I created that proprieties file

I only had this

# Set to true|false to enable/disable single or multiple genre entries per line
org.jdna.media.metadata.impl.sage.SageVideoMetaData.singleGenreField=true


Is that okay?
Reply With Quote
  #82  
Old 07-30-2008, 07:56 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Anyone know the Sage API to remove Genre information? I did a quick look at the javadoc and I didn't see anything in my quick glance.

If there is api, then I'll look at writing something that can clean up the genres.
Reply With Quote
  #83  
Old 07-30-2008, 08:02 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Does this property setting not work?

Code:
force_full_content_reindex=true
Separately, is DVD Profiler import working?

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #84  
Old 07-30-2008, 08:03 AM
warwon warwon is offline
Sage User
 
Join Date: Oct 2007
Posts: 61
Just for the fun of it, my wife did a count.

There is a total of 261 Genres, each with only one or two movie.

Glad I ran this only on the first 280 movies not the full 1000 movies folder :P
Reply With Quote
  #85  
Old 07-30-2008, 08:17 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
force_full_content_reindex=true
Is this a Sage.properties property?

Quote:
Separately, is DVD Profiler import working?
Both the dvdprofiler (remote url) and the the dvdprofile_local worked as of a few days ago. I used a couple of different urls for the url based one... it appeared to work.

You'll need the set the appropriate dvd profiler properties for each to work correctly.
Reply With Quote
  #86  
Old 07-30-2008, 10:07 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Yes, sorry Sage.properties. Thanks for the DVD Profiler. I can't wait to try it out!

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT

Last edited by bcjenkins; 07-30-2008 at 10:10 AM.
Reply With Quote
  #87  
Old 07-30-2008, 10:28 AM
warwon warwon is offline
Sage User
 
Join Date: Oct 2007
Posts: 61
Worked like a charm!

metadataupdater.properties

# Set to true|false to enable/disable single or multiple genre entries per line
org.jdna.media.metadata.impl.sage.SageVideoMetaData.singleGenreField=true

force_full_content_reindex=true

=====

Ran the whole thing again, and Sagetv sorted out, no more werid Genre.

Thanks for the quick fix guys!
Reply With Quote
  #88  
Old 07-31-2008, 05:43 AM
ChuckSchick ChuckSchick is offline
Sage User
 
Join Date: Sep 2007
Posts: 52
Thought I'd throw something in that tripped me up in case someone else runs into it...

Before running the script, make sure none of your movies are set to "Read Only".

Otherwise, the file dates won't update and Sage won't import the .properties info. Somewhere in the history of my library I was setting the files to Read Only in an effort to protect them. About half of my collection still had this property.
Reply With Quote
  #89  
Old 08-01-2008, 12:01 AM
jerryt jerryt is offline
Sage Fanatic
 
Join Date: Oct 2007
Posts: 832
Could someone be kind enough to really dumb this up for me?

I am try to run this on windows in a "Command Prompt" window, and all I get is "This is not an internal or external command".

Asking for a very basic step by step, I am lost.
Reply With Quote
  #90  
Old 08-01-2008, 06:07 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Sounds as if Java is not installed. From the command prompt type
Code:
C:\> java -version
If you get the same error, then java is most likely not installed. You can install java from Sun's site. http://www.java.com/en/download/index.jsp

Keep in mind, you only need the JRE and not the SDK (the SDK is for developers, and is a larger download)
Reply With Quote
  #91  
Old 08-01-2008, 08:40 AM
jerryt jerryt is offline
Sage Fanatic
 
Join Date: Oct 2007
Posts: 832
C:\Users\FamilyRm> java -version
Shows version 1.6.0_07-b06 is installed.

This command;
C:\Users|FamilyRm> java -jar MetadataTool.jar --help
returns;
Unable to access jarfile MetadataTool.jar
Reply With Quote
  #92  
Old 08-01-2008, 09:19 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Try putting the full path to the jar file.

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #93  
Old 08-01-2008, 09:48 AM
chiledog chiledog is offline
Sage User
 
Join Date: Dec 2007
Posts: 69
I think I had this problem. I fixed it by running the tool in the tool's directory (instead of the movies).
Reply With Quote
  #94  
Old 08-01-2008, 10:43 AM
jerryt jerryt is offline
Sage Fanatic
 
Join Date: Oct 2007
Posts: 832
Quote:
Originally Posted by bcjenkins View Post
Try putting the full path to the jar file.

B
Path to jar file; C:\metadata\MetadataTool.jar

This command;
C:\Users|FamilyRm> java -jar C:\metadata\MetadataTool.jar --help
returns;
Exception in thread "main" java.lang.NullPointerException
at MetadataTool.main(MetadataTool.java:75)

Note, I am on the SageClient Vista computer with Sage running.
Reply With Quote
  #95  
Old 08-01-2008, 10:47 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
I have not run this on a Vista box, only linux. The application is independent of SageTV. Open a command prompt and try:

Code:
c:
cd C:\metadata\
java -jar C:\metadata\MetadataTool.jar --help
B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #96  
Old 08-01-2008, 11:28 AM
jerryt jerryt is offline
Sage Fanatic
 
Join Date: Oct 2007
Posts: 832
Quote:
Originally Posted by bcjenkins View Post
I have not run this on a Vista box, only linux. The application is independent of SageTV. Open a command prompt and try:

Code:
c:
cd C:\metadata\
java -jar C:\metadata\MetadataTool.jar --help
B
With the above commands I get nothing when I press "Enter".

Made a .bat file with this entry;
java -jar C:\Metadata\MetadataTool.jar --help

Double click the .bat file

And a metadataupdater.log file gets created with the following entries;

0 WARN [main] org.jdna.cmdline.CommandLine - Missing potential arg: EXTRAARGS
2 WARN [main] org.jdna.cmdline.CommandLine - Missing potential arg: recurse
3 WARN [main] org.jdna.cmdline.CommandLine - Missing potential arg: auto
3 WARN [main] org.jdna.cmdline.CommandLine - Missing potential arg: force
3 WARN [main] org.jdna.cmdline.CommandLine - Missing potential arg: forceThumbnail
3 WARN [main] org.jdna.cmdline.CommandLine - Missing potential arg: reindex
3 WARN [main] org.jdna.cmdline.CommandLine - Missing potential arg: displaySize
4 WARN [main] org.jdna.cmdline.CommandLine - Missing potential arg: listMovies
4 WARN [main] org.jdna.cmdline.CommandLine - Missing potential arg: listProviders
4 WARN [main] org.jdna.cmdline.CommandLine - Missing potential arg: update
4 WARN [main] org.jdna.cmdline.CommandLine - Missing potential arg: agressive
4 WARN [main] org.jdna.cmdline.CommandLine - Missing potential arg: offline
4 WARN [main] org.jdna.cmdline.CommandLine - Missing potential arg: provider
5 WARN [main] org.jdna.cmdline.CommandLine - Missing potential arg: stack
Reply With Quote
  #97  
Old 08-01-2008, 11:32 AM
jerryt jerryt is offline
Sage Fanatic
 
Join Date: Oct 2007
Posts: 832
Made a .bat file with this entry;
java -jar C:\Metadata\MetadataTool.jar --listMovies

Double click the .bat file

And a metadataupdater.log file gets created with the following entries;

0 WARN [main] org.jdna.cmdline.CommandLine - Missing potential arg: EXTRAARGS
1 WARN [main] org.jdna.cmdline.CommandLine - Missing potential arg: recurse
1 WARN [main] org.jdna.cmdline.CommandLine - Missing potential arg: auto
1 WARN [main] org.jdna.cmdline.CommandLine - Missing potential arg: force
1 WARN [main] org.jdna.cmdline.CommandLine - Missing potential arg: forceThumbnail
1 WARN [main] org.jdna.cmdline.CommandLine - Missing potential arg: reindex
1 WARN [main] org.jdna.cmdline.CommandLine - Missing potential arg: displaySize
2 WARN [main] org.jdna.cmdline.CommandLine - Missing potential arg: listProviders
2 WARN [main] org.jdna.cmdline.CommandLine - Missing potential arg: update
2 WARN [main] org.jdna.cmdline.CommandLine - Missing potential arg: agressive
2 WARN [main] org.jdna.cmdline.CommandLine - Missing potential arg: offline
2 WARN [main] org.jdna.cmdline.CommandLine - Missing potential arg: provider
2 WARN [main] org.jdna.cmdline.CommandLine - Missing potential arg: stack
3 DEBUG [main] org.jdna.metadataupdater.MetadataUpdater - Attempting to load metadataupdater from default locations....
4 WARN [main] org.jdna.metadataupdater.MetadataUpdater - No Configuration specified, will use the default resoure based configurmation
5 INFO [main] org.jdna.configuration.ConfigurationManager - Setting Configuration Provider: org.jdna.configuration.PropertiesConfigurationProvider
17 INFO [main] org.jdna.metadataupdater.MetadataUpdater - Using Screen Engine: org.jdna.metadataupdater.ConsoleScreen
21 INFO [main] org.jdna.media.metadata.VideoMetaDataFinder - Adding MetaDataProvider: IMDB Provider (Stuckless)
28 INFO [main] org.jdna.media.metadata.VideoMetaDataFinder - Adding MetaDataProvider: IMDB Provider (Nielm)
29 INFO [main] org.jdna.media.metadata.VideoMetaDataFinder - Adding MetaDataProvider: DVD Profiler Provider using remote Url (Stuckless)
30 INFO [main] org.jdna.media.metadata.VideoMetaDataFinder - Adding MetaDataProvider: DVD Profiler Provider using local xml and images (Stuckless)
30 INFO [main] org.jdna.metadataupdater.MetadataUpdater - Using Persistence Engine: org.jdna.media.metadata.impl.sage.SageVideoMetaDataPersistence
30 INFO [main] org.jdna.metadataupdater.MetadataUpdater - Version: 1.4
Reply With Quote
  #98  
Old 08-01-2008, 12:17 PM
jerryt jerryt is offline
Sage Fanatic
 
Join Date: Oct 2007
Posts: 832
Commandline bat like this;
java -jar C:\Metadata\MetadataTool.jar --listMovies R:\Recordings\

Returns list of all recordings.

My record directory was "R:\Recorded TV" but Metadataupdater.log kept saying "R:\Recorded" is nonexistant. So I dropped the space and "TV", then renamed the directory simply "Recordings".

Progress !!!!

"--auto" appears to be checking each movie....
I just added all the commands to the bat file with # "Command" and change the commands as I need them.

Working great, very very fast. Thank you so much!

Last edited by jerryt; 08-01-2008 at 01:13 PM.
Reply With Quote
  #99  
Old 08-01-2008, 01:40 PM
warwon warwon is offline
Sage User
 
Join Date: Oct 2007
Posts: 61
Thats all I did was create a bunch of *.cmd files for each folder location/drive. and run then one at a time with that genre option turn off so I don't get ten thousand groups.

Works
Reply With Quote
  #100  
Old 08-01-2008, 03:22 PM
chiledog chiledog is offline
Sage User
 
Join Date: Dec 2007
Posts: 69
I put the all the commands in one .bat file (4 directories over 3 drives). So all I have to do is run one command.

One thing really nice about this tool is it does not "re-run" movies it has already looked-up. So updates take seconds. (assuming you don't have --force).

I said it before and I will say it again. This tool saved me a bunch of heartache and time.
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.