SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations

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
  #201  
Old 01-30-2009, 02:55 PM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Yep, that sounds very cool
__________________
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
  #202  
Old 01-30-2009, 03:26 PM
Zorglub Zorglub is offline
Sage User
 
Join Date: May 2006
Location: Montreal, QC
Posts: 46
Quote:
Originally Posted by evilpenguin View Post
I like the sound of that, can you go into more detail on you would use these XML files to import the shows into SageTV? I'm not familiar with it.
Sure, you just use nielm webserver to enter it in the database:

http://localhost:8080/sage/XMLImporter

Then you checked the "Import TV files" box and checked those options:

* Overwrite Existing Show Information
* Overwrite Existing Sage TV File Information
* Filename handling:
o Keep original imported filename
* File timestamp handling
o Use imported Airing data to determine startTime
(use when importing edited files. Will change imported file timestamp)

You then upload your xml file, and VOILA ! your video file is refered in Recorded TV with all the right info (thanks to you ) and you can start it the same way you would with any other file...

Of course I am presently doing this manually, but I am looking for a way to call this via a command line, something like:

wget.exe "http://username:ypassword@localhost:8080/sage/XMLImporter&&FileName=N:\MEDIA\Videos\TV\Battlestar Galactica\Season 4\Battlestar Galactica (2003) 4x12 - A Disquiet Follows My Soul.xml"

so I can include it in a batch file and automatize the whole thing...

I am still trying to figure out how this last part can be done, but I am convince there is a way... I may need help on this one...

Last edited by Zorglub; 01-30-2009 at 04:31 PM. Reason: Removed a typo....
Reply With Quote
  #203  
Old 01-30-2009, 08:37 PM
Zorglub Zorglub is offline
Sage User
 
Join Date: May 2006
Location: Montreal, QC
Posts: 46
Update:

After some reading on curl (which seem to be able to handle POST better than wget) and a lot of fiddling around, I came up with the good syntax:

(FWI: this has been tested on Cygwin)

curl -F "impTVFiles=checked" \
-F "impShowOverwrite=checked" \
-F "impMFOverwrite=checked" \
-F "impMFRename=keep" \
-F "impMFRedate=redateFromAiring" \
-F "xmlFile=@exemple.xml" \
-F "Import=submit" \
http://username:fpasswd@locahost:808...ter?Import=yes

Now if you can add the option to output the episode information in the good xml format, I'll be in Heaven, and so will my wife !!!
Reply With Quote
  #204  
Old 01-31-2009, 10:44 AM
Muchacho Muchacho is offline
Sage Advanced User
 
Join Date: Nov 2003
Posts: 202
downloading posters

This is fantastic! Great job and thanks.

After messing around with it for a while, I think that there is a bug with downloading the posters for movies. It generally works great, but I noticed that it does not d/l a poster if there is not a high res poster on themoviedb.org. It would seem that it should (or hopefully could) download the available lower resolution image or the one from imdb if a high res poster is not available.

Examples that did not work (mostly stuff my wife recordedů)
-The Last Kiss (has low res poster on themoviedb)
-Y Tu Mama Tambien (no poster on themoviedb, but there is one available on imdb)
-Capote (nothing available on themoviedb)

Am I missing something? Also, does sageTV periodically update its database and include the new posters, backgrounds, and .properties? It does not seem to be updating itself even after I refresh the imported folders.

Thanks again, Mike
Reply With Quote
  #205  
Old 01-31-2009, 12:43 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Quote:
Originally Posted by Muchacho View Post
It would seem that it should (or hopefully could) download the available lower resolution image or the one from imdb if a high res poster is not available
Well, not so much a bug as a feature I never bothered to implement. I'll put it on the ol' todo list.
Reply With Quote
  #206  
Old 01-31-2009, 03:35 PM
Muchacho Muchacho is offline
Sage Advanced User
 
Join Date: Nov 2003
Posts: 202
Quote:
Originally Posted by evilpenguin View Post
Well, not so much a bug as a feature I never bothered to implement. I'll put it on the ol' todo list.
Fantastic!

Much appreciated.
Reply With Quote
  #207  
Old 01-31-2009, 05:05 PM
popechild popechild is offline
Sage Expert
 
Join Date: May 2006
Posts: 725
Quote:
Originally Posted by Muchacho View Post
This is fantastic! Great job and thanks.
Examples that did not work (mostly stuff my wife recordedů)
Ha ha!
Reply With Quote
  #208  
Old 01-31-2009, 07:54 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Quote:
Originally Posted by Zorglub View Post
Update:

After some reading on curl (which seem to be able to handle POST better than wget) and a lot of fiddling around, I came up with the good syntax:

(FWI: this has been tested on Cygwin)

curl -F "impTVFiles=checked" \
-F "impShowOverwrite=checked" \
-F "impMFOverwrite=checked" \
-F "impMFRename=keep" \
-F "impMFRedate=redateFromAiring" \
-F "xmlFile=@exemple.xml" \
-F "Import=submit" \
http://username:fpasswd@locahost:808...ter?Import=yes

Now if you can add the option to output the episode information in the good xml format, I'll be in Heaven, and so will my wife !!!
I just tried it out and it worked great. Give me some time to play around with that and I should be able to get it completely automated.
Reply With Quote
  #209  
Old 01-31-2009, 08:10 PM
Zorglub Zorglub is offline
Sage User
 
Join Date: May 2006
Location: Montreal, QC
Posts: 46
Cool !

Let me know if you need any help to test it or anything else...

Thanks !
Reply With Quote
  #210  
Old 01-31-2009, 08:29 PM
cmorrow cmorrow is offline
New Member
 
Join Date: Jan 2009
Posts: 1
Possible to download Episode Images

Excellent tool EP! I have used this to make properties and .my files for all my DVDs without a problem.

One suggestion I have would be to allow downloading episode specific images for TV series from TVDB. I find them a lot better than having to use a poster for dozens of episodes in a series.

Also, not sure if this is by design, but if a high quality poster isn't available from the download site, it appears none get downloaded at all. I ended up pulling poster images for 1/3 of my DVDs from IMDB and using the properties files that were generated by mediaScraper.
Reply With Quote
  #211  
Old 02-02-2009, 12:29 PM
Phydeaux Phydeaux is offline
Sage Advanced User
 
Join Date: Aug 2008
Posts: 222
Any word yet on getting M*A*S*H to work?

RLW
Reply With Quote
  #212  
Old 02-02-2009, 01:31 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Quote:
Originally Posted by Phydeaux View Post
Any word yet on getting M*A*S*H to work?

RLW
MASH is a pretty bad one. Its at the intersection of an illegal win32 character and a reserved PERL character. I'm going to need to put some more thought into it.
Reply With Quote
  #213  
Old 02-03-2009, 06:13 PM
r00st3r's Avatar
r00st3r r00st3r is offline
Sage Advanced User
 
Join Date: Dec 2003
Posts: 182
I was working with Bill over at tvmetadatafinder.com and was able to have him incorporate saving a .my file when scraping for metadata. It renamed my avi files and i have sage using .my files for metadata. With a background.jpg in the foldeer, it looks great. That in conjunction with the mediascraper tool for movies, makes getting metadata easier for me. Just wished I could find ont to do it all automagically. Just thought I would let you know if it helps anyone else. Sorry in advance if this is the wrong topic.
__________________
R00ST3R

System:
AMD Athlon 64x2 Dual Core 4400+ 2.30GHz\2GB RAM\Vista HomeSP2\HDHomerun_firmware_20090802\nVIDIA GeForce 8500GT 8500 GT 512MB\Optical Out to reciever
Software:
SageTV:6.6.2.218|SageMC:6.3.9a pre-release 41|Metadata tools:3.1|Java: 1.6.0_13|sagemc.jar: 6.3.8|Phoenix.jar: 1.43
Reply With Quote
  #214  
Old 02-03-2009, 07:33 PM
Rob Rob is offline
Sage Expert
 
Join Date: Sep 2003
Posts: 568
Great tool. Thanks!
Reply With Quote
  #215  
Old 02-06-2009, 04:01 AM
mickp's Avatar
mickp mickp is offline
Sage Aficionado
 
Join Date: Oct 2006
Posts: 468
Quote:
Originally Posted by evilpenguin View Post
Yep, your changes should be pretty straight forward, be sure and let me know if you have any trouble.
Thanks E.P.

I've mucked about and by trial and error arrived at the following downloading.scrape which has been working well for the past week or so.

Code:
# Scraper: getSingleImageTV
#
#  INPUT: %%singleImage%%       - Image to download
#       : %%downloadTo%%        - Path to download image
#

    Profile           =getSingleImage
    Encode CLI #2     =?>!PATH:%%downloadTo%%<:>"%%downloadTo_PATH%%"<?
    Encoder #2        =/exe mkdir
    Encode CLI #2     =?>!EXISTS:%%downloadTo%%<:>"%%singleImage%%" -O "%%downloadTo%%"<?
    Encoder #2        =/exe wget.exe


# Scraper: fanartFile
#
#  INPUT: %%tvdbID%%       - theTVDB show ID
#

    Profile           =fanartFile
#   Encode CLI #1     =%%SNIP:fanartPath%%\?>centralFanartPath<:>%%showTitle_WIN32%%<=>isTV||(>videoTS&&isMovie<)<:>%%inputFile_NAME%%_background<=>%%inputFile_NAME%%_background<?.%%singleImage_EXT%%
    Encode CLI #1     =?>videoTS&&isMovie<:>%%inputFile%%\background.%%singleImage_EXT%%<=>%%inputFile_PATH%%\?>isMovie<:>%%inputFile_NAME%%_background<=>%%inputFile_NAME%%_background<?.%%singleImage_EXT%%<?
    Encoder #1        =

# Scraper: fanartLoc
#
#  INPUT: %%tvdbID%%       - theTVDB show ID
#

    Profile           =fanartPath
    Encode CLI #1     =?>centralFanartPath<:>%%centralFanartPath%%\?>isTV<:>TV<=>isMovie<:>Movies<?<=>?>videoTS&&isMovie<:>%%inputFile%%<=>%%inputFile_PATH%%<?<?
    Encoder #1        =


# Scraper: posterFile
#
#  INPUT: %%tvdbID%%       - theTVDB show ID
#

    Profile           =posterFile
    Encode CLI #1     =?>videoTS&&isMovie<:>%%inputFile%%\folder.%%singleImage_EXT%%<=>%%inputFile_PATH%%\?>isMovie<:>%%inputFile_NAME%%<=>%%inputFile_NAME%%<?.%%singleImage_EXT%%<?
    Encoder #1        =

# Scraper: bannerFile
#
#  INPUT: %%tvdbID%%       - theTVDB show ID
#

    Profile           =bannerFile
    Encode CLI #1     =%%inputFile_PATH%%\banner.%%singleImage_EXT%%
    Encoder #1        =
As i've no idea what I'm doing and couldn't get my head around the perl nuances required to realy understand what was going on, I'm confident that you could tidy this up somewhat . I'm pretty sure that I've borked it for central fanart.

Mick.

Last edited by mickp; 02-06-2009 at 04:05 AM.
Reply With Quote
  #216  
Old 02-06-2009, 04:56 AM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
How's importing xml files into SageTV going?
__________________
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
  #217  
Old 02-06-2009, 09:23 AM
JimmyBalboa's Avatar
JimmyBalboa JimmyBalboa is offline
Sage User
 
Join Date: Aug 2008
Posts: 59
Quick newbie quesiton...

I have it working, but for TV shows I would like to add Ratings and not download the graphic because it's easier to distinguish the shows by the thumbnail rather than seeing the same graphics for each episode and having to reading the title.

Can this be customized to Add ratings and remove the graphic?


Awesome tool by the way!!!!

Thanks...

Last edited by JimmyBalboa; 02-06-2009 at 09:26 AM.
Reply With Quote
  #218  
Old 02-06-2009, 09:30 AM
popechild popechild is offline
Sage Expert
 
Join Date: May 2006
Posts: 725
Quote:
Originally Posted by evilpenguin View Post
Wow, i've never seen anyone organize their TV like that before. Let me play around with that zip4test file and see if I can't work something out for you, you've got it organized so well I don't think it will be a problem.
Hey EP, just wondering if you'd had a chance to think through how I might be able to use this for all my ripped-as-VIDEO_TS tv stuff. Thanks for any suggestions!
Reply With Quote
  #219  
Old 02-06-2009, 01:32 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Quote:
Originally Posted by jaminben View Post
How's importing xml files into SageTV going?
I've *kinda* got it working, but it lead me down a pretty complicated path.

See, to make the XML file properly, I need to do some math using the length of the video and to detect the length of the video I needed to merge over some code from my encoding tool. Then since I was already merging over *some* code, I figured I might as well merge *all* the code and things kinda snowballed from there

Long story short, its almost done, but I have to a lot of testing to make sure I didn't break anything.

On the plus side the next version will also be able to encode videos/DVD's and I won't have to maintain two code bases anymore, both of which make me very happy.

Quote:
Originally Posted by popechild View Post
Hey EP, just wondering if you'd had a chance to think through how I might be able to use this for all my ripped-as-VIDEO_TS tv stuff. Thanks for any suggestions!
Same as above, I've got it in, but its buried under so many other changes that I need to test the hell out of it before I can release anything.

Quote:
Originally Posted by JimmyBalboa View Post
Can this be customized to Add ratings and remove the graphic?
I'm capturing the TV rating, but last time I checked there wasn't a place to put it. I'll double check that.

As for the graphics, I've got the tool downloading theTVDB's video thumbnails now so that should solve your problem.
Reply With Quote
  #220  
Old 02-06-2009, 01:42 PM
JimmyBalboa's Avatar
JimmyBalboa JimmyBalboa is offline
Sage User
 
Join Date: Aug 2008
Posts: 59
Quote:
Originally Posted by evilpenguin View Post
I'm capturing the TV rating, but last time I checked there wasn't a place to put it. I'll double check that.

As for the graphics, I've got the tool downloading theTVDB's video thumbnails now so that should solve your problem.
I am a novice at meta data but, Rating=TVPG, etc... should work right?



Thanks!

Last edited by JimmyBalboa; 02-06-2009 at 01:48 PM.
Reply With Quote
Reply

Tags
fanart, imdb, metadata, themoviedb, thetvdb


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Utility: Batch Metadata Importer 3.x stuckless Batch Metadata Tools 2416 09-20-2011 08:03 PM
STV Import: Read & Write Metadata files for Default STV 5/6 (v2.2.9 18/Feb./2010) JREkiwi SageTV Customizations 249 10-26-2010 12:15 AM
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


All times are GMT -6. The time now is 04:00 AM.


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