|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
Utility: mediaScraper - metadata made easy!
Release History:
What it is: mediaScrapper is my answer XBMC's excellent, but very confusing, scraping engine and you can use it to track down all the metadata and fanart for any TV/Movies you may have ripped/bought/downloaded/whatever. Usage Instructions: See 2nd post How to use metadata files: * To make SageMC use the .my files, go into SageMC Properties -> Enhancments -> Use .my Files -> Enabled. * To make the default STV use .properties files, read this thread. Submitting Issues: If you have any issue I'll need to see the EXACT PATH/FILE name that is giving you trouble and/or (preferably) the scraper.log file that gets generated next to the .exe after every run. Example Outputs: .properties file for default STV: Code:
MediaType=TV Title=Wonderfalls 1x05 - Crime Dog MediaTitle=Wonderfalls Actor=Caroline Dhavernas;Tracie Thoms;Tyron Leitso;Diana Scarwid;Lee Pace;Katie Finneran;William Sadler; ActorRoles=Jaye Tyler;Mahandra;Eric;Karen Tyler;Aaron Tyler;Sharon Tyler;Darrin Tyler; Guest=Audrey Wasilewski;Bill Lake;Kimberly Scott; Director=Allan Kroeker; Writer=Krista Vernoff; Genres=Drama; Description=When Jaye's brother sees her talking to inanimate objects, he begins to question her state of mind; the animals help Jaye reunite her family with the housekeeper. Rated= UserRating=6.0 ReleaseDate=2004-07-23 MediaProviderDataID=theTVDB:78845 SeasonNumber=1 EpisodeNumber=5 EpisodeTitle=Crime Dog Code:
Title=Burn Notice overview=A spy, Michael Weston, receives a burn notice for an unstated reason, effectively firing him. He has spent the previous decade working for the government in Eastern Europe and returns to his hometown of Miami to get his life in order. Michael will stop at nothing to find out why. Shut out from his normal contacts, but still driven to right wrongs, Michael needs to stay under the radar in order to stay in the game. TVOriginalAiringDate=2007-07-26 actors=Jeffrey Donovan, Gabrielle Anwar, Bruce Campbell, Paul Gutrecht, Guri Weinberg, Audrey Landers, Scott Michael Campbell, Joel Swetow, Hannia Guillen, Jessica Baldwin, Rangel Hernandez Martinez, TVEpisode=Family Business TVOverview=Michael infiltrates a family of gunrunners who are pressuring an airport supervisor and his pregnant wife. The FBI begin to put pressure on Sam to gather more information on Michael. TVDuration=60 minutes TVGenre=Action and Adventure TVChannelName=USA Last edited by evilpenguin; 04-09-2009 at 01:49 AM. |
#2
|
||||
|
||||
Supported Naming Conventions:
MediaScaper works by looking at your file names and attempting to pull out all of the information it needs to track down the metadata. Chances are if mediaScraper can't find the metadata for your video then the file name is too confusion for it to figure out. Below are the supported naming conventions that will work Television: Requires Show Title and Season/Episode Number Code:
Show Title (S##E##|#x##|###) randomJunk.avi BaseFolder\Show Title\(S##E##|#x##|###) randomJunk.avi BaseFolder\Show Title\Season #\(S##E##|#x##|###) randomJunk.avi Code:
Movie Title.avi Movie Title (YEAR).avi Movie Title (YEAR).randomJunk.avi NOTE: This will not work on shows in Sage Recording format (ShowTitle-EpisodeName-#####-#.mpg)!!! Basic Usage: For general usage all you need to do is drag and drop videos and/or folders containing videos onto mediaScraper.exe and, by default, it will download the metadata and fanart and place them right next to the original videos. TV: Code:
TV\Scrubs\Scrubs 2x01 - My Overkill.avi TV\Scrubs\Scrubs 2x01 - My Overkill.avi.properties (metadata) TV\Scrubs\background.jpg (Fanart) TV\Scrubs\folder.jpg (Thumbnail/Poster) TV\Scrubs\banner.jpg (Banner) Code:
Movies\300.avi Movies\300.avi.properties (metadata) Movies\300_background.jpg (Fanart) Movies\300.jpg (Thumbnail/Poster) Code:
Movies\300\VIDEO_TS Movies\300.properties (metadata) Movies\300\background.jpg (Fanart) Movies\300\folder.jpg (Thumbnail/Poster) folder.override: There will be times when mediaScraper just won't be able to find a match for your file. Common problems include
Example: Lets say that you try and run this file through mediaScraper:mediaScraper.skip: If you have a folder full of videos you know have no metadata (ex. home movies, clips, etc.) then you can place a file named mediaScraper.skip in the folder and then mediaScaper will ignore it and all its sub folders. Code:
TV\Home Movies\mediaScraper.skip MediaScraper reads all of its options out of defaults.txt which is right next to mediaScraper.exe and it is just a list of command line switches that will always be used. These are the default options: Code:
/genPropertyFile /downloadFanArt /baseFolder "TV" Available Switches:
/addToSageDB: If you pair this switch with /userName, /password, /sageTVServer, and /genXMLFile then mediaScraper will pack the metadata into a SageTV Webserver XML file and use an experimental feature that will add trick Sage into treating the show as if it were a SageTV Recording. I've been playing around with it and it seems to be working rock solid, but I make no guarantees that this won't blow out your entire wiz.bin: Use at your own risk! Last edited by evilpenguin; 03-03-2009 at 01:40 PM. |
#3
|
||||
|
||||
Ooooh. If Mike or Dirk support this for fan art I might just give the feature a go.
Downloading now. Thanks E.P. Mick. |
#4
|
||||
|
||||
Initial ignorant impression #1
Hey E.P.
Just gave it a burl on a few files Filenames that didn't work; Code:
"c:\shares\movies\Atlantis\Season 3\Stargate.Atlantis.S03E01.WS.DSR.XviD-DIMENSION.avi" "c:\shares\movies\Atlantis\Season 3\Stargate.Atlantis.S03E01.avi" Code:
"c:\shares\movies\Atlantis\Season 3\Stargate Atlantis S03E01.avi" Can I suggest replacing the (.) period with a space and also if a postitive result/hit hasn't yet been found try removing the last word of the file (assuming . replaced with space) and giving the search another go. Then removing another, and another? I realise that I could rename the files so that they work but it would be nice to have it just work with typical download file names. I'll go have more of a play now Mick. Edit: Also, would it be possible to not create the metadata files if no result was found? Last edited by mickp; 01-05-2009 at 04:32 AM. |
#5
|
||||
|
||||
Yeah, good catch, looks like the '.' in the series name is causing some trouble. I'll that (and a whole bunch of other bugs I found ) all sorted out tomorrow.
|
#6
|
||||
|
||||
Cool. Thanks.
Mick. |
#7
|
||||
|
||||
Just updated the download with a ton of fixes, the best of which is it won't create output files if it doesn't actually get any data.
Last edited by evilpenguin; 01-09-2009 at 12:39 PM. |
#8
|
||||
|
||||
Awesome!
I've adapted my old comskip batch file to process all files in a directory. The log files from this should be quite interesting. I'll give the new version a run over one of my download directories and pm the logs. In the meantime i've attached the two batch files required for bulk scraping. Hopefully someone will find them useful. Usage is scrape [unc path] Mick. Edit: Fixed a bug which would cause all shows to be processed every time. Now only files without a .properties file are scraped on subsequent runs. Edit: Updated version should cope correctly with video_ts directories NB: You don't need to use this batch file(s) any more as mediascraper.exe will now process all files in a directory. Last edited by mickp; 02-14-2009 at 08:44 PM. |
#9
|
||||
|
||||
Um. File appears to be corrupted. One zip program I tried says "error in zip file. Garbage at end of file"
Mick. |
#10
|
||||
|
||||
BTW: .properties files are read by the core, so that data is put into SageTV's database when importing files. I'm adding this comment because after a quick glance while adding this to the customizations index, it looked like the notes were saying that was for the default STV, but it will work for anything.
- Andy
__________________
SageTV Open Source v9 is available. - Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1. - Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus - HD Extenders: A) FAQs B) URC MX-700 remote setup Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request. |
#11
|
|||
|
|||
Quote:
Is this me being stupid or is their something wrong with the zip file? Cheers Ben
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders |
#12
|
|||
|
|||
Quote:
Dean |
#13
|
|||
|
|||
For the rest of us, what does this module do?
In basic terms please |
#14
|
|||
|
|||
Nice tool this will save me hours of work. Did try and do this manually once but gave up after about an hour and only 5 shows later.
It looks like the speech mark (“”) can not be displayed properly. Not sure if this is a Sagemc or Sage problem. If I run this on the Simpsons Season 18 Episode 1 then the text at the end “family business.” will not display correctly. Works fine if you remove the Speech marks (“”) Dean, |
#15
|
|||
|
|||
Quote:
|
#16
|
||||
|
||||
Quote:
Quote:
Sorry for the confusion. |
#17
|
||||
|
||||
Quote:
Quote:
Last edited by evilpenguin; 01-06-2009 at 02:30 PM. |
#18
|
||||
|
||||
I've noticed a few weird things like this. I think the issue is that the quotes (") in the webpage are unicode characters, but when I read them in they lose their unicode-ness and just display as junk. I'll see what I can do about fixing that.
Last edited by evilpenguin; 01-06-2009 at 01:06 PM. |
#19
|
||||
|
||||
Quote:
Last edited by evilpenguin; 01-06-2009 at 01:22 PM. |
#20
|
||||
|
||||
Re: the zip file;
I found that if I renamed the zip to be .7z rather than .zip, winrar would open it and allow me to extract the one file "mediaScraperBeta". Extracted and added a .zip extension and voila... Not sure what's going on with 7zip. Mick. |
Tags |
fanart, imdb, metadata, themoviedb, thetvdb |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
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 |
Utility: Batch Metadata Importer 3.x | stuckless | Batch Metadata Tools | 2416 | 09-20-2011 08:03 PM |
manually edit video metadata | loomdog32 | SageMC Custom Interface | 8 | 01-04-2009 12:34 AM |
Runningtime not populated in Metadata | mycorona | SageMC Custom Interface | 2 | 11-30-2008 01:08 PM |
Keeping custom metadata for imports via AddShow() | Opus4 | SageTV Studio | 9 | 02-20-2008 06:35 PM |