SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-27-2008, 08:56 AM
mherce mherce is offline
Sage User
 
Join Date: Mar 2008
Posts: 50
Properties file and genre for a possible IMDB scraper.

I'm playing with properties files to see if its feasible to use it for an IMDB scraper similar to the tv.com one. The TV.com one uses my files and I notice that genre contained in it is ignored by the my importers.

However, the genre in properties file is passed incorrectly or I can't figure out how to delineate. IMDB lists multiple genres so any scraper that I write will be outputting multiple genres. This is what I want. However when I put it in a properties file, it shows up as "Action, Sci-fi" or "Action/Sci-fi" in the genre list, instead of separate Action and Sci-fi genre categories.

How do I fix this? What character do I need to use to separate Action from Sci-fi?

Thanks!
Reply With Quote
  #2  
Old 06-27-2008, 03:46 PM
JREkiwi's Avatar
JREkiwi JREkiwi is offline
Sage Icon
 
Join Date: Jan 2005
Location: Auckland, New Zealand
Posts: 2,132
Quote:
Originally Posted by mherce View Post
The TV.com one uses my files and I notice that genre contained in it is ignored by the my importers.
Which my importers ignore it? Would you mind posting a failing my file?

John
Reply With Quote
  #3  
Old 06-27-2008, 11:42 PM
mherce mherce is offline
Sage User
 
Join Date: Mar 2008
Posts: 50
Hi JREkiwi, well yours actually . Maybe ignoring is an incorrect term. Using the TV.com importer output (as I have no other my file format to reference), I constructed a rudimentary my file for a movie file. The genre tags are displayed but "ignored" by the UI. So if I sort by genre, the video stays as unsorted, instead of put into its categories.

I would much rather use my files as properties files are quite poorly implemented. Requiring a removal of the import directory and then a full reimport to get them recognized. On top of that they require I add the extension of the file as well as the .properties to work. That adds another level to an IMDB scraper, which should be unnecessary.

Here's a the my file I was working with:

Code:
title=2001: A Space Odyssey
TVOverview=2001 is a story of evolution. Sometime in the distant past someone or something nudged evolution by placing a monolith here on earth (presumably elsewhere throughout the universe as well) Evolution then enabled man to reach the moon's surface where he finds yet another monolith, one which signals the monolith-placers that we have evolved that far. Now a race begins between computers (HAL) and man (Bowman) to reach the monolith-placers, the winner will achieve the next step in evolution, whatever that may be.
TVStartDate=6 April 1968
TVGenre=Adventure,Sci-Fi
TVActors=Keir Dullea (Dr. Dave Bowman), Gary Lockwood (Dr. Frank Poole), William Sylvester (Dr. Heywood R. Floyd), Daniel Richter (Moon-Watcher), Leonard Rossiter (Dr. Andrei Smyslov), Margaret Tyzack (Elena), Robert Beatty (Dr. Ralph Halvorsen), Sean Sullivan (Dr. Bill Michaels), Douglas Rain (HAL 9000 (voice)), Frank Miller (Mission controller (voice)), Bill Weston (Astronaut), Ed Bishop (Aries-1B Lunar shuttle captain), Glenn Beck (Astronaut), Alan Gifford (Poole's father), Ann Gillis (Poole's mother)
TVRating=8.4
TVDirector=Stanley Kubrick
TVProducer=Stanley Kubrick
TVWriter=Arthur C. Clarke
Since I have you , could you tell me what fields map to what from the IMDB importer? I was able to import the quotes, goofs and such from IMDB with your importer, when the IMDB plugin was working. Basically, if I buy SageTV, I have in mind writing a scraper like the TV.com one but for IMDB. Making the process of getting metadata automated (like every other HTPC software offers).

A lot depends on my read of the Studio manual, as I would be adding a SageMC plugin to display the imported data in a much more HTPC normal way.
Ideally, I would really like to have the metadata imported as well as your plugin worked with the dead IMDB one so I have lots of fields to add to the movie display screens.
Reply With Quote
  #4  
Old 06-28-2008, 12:10 AM
JREkiwi's Avatar
JREkiwi JREkiwi is offline
Sage Icon
 
Join Date: Jan 2005
Location: Auckland, New Zealand
Posts: 2,132
Quote:
Originally Posted by mherce View Post
Hi JREkiwi, well yours actually . Maybe ignoring is an incorrect term. Using the TV.com importer output (as I have no other my file format to reference), I constructed a rudimentary my file for a movie file. The genre tags are displayed but "ignored" by the UI. So if I sort by genre, the video stays as unsorted, instead of put into its categories.
By default nothing is "imported" from the .my files, which is why you can't sort. You would need to either do a manual import (under manage metadata on the video detail screen), or turn on "Metadata Save to DB/Auto Save to DB from .my File", which will import from a .my file when you go into a video detail screen. There's also a bulk importer in "Metadata Save to DB/Import .my files to DB" (badly worded).

Seperate you genres with /
Movie/Action/Comedy
Quote:
Originally Posted by mherce View Post
Since I have you , could you tell me what fields map to what from the IMDB importer? I was able to import the quotes, goofs and such from IMDB with your importer, when the IMDB plugin was working.
I import the IMDB stuff into more fields into .my files than I do into .properties files (which implies, into the DB). I'd need to have a look through the code, as it's been a long time since I touched anything in that area.
Quote:
Originally Posted by mherce View Post
A lot depends on my read of the Studio manual, as I would be adding a SageMC plugin to display the imported data in a much more HTPC normal way.
You can pretty much do what you want with Studio. Just depends on how much time yo want to spend on it.

John
Reply With Quote
  #5  
Old 06-28-2008, 05:29 AM
mherce mherce is offline
Sage User
 
Join Date: Mar 2008
Posts: 50
Thanks! I see the mistake I made now. I installed your plugin then tried out SageMC. SageMC has the read .my ability but not the import .my ability; but since it was displaying the info, I thought it was imported.

Cool, I will play with it and see where it goes. Thanks again!
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
SageTV V6.4.3 Public Beta is Ready Narflex SageTV Beta Test Software 3 06-05-2008 12:58 PM
Graphics for SageMC (Glassy Icons, etc.) MeInMaui SageMC Custom Interface 603 05-27-2008 01:08 PM
STV: SageMC 16x9 Version 6.x (latest dev build) dflachbart SageMC Custom Interface 6112 04-04-2008 11:16 PM
SageTV V6.3.10 Release Candidate Narflex SageTV Beta Test Software 0 02-28-2008 06:07 PM
STV: Cayars17 Ultimate STV (Release 17 - Jan 18) Cayars SageTV Customizations 3664 12-13-2005 05:35 PM


All times are GMT -6. The time now is 12:27 AM.


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