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
  #121  
Old 03-19-2009, 01:47 PM
Tiki's Avatar
Tiki Tiki is offline
Sage Icon
 
Join Date: Feb 2005
Location: Southwest Florida, USA
Posts: 2,009
I had another thought that may apply to the scraping tools. I know we said that we want to leave the file names intact so that the scraper can compare file names and know what it already downloaded. However, how do we handle the case where some of the scraped fan art is poor quality and we want to delete it? If we simply delete, will the scraper automatically re-download?
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM
Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2)
,USBUIRT (multi-zone)
Source:
Comcast/Xfinity X1 Cable
Primary Client: Server Other Clients: (1) HD200, (1) HD300
Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE,
HDHR, HVR-2250, HD-PVR
Reply With Quote
  #122  
Old 03-19-2009, 02:00 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Quote:
Originally Posted by Tiki View Post
I had another thought that may apply to the scraping tools. I know we said that we want to leave the file names intact so that the scraper can compare file names and know what it already downloaded. However, how do we handle the case where some of the scraped fan art is poor quality and we want to delete it? If we simply delete, will the scraper automatically re-download?
I'm making it so my scrapper automatically downloads the first X number of images (default 3) for of each type. So yes, if you were to delete one of those, I would automatically re-download it every time you scraped.

A way around it would be to only download images if the folder doesn't already exist. That way the first time it would populate everything, but every subsequent time it wouldn't try to download anything, even if new fanart is added to the scraping website.
Reply With Quote
  #123  
Old 03-19-2009, 02:04 PM
MeInMaui's Avatar
MeInMaui MeInMaui is offline
SageTVaholic
 
Join Date: Feb 2005
Location: Maui. HI
Posts: 4,203
What about appending a new extension (like .del or .rm) to the files to be ignored instead of deleting them? The scraper could check against those files as well as the originals and the fan art class could be updated to exclude files with that extension.

Aloha,
Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full."
- Nikolaus (4yrs old)
Reply With Quote
  #124  
Old 03-19-2009, 02:34 PM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
I don't see this as an issue if we have the abilty to choose between three different images from within the SageMC UI. Its been my expirence so far that at least one of those three would be a good image and you'd be quite unlucky to get three bad ones. Even if you did get 3 bad images the idea of limiting the maximum downloaded images is to allow the user to do some work on their favorite images themselves rather than to spam TVDB for 30+ backgrounds in once instance.

Just my thoughts

edit:

Another thought might be to only download the three highest user rated images which should be the best three available.
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders

Last edited by jaminben; 03-19-2009 at 02:38 PM.
Reply With Quote
  #125  
Old 03-19-2009, 03:18 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
How about this.....

in each folder that contains metadata, have an optional "Images" files. This file contains the name of each image that has been added to the folder. When a scraper downloads an image, it's checks to see if the image name exists in the Images file. If it does, then the image is skipped, if not the image is downloaded and then it's name is added to the Images file.

This way, a user can manually remove images, and not have to worry about it being redownloaded. Also, users can rename images, or the scrapers can rename images for that matter, and not download the image more than once.

If a user wants to redownload fanart, then they'll have to manually remove the name from the Images file.

A sample images file may look like
Code:
poster_1920.jpg
poster_lowres.jpg
The names in the Images file must be the original filename as retrieved from the site.

This way the fanart apis don't need to be udpated, and it's up to scrapers to "honor" the Images file or not.
Reply With Quote
  #126  
Old 03-19-2009, 03:50 PM
Ikarius's Avatar
Ikarius Ikarius is offline
Sage Advanced User
 
Join Date: Aug 2008
Posts: 84
Stuckless,
Considering that various sites which contain fanart commonly have odd names for the images which do not conform to our naming schema, how should we tie an image a scraper has downloaded to a local filename? Can I assume the "images" file should contain both the remote source and the local filename?
__________________

SageTV 6.6.2, SageMC+CenterSage Theme
Server: Intel Core2 Q6600, 8gb memory, 3x 1tb WD EACS drives, software RAID5 2tb capacity, 4gb Flash boot drive, Ubuntu 8.0.4 Server edition
Capture: 1x HD-PVR -> Motorola DTC6200
Clients: 1x STX-HD100 1x STX-HD200, Windows & OSX Clients
Reply With Quote
  #127  
Old 03-19-2009, 03:52 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Quote:
Originally Posted by Ikarius View Post
Stuckless,
Considering that various sites which contain fanart commonly have odd names for the images which do not conform to our naming schema, how should we tie an image a scraper has downloaded to a local filename? Can I assume the "images" file should contain both the remote source and the local filename?
In Stuckless's plan the scraper wouldn't care what the local name was, it would just see that the images has previously been downloaded and skip it.

I personally like Mike's idea because checking for the existence of a file is easier than reading in a text file and doing string compares.

Last edited by evilpenguin; 03-19-2009 at 03:55 PM.
Reply With Quote
  #128  
Old 03-19-2009, 04:06 PM
Tiki's Avatar
Tiki Tiki is offline
Sage Icon
 
Join Date: Feb 2005
Location: Southwest Florida, USA
Posts: 2,009
Maybe another possibility would be to only automatically look for new fan art if no fan art exists. Once a folder is created, don't keep automatically checking for new art, but allow a manual method to force it to check for new art if desired.

I probably missed it in an earlier post, but what triggers the scraper to go out and look for new images?
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM
Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2)
,USBUIRT (multi-zone)
Source:
Comcast/Xfinity X1 Cable
Primary Client: Server Other Clients: (1) HD200, (1) HD300
Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE,
HDHR, HVR-2250, HD-PVR
Reply With Quote
  #129  
Old 03-19-2009, 05:17 PM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
How would this also work for when you start getting new seasons? Would it see that its a new season and download new backgrounds, posters etc that are related to that season or would it just use what it already had?

Thought I'd throw that one into the pot as well
__________________
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
  #130  
Old 03-19-2009, 07:45 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
While my ideas of using an "Images" file is a little more work for the scrapers, it actually a lot more intuitive for the end users... ie, they just delete fanart images that they don't want, and the folders are a little neater in the end. As it stands, I have to update the scraper to do "something", but with this solution, I don't have to update the phoenix api as well

jaminben, season artwork is downloaded into its own folder... so it would only look into its own folder for existing artwork. ie, the scrapers would not check all seasons for the existence of a piece of artwork (at least bmt won't )
Reply With Quote
  #131  
Old 03-19-2009, 11:16 PM
MeInMaui's Avatar
MeInMaui MeInMaui is offline
SageTVaholic
 
Join Date: Feb 2005
Location: Maui. HI
Posts: 4,203
Just for the record, I like stuckless' plan best for handling deleted fan art. I really like that it makes it so the scraper no longer cares what the filenames are.

Aloha,
Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full."
- Nikolaus (4yrs old)
Reply With Quote
  #132  
Old 03-20-2009, 07:06 AM
VikingCrown's Avatar
VikingCrown VikingCrown is offline
Sage Aficionado
 
Join Date: Jun 2006
Posts: 269
Not sure if this one is relevant to the new format that is coming, but thought i throw it out there. Zap2it currently populates generic show information for some shows. Specifically The Starter Wife on UniversalHD. I am trying to record this for my wife, but each episode only has the same generic information for the series. I checked the info for the episodes and they all have the same show id as well as the same original air date. How would this new format treat an instance like this? I am currently sorting through the episodes to see what goes where, once i figure out which is which how should I go about renaming them to get the scrapers to pull the correct information?

If this doesn't belong here, please move it to somewhere more relevant. Can't wait to see what you guys have been working on, its gonna be awesome!

Regards,
Brian
Reply With Quote
  #133  
Old 03-22-2009, 07:19 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Instead of emailing "snapshots" of the phoenix jar to developers, I've decided to add a release to the downloads area. I'll post snapshots there as new functionality is added.
Reply With Quote
  #134  
Old 04-18-2009, 01:00 PM
Julianus Julianus is offline
Sage Advanced User
 
Join Date: Dec 2005
Location: Toronto
Posts: 82
Is the source code available?
Reply With Quote
  #135  
Old 04-18-2009, 05:22 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Phoenix is open source (apache 2.0), but currently the project is being developed by a limited # of people. I'll try to post src snapshots when I post binary builds.
Reply With Quote
  #136  
Old 07-03-2009, 04:37 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Regarding Actor images (I know, it's been pseudo hashed out and forgotten). Could it have a fallback to a generic Actor folder? So it would check:

TV\SeriesTitle\Season #\Actors\
TV\SeriesTitle\Actors\
\Actors\

and

Movies\MovieTitle\Actors\
\Actors

This would allow actor images to be displayed, even if there are no Show specific shots of the actor?
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
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
HD200 FanArt vexhold SageMC Custom Interface 6 12-22-2008 09:45 AM
Digital in Central Florida melgish Hardware Support 0 04-04-2008 08:50 AM
Central European Character problems alanwww1 SageTV Software 0 12-15-2007 12:20 PM
SageTV 2.1 improvments and fixes? tankd0g SageTV Software 2 12-09-2004 10:27 PM


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


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