SageTV Community  

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

Notices

SageMC Custom Interface This forum is for discussing the user-created SageMC custom interface for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-01-2009, 06:32 AM
nstocke nstocke is offline
Sage Advanced User
 
Join Date: Apr 2008
Location: Kaysville, Utah
Posts: 100
Disadvantage of New Fanart File Structure

I'm always the first to admit that I may not fully understand something and I am willing to be corrected. I like the new support for Fanart the Multiple Backgrounds for a show is great. However having one central folder where backgrounds could be dropped and named by show was a lot easier for Bulk updates of TV shows. For example being able to get the Backgrounds while scrolling through the Guide was cool. With a ton of backgrounds stored in one central location I could get backgrounds for shows I don't record or even watch.

As I understand it now if I want a background for shows that I scroll through on the guide I would have to create a multi level directory structure for every show that may be on the Guide.

I may be dreaming but it would have been nice to include a "if not here than Here" central location that looks up by Show Name.jpg
Reply With Quote
  #2  
Old 04-01-2009, 06:57 AM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
Quote:
Originally Posted by nstocke View Post
I'm always the first to admit that I may not fully understand something and I am willing to be corrected. I like the new support for Fanart the Multiple Backgrounds for a show is great. However having one central folder where backgrounds could be dropped and named by show was a lot easier for Bulk updates of TV shows. For example being able to get the Backgrounds while scrolling through the Guide was cool. With a ton of backgrounds stored in one central location I could get backgrounds for shows I don't record or even watch.

As I understand it now if I want a background for shows that I scroll through on the guide I would have to create a multi level directory structure for every show that may be on the Guide.

I may be dreaming but it would have been nice to include a "if not here than Here" central location that looks up by Show Name.jpg
If you use one of the updated media scrapers (stucless' BMT or evilpenguin's Mediascraper) it will create that directory structure for you. BMT you can do from a commandline and I think do a bulk load for existing. Or using the STVI included wth BMT you could do it one at a tme and it still create the stucture. Configure it as a plugin and any new media added gets added with the structure automatically.

Gerry
__________________
Big Gerr
_______
Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB.
Reply With Quote
  #3  
Old 04-01-2009, 07:20 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
There are definately going to be some growing pains of the new fanart system. I think the intention is not so much that you have to manually create a folder system, but that the applications (default stv, sagemc, scraper tools, etc) would do that for you. This release is just the first step, but in the simple addition to the default stv, I have it so that if you are in the guide, you can do a fanart search/download for a given item... it's still manual, but you are not required to create the directories. I think that eventually you'll see these types of enhancements, plus others, make it's way into the stvs, but it's going to take some time...and unfortunately patience.
Reply With Quote
  #4  
Old 04-01-2009, 07:58 AM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Yer, its a pain to start with but once you start to see the bigger picture you will hopefully really like what the other guys have come up with. For instance you can already use Stuckless's plugin and download fanart on the fly from within SageMC for TV shows and Movies and it will automatically create all the correct folder layouts.

I have an addition to the movie info screen which I'm working on that does the same thing but also allows the user to pick which image they want to use (thanks to Seans tools), although it doesn't work 100% just yet. I've attached a screenshot so you can see an example of this.
Attached Images
File Type: jpg SampleOne.jpg (174.9 KB, 433 views)
__________________
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
  #5  
Old 04-01-2009, 10:25 AM
nstocke nstocke is offline
Sage Advanced User
 
Join Date: Apr 2008
Location: Kaysville, Utah
Posts: 100
I appreciate all of the quick responses. And as I expected I learned some things. I was not aware that I could grab Fanart from the Guide. I am also looking forward to the tool that will allow me to pick which Fanart to download.

Quote:
I have an addition to the movie info screen which I'm working on that does the same thing but also allows the user to pick which image they want to use (thanks to Seans tools), although it doesn't work 100% just yet. I've attached a screenshot so you can see an example of this.
Will this also allow me to download more than one Fanart at a time?

Thanks again for the info.
Reply With Quote
  #6  
Old 04-01-2009, 11:00 AM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Quote:
Originally Posted by nstocke View Post
I am also looking forward to the tool that will allow me to pick which Fanart to download.
Will this also allow me to download more than one Fanart at a time?
Stuckless's tool is already available and adds the option to download fanart. The tool will download what ever is available which can sometimes be 1 image or 20 images.
__________________
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
  #7  
Old 04-01-2009, 11:45 AM
nstocke nstocke is offline
Sage Advanced User
 
Join Date: Apr 2008
Location: Kaysville, Utah
Posts: 100
I've been using Stuckless's tool however for some reason I only get one Fanart image. I get multiple Posters but only the one Background. Is there a setting I'm missing?
Reply With Quote
  #8  
Old 04-01-2009, 12:06 PM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Quote:
Originally Posted by nstocke View Post
I've been using Stuckless's tool however for some reason I only get one Fanart image. I get multiple Posters but only the one Background. Is there a setting I'm missing?
I dont think so, its just luck of the draw. Quite a few of my films only have one image.
__________________
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
  #9  
Old 04-01-2009, 12:48 PM
nstocke nstocke is offline
Sage Advanced User
 
Join Date: Apr 2008
Location: Kaysville, Utah
Posts: 100
I tested on the TV show Chuck which has 20 Fanart Backgrounds. All I ever get is one. Have you done TV shows or are you just doing Movies? Could just be a difference on how the scrapper works on different sites. That is why I was hoping for something that would allow me to view multiple fanart images and then select the ones I want and preferably multiple at a time.
Reply With Quote
  #10  
Old 04-01-2009, 12:57 PM
KJake KJake is offline
Sage Icon
 
Join Date: May 2003
Location: West Michigan
Posts: 1,117
Quote:
Originally Posted by nstocke View Post
I tested on the TV show Chuck which has 20 Fanart Backgrounds. All I ever get is one. Have you done TV shows or are you just doing Movies? Could just be a difference on how the scrapper works on different sites. That is why I was hoping for something that would allow me to view multiple fanart images and then select the ones I want and preferably multiple at a time.
I noticed the same, especially on TV shows. I'll submit something.
Reply With Quote
  #11  
Old 04-01-2009, 01:20 PM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Quote:
Originally Posted by nstocke View Post
I tested on the TV show Chuck which has 20 Fanart Backgrounds. All I ever get is one. Have you done TV shows or are you just doing Movies? Could just be a difference on how the scrapper works on different sites. That is why I was hoping for something that would allow me to view multiple fanart images and then select the ones I want and preferably multiple at a time.
Ah, Yes. I only use this for Movies.
__________________
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
  #12  
Old 04-02-2009, 04:07 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by nstocke View Post
As I understand it now if I want a background for shows that I scroll through on the guide I would have to create a multi level directory structure for every show that may be on the Guide.
I agree that this is one of the downsides to the new structure. I downloaded a couple of the Fanart zip files that contained backgrounds for hundreds of shows and movies and this worked great to give me backgrounds in the guide for shows that I never watched.

Would it be possible for someone to create an automated process to take these zip files and recreate them with the new directory structure? I guess this would consist of looping through each file in my old Fanart\TV folder and create a new \Fanart\TV\30Rock\Backgrounds folder and then copy the existing 30Rock.jpg file into this new folder (just to use 30Rock as an example).

How about another process that runs daily in the middle of the night that would use Stuckless' tool and would look for Fanart for all shows in the Guide? Is this feasible or would it take too long to run?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #13  
Old 04-02-2009, 11:16 PM
nstocke nstocke is offline
Sage Advanced User
 
Join Date: Apr 2008
Location: Kaysville, Utah
Posts: 100
Quote:
Would it be possible for someone to create an automated process to take these zip files and recreate them with the new directory structure? I guess this would consist of looping through each file in my old Fanart\TV folder and create a new \Fanart\TV\30Rock\Backgrounds folder and then copy the existing 30Rock.jpg file into this new folder (just to use 30Rock as an example).
This got me thinking that I could create a super simple batch file and use DirMon2 to kick off just such a thing. I'm sure there would be a way to do it all with a batch file but I didn't want to think that hard and I already have DirMon2 running. With this running I can unzip a jpg collection in my old background folder and have the new directory structure created for me and the files moved to the right place.

Here is my batch file:
Code:
md "c:\Program Files\SageTV\SageTV\STVs\Phoenix\FanArt\TV\%*\"
md "c:\Program Files\SageTV\SageTV\STVs\Phoenix\FanArt\TV\%*\Backgrounds"
move "c:\Program Files\SageTV\SageTV\STVs\SageTV3\SageMCE\MediaBackgrounds\TV\%*.jpg" "c:\Program Files\SageTV\SageTV\STVs\Phoenix\FanArt\TV\%*\Backgrounds"
This of course assumes that your new FanArt location is in the Phoenix directory in your STVs folder for SageTV. It also assumes that everything is on your C: drive (edit appropriately).
You will need to modify the third line to point to whatever directory you have your old Backgrounds located in.

DirMon2 Settings:
Create New Job Under Joh Management Tab (I named mine FanArtMover)
Where: Point to the directory that has your old JPG files.
Program to run: Point to your batch file (I named mine FanArtMover.bat)
Targets: jpg
Command Line Options: %BASENAME%
Triggers: Must Exist: jpg

DirMon2 can be found here:

http://www.dragonglobal.org/dirmon.htm

The the DirMon2 thread is here:

http://forums.sagetv.com/forums/show...hlight=dirmon2
Reply With Quote
  #14  
Old 04-03-2009, 11:35 AM
jpaddock3000 jpaddock3000 is offline
Sage Aficionado
 
Join Date: Dec 2006
Location: San Diego, CA
Posts: 341
I made a VB script that will auto convert the old structure of Fan Art to the new Fan Art structure( I didn't really make it, but gathered different scripts and put it together).
  • Put the code in a text file and save as a .vbs file.
  • Then run the file.
  • An explorer box will pop up asking what folder do you want to run the script on.
  • Select the folder that has all your jpg files in them(The script only works with jpg's currently, but you can easily modify .jpg with any other extension in the script).
  • The script will automatically make a folder name with the same name as your jpg minus the extension and create all the new Fan Art sub folders.
  • It will then move your jpg file into the backgrounds folder.

Code:
On Error Resume Next
Dim name
Dim destFolder
Dim TargetDirectory
Const WINDOW_HANDLE = 0
Const BIF_EDITBOX = &H10
Const BIF_NONEWFOLDER = &H0200
Const BIF_RETURNONLYFSDIRS = &H1

Set objShell = CreateObject("Shell.Application")
Set wshShell = CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")

'**Browse For Folder To Be Processed
strPrompt = "Please select the folder to process."
intOptions = BIF_RETURNONLYFSDIRS + BIF_NONEWFOLDER + BIF_EDITBOX
strTargetPath = wshShell.SpecialFolders("MyComputer")
TargetDirectory = Browse4Folder(strPrompt, intOptions, strTargetPath)

Set objFolder = objFSO.GetFolder(TargetDirectory)
Set objColFiles = objFolder.Files

For Each file In objColFiles
        name = Replace(file.name,".jpg", "")
        destFolder = (TargetDirectory & "\" & name)
		objFSO.CreateFolder(destFolder)
		objFSO.CreateFolder(destFolder & "\Backgrounds")
		objFSO.CreateFolder(destFolder & "\Posters")
		objFSO.CreateFolder(destFolder & "\Banners")         
        objFSO.MoveFile (TargetDirectory & "\" & file.name), (destFolder & "\Backgrounds" & "\" & file.name)

Next


'**Browse4Folder Function
Function Browse4Folder(strPrompt, intOptions, strRoot)
	Dim objFolder, objFolderItem

	On Error Resume Next

	Set objFolder = objShell.BrowseForFolder(0, strPrompt, intOptions, strRoot)
  	If (objFolder Is Nothing) Then
  		Wscript.Quit
	End If
  	Set objFolderItem = objFolder.Self
  	Browse4Folder = objFolderItem.Path
  	Set objFolderItem = Nothing
  	Set objFolder = Nothing
End Function

' echo the job is completed
WScript.Echo "Completed!"
__________________
Server - Windows Home Server: Sage 7.1.9 HVR-2250 and HD Homerun Dual Tuner, Intel Core2Duo 2.4GHz, RAM 4 GB, HD OS/Movies/Music/Pictures:500GB (SATAII) TV:1TB (SATAII),
Clients - 2 x HD-300, 3 x MediaMVP

Last edited by jpaddock3000; 04-03-2009 at 05:10 PM. Reason: Updated Script and Instructions
Reply With Quote
  #15  
Old 04-03-2009, 01:43 PM
Toddupton Toddupton is offline
Sage Advanced User
 
Join Date: Jul 2006
Posts: 116
Thanks!

Thanks for the script! It works PERFECT! Someone make this a sticky.
Reply With Quote
  #16  
Old 04-03-2009, 01:47 PM
MeInMaui's Avatar
MeInMaui MeInMaui is offline
SageTVaholic
 
Join Date: Feb 2005
Location: Maui. HI
Posts: 4,203
I'll add a link to the tips and tricks sticky.

Aloha,
Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full."
- Nikolaus (4yrs old)
Reply With Quote
  #17  
Old 04-10-2009, 08:31 PM
Dirtman16 Dirtman16 is offline
New Member
 
Join Date: Mar 2009
Location: Dothan, AL
Posts: 2
Well done on the VB script. That just saved me half an hour.
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
DVD file/folder structure? sheldonicarluch SageTV Software 5 01-27-2009 07:58 PM
Any Disadvantage to Service Mode? HelenWeathers SageTV Software 3 10-30-2008 07:21 AM
How to structure DVD storage/import jelentz@gmail.c SageTV Software 4 03-08-2008 09:53 PM
Problem with directory structure parkimar SageTV Beta Test Software 9 04-01-2007 09:45 PM
Movie Library - file structure Sweep SageTV Software 2 01-26-2004 04:49 PM


All times are GMT -6. The time now is 06:54 PM.


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