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
  #101  
Old 08-01-2007, 02:14 PM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
Quote:
Originally Posted by dvd_maniac View Post
I have about 2 dozen of them in my Music section that only have .my files...no .properties files created for them at all. I have Jerkiwi's STVI that takes the .my file and imports it into the Wiz.bin database when the video file is first scanned by Sage.
So Sage is seeing the .my file and somehow seeing it as a Music file.
Another possibility is that the timestamp of associated media is not changed by the the .my creator. So when you try to rescan, Sage doesn't even see the .my file because the video file already was already there to begin with and all you did was to create .my files. Sage doesn't know to rescan unless the timestamp on the video file is altered. I have no clue why its ending up in the music section, but at least that's a logical explanation on why the video library is not being updated with the .my file.

The solution if I am correct in my assumption is to generate .properties files for these .my files for the simple reason that I want the time stamp on the video to change and force the video library to rescan the video. (see the converter I posted earlier). You should shut down all Sage services when running the .my to .properties converter since it is changing the video's time stamp.
__________________
http://www.hydranterouge.com
Reply With Quote
  #102  
Old 08-01-2007, 03:40 PM
dvd_maniac's Avatar
dvd_maniac dvd_maniac is offline
Sage Icon
 
Join Date: Mar 2004
Location: New England
Posts: 1,899
I renamed or moved the imported video directory just so that didn't happen.

I do not believe this is a problem with your scraper though, as everytime I fix the .my files, rename the Imported Videos directory and rescan it... It seems to find other videos and put them in the Music section. So I think this is a Beta issue with how it seperates Music and Imported Videos.

I will continue testing for a few days before filing a bug report.
__________________
If this doesn't work right, Then:
"I'm going to blow up the Earth!"
Reply With Quote
  #103  
Old 09-07-2007, 08:50 AM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
Been busy lately

Just wanted to thank everyone who is using the scraper for your encouragement and to let you know that I am sorry that promised updates have been late in coming. I've had a few important projects on the go lately and haven't had as much hobby time to devote lately.

Therefor I am making a call to any venturous people who know Python script to take the ball and continue this project. I thing gui development and an online metafile browser is the next step.

If anyone is interested, please send me a pm and I'll email you all my source code.

Regards

Roxy
__________________
http://www.hydranterouge.com
Reply With Quote
  #104  
Old 09-10-2007, 07:21 AM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
Come on I know there are some programmers out there. If you're a Java developer, you can do a GUI in Java and then implement some hooks to the Python code.
__________________
http://www.hydranterouge.com
Reply With Quote
  #105  
Old 09-12-2007, 11:58 PM
megamojo's Avatar
megamojo megamojo is offline
Sage Advanced User
 
Join Date: Apr 2006
Posts: 179
Is there any way we could get the episode name in the title space in the .my file? I name all my shows with the show name, episode number, and title in the filename, like this "CSI 7x01 Creepy Crawlies" for example. Without any properites file sage displays the filename and I know exactly what I'm watching, which is nice. After scanning a few directories with your scraper and generating properties files now the title is exactly the same for every episode of a given show.
Reply With Quote
  #106  
Old 09-13-2007, 01:29 PM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
Quote:
Originally Posted by megamojo View Post
Is there any way we could get the episode name in the title space in the .my file? I name all my shows with the show name, episode number, and title in the filename, like this "CSI 7x01 Creepy Crawlies" for example. Without any properites file sage displays the filename and I know exactly what I'm watching, which is nice. After scanning a few directories with your scraper and generating properties files now the title is exactly the same for every episode of a given show.


What happens if you don't generate properties files and just use the given .my files? The .my files use the same file name as the source video file. I think that what is happening is the properties file is missing the title information. See if the error happens when you simply generate .my files.

If the problem only occurs with the properties stage then I know that the .my to .properties converter needs to be fixed. Please correct me if I am misunderstanding the problem you are having.
__________________
http://www.hydranterouge.com
Reply With Quote
  #107  
Old 09-13-2007, 03:20 PM
megamojo's Avatar
megamojo megamojo is offline
Sage Advanced User
 
Join Date: Apr 2006
Posts: 179
I think you are misunderstanding me. It happens with just the .my files, doesn't matter if I make a properties file or not. In the .my file, the space for title just says the show name e.g. "Family Guy" instead of "Family Guy 1x01 Death Has a Shadow." When I convert the .my files to .properties, it just uses what .my has for the title, and all my episodes of any given show have the exact same name displayed by sage instead of a name which includes the episode number and/or episode title. The .my files do contain the correct information in the space for episode name, it's just that sage only displays the entry for title in the OSD during playback. This is why I would like the full episode name to be in the title space if there is any way to easily do that.

Last edited by megamojo; 09-13-2007 at 03:27 PM.
Reply With Quote
  #108  
Old 09-13-2007, 08:18 PM
megamojo's Avatar
megamojo megamojo is offline
Sage Advanced User
 
Join Date: Apr 2006
Posts: 179
I understand that you're busy. If you want to examine my problem great, but don't worry about it too much. I installed the .my reader STV import so I don't have to worry about creating .properties files. Also, with this method I still get my nice filenames displaying in the OSD, so all is well. Thanks for such a great scraper!
Reply With Quote
  #109  
Old 09-13-2007, 09:52 PM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
Quote:
Originally Posted by megamojo View Post
I think you are misunderstanding me. It happens with just the .my files, doesn't matter if I make a properties file or not. In the .my file, the space for title just says the show name e.g. "Family Guy" instead of "Family Guy 1x01 Death Has a Shadow." When I convert the .my files to .properties, it just uses what .my has for the title, and all my episodes of any given show have the exact same name displayed by sage instead of a name which includes the episode number and/or episode title. The .my files do contain the correct information in the space for episode name, it's just that sage only displays the entry for title in the OSD during playback. This is why I would like the full episode name to be in the title space if there is any way to easily do that.
That's because the title field in the .my file is only 'Family Guy'. We could always merge the episode title with the show title however that doesn't seem right when there is already an episode field header in the .my file. I'm afraid that this is Sage issue in the way the .my plugin is reading the .my file.
__________________
http://www.hydranterouge.com
Reply With Quote
  #110  
Old 09-13-2007, 10:50 PM
megamojo's Avatar
megamojo megamojo is offline
Sage Advanced User
 
Join Date: Apr 2006
Posts: 179
Quote:
Originally Posted by roxy99 View Post
That's because the title field in the .my file is only 'Family Guy'. We could always merge the episode title with the show title however that doesn't seem right when there is already an episode field header in the .my file. I'm afraid that this is Sage issue in the way the .my plugin is reading the .my file.
Agreed. Your way is absolutely correct, since there's a tag for both title and episode. I was just disappointed when i tested it on a couple folders and suddenly lost my OSD info. But, using the direct .my RW STVi from JREkiwi is working just beautifully for me. If only there was a way to automagically create .my files for all my movies now that your great scraper has flawlessly made them for all my imported TV shows.
Reply With Quote
  #111  
Old 10-25-2007, 07:58 PM
megamojo's Avatar
megamojo megamojo is offline
Sage Advanced User
 
Join Date: Apr 2006
Posts: 179
Here's a nice little one line batch file I created tonight. Just put one of these in each of your directories where you put TV shows and you can generate the metadata files just by running it instead of going up one folder level and dragging the folder onto the metadata creator shortcut.

Code:
echo.| "D:\Program Files\TV Metadata Creator\videometadata.exe" -p (%~dp0)
The "echo.|" at the beginning is so you don't have to press enter to close the cmd window, it's the pipe character (same key as backslash), not a lowercase L. The "%~dp0" for the path just means that it will use the directory where the batch file is located.
Reply With Quote
  #112  
Old 03-02-2008, 09:40 PM
millers_35 millers_35 is offline
Sage Advanced User
 
Join Date: Apr 2006
Location: Vonore, TN
Posts: 228
Send a message via AIM to millers_35
I'm not sure how to get it to scrape the info for "Special" episodes. I guess I dont have the file names setup right for those files. The ones I am trying to do are from Lost and Ghost Hunters. Could anyone lend a hand?

The way I have my eps setup is.

--Lost
----Season 1
-------01 - Pilot(1).avi
----Season 2

and so forth. Here is the command I am using:
Code:
"C:\Program Files\TV Metadata Creator\videometadata.exe" -p (G:\Imported\TV Shows\lost) -t 2 -s 1
Miller
__________________
Server: AMD Athlon 64 X2 3600+, 2GB Corsair XMS2 PC2 6400 Ram, 1 X Hauppage PVR-150MCE, HDHomerun, 500GB HD + 1TB HD.
STX-HD100 connected to a Sammy HLT-6187S and Placeshifter.
Software: Vista Business(Server), SageTV 7.0.9, Java 1.6_20.
Reply With Quote
  #113  
Old 03-27-2008, 08:55 AM
kricker's Avatar
kricker kricker is offline
Sage Icon
 
Join Date: Jan 2005
Location: Knoxville, TN
Posts: 1,137
Send a message via AIM to kricker Send a message via MSN to kricker
I just tried out the app and it's pretty cool. I have a couple questions and request.

When I run the app it seems to find things ok, but in the DOS window it always shows episode:0 for every show even though it finds the right info. Why is that? For reference my structure is as follows:
Code:
..\..\TV\Two and a Half Men\Season 05\12-A Little Clammy and None Too Fresh.avi
and my batch file run from the TV folder is:
Code:
echo.| "D:\Utilities\TV Metadata Creator\videometadata.exe" -p (%~dp0) -t 2 -s 1

It had issues finding "Human Body: Pushing the Limits" most likely because due to windows restrictions I had to name it "Human Body- Pushing the Limits". I fixed this by using the showid.txt method. Would it be possible to implement a switch or something for character replacement before the search happens? So the app will know to use a : instead of - when searching for a show title? I can see this happening for various show and episode names.

Do you plan on adding the ability to scrape the http://thetvdb.com/?

Last edited by kricker; 03-27-2008 at 09:07 AM.
Reply With Quote
  #114  
Old 03-31-2008, 03:48 PM
kricker's Avatar
kricker kricker is offline
Sage Icon
 
Join Date: Jan 2005
Location: Knoxville, TN
Posts: 1,137
Send a message via AIM to kricker Send a message via MSN to kricker
How can I look up specials? like listed at the bottom of this page.

I also noticed the scraper will not recognize "Top Gear" but it has to be "Top Gear (UK)."
Reply With Quote
  #115  
Old 04-01-2008, 01:18 PM
mherce mherce is offline
Sage User
 
Join Date: Mar 2008
Posts: 50
I'm a newbie to SageTV and I'm giving this plugin a try in hopes it will replace my beloved MyTV MCE plugin.

I have a test.bat which I put in the directory I am testing it out on. It looks like this:

Code:
"D:\Apps\TV Metadata Creator\videometadata.exe" -p (%~dp0) -t 2 -s 1
This is what the windows looks like:

Quote:
H:\Media\TV\Tin Man\Season 1>"D:\Apps\TV Metadata Creator\videometadata.exe" -p
(H:\Media\TV\Tin Man\Season 1\) -t 2 -s 1
Importing modules
Starting with forced parameters: t=2 s=1

Reading show titles...please wait
Season level: 1
-->Tin Man
Tin Man - Episode 01 - Ep 01.avi
EP TYPE->

Season level: 1
-->Tin Man
Tin Man - Episode 02 - Ep 02.avi
EP TYPE->

Season level: 1
-->Tin Man
Tin Man - Episode 03 - Ep 03.avi
EP TYPE->





VIDEO :
H:\Media\TV\Tin Man\Season 1\Tin Man - Episode 01 - Ep 01.avi

Loading episodes...
Looking up show title...please wait
Now it's been like that for 4 hours and counting now. There is a text file called vidlist.txt in the directory with the Tin man video files but its blank.

My library is organized like this:

"Drive root (H)\Media\TV\Tin Man\Season 1\Tin Man - Episode 01 - Ep 01.avi"

Some of my files have the actual episode name instead of the repeat of the Ep number.

Can anyone help me? How to I debug this app or get a log of what its hanging on? I've tried this with 4 different shows now all hang. I figured maybe it was just slow and left it while I went out. Howevere, 4 hours seems like way too long. I'm on a 5mbps download DSL connection.

As an aside, that my TV plugin for MCE also uses the tvdb.com and I find it to be a very nice site which is made for scraping.

Thanks!!

Edit: Now its been 8 hours and I closed it. Videolist.txt is still empty.

Last edited by mherce; 04-02-2008 at 01:19 AM.
Reply With Quote
  #116  
Old 06-13-2008, 07:37 AM
mherce mherce is offline
Sage User
 
Join Date: Mar 2008
Posts: 50
2 months later and I've got the time to play with HTPC software again. I got this working now, using "D:\Apps\TV Metadata Creator\videometadata.exe" -p (H:\Media\TV) -t 2 -s 1" .

I have to say, this plugin gives metadata hope to Sage. I find I wish that TV.com did movie info as well so i could use this on my movie library. If I end up going with Sage, I'll be using your donte button if you got one for some beer.

I've only got two issues which are not major and, if I stick with SageTV, I will just spider the page and use a text scraper to create the my files. So this is just a bug report kind of thing.

First is that Ghost in the Shell: Stand alone complex season 2 (aka 2nd gig) does not import. I've stuck in a showid.txt and it finds the show but doesn't match the episodes (Episode does not exist). I've got it so that:

H:\Media\TV\Ghost in the Shell Stand alone complex\Season 2\episode 01.avi
H:\Media\TV\Ghost in the Shell Stand alone complex\Season 2\episode 02.avi
....

Second, is not a bug but a feature. Specials make a big mess of things, it would be nice if the app would read a special tag and skip episode processing on the file and search for the show title instead.

Otherwise a great app and one sorely need by this program, thanks!
Reply With Quote
  #117  
Old 07-25-2008, 04:25 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Hey there, I'm not a big TV archiving guy, but I am curious about your scraper. Is there a way to scrape the info with Title and Episode name, instead of Season and Episode number? How hard would something like that be to do? I'm asking because of the method SageTV uses for its recordings is to use Title-Episode-ID.mpg. Adding this feature would allow pulling of tv.com data for tv recordings, and even better, allow semi-automatic reintegration of recorded shows after a wiz.bin crap-out. Whitespace would have to be regenerated, but I have been successful doing a search on tv.com using title and episode in the general search box. for example:

TheWonderPets-HeresOllieSavetheVisitor-565430.mpg

some whitespace parsing (adding spaces before capital letters and minor words (the, and, or, and, etc.) gives:

The Wonder Pets Heres Ollie Save the Visitor

Using that in the tv.com search string:
Code:
http://www.tv.com/search.php?qs=The+Wonder+Pets+Heres+Ollie+Save+the+Visitor&type=11&stype=search&tag=search%3Bbutton&om_act=convert&om_clk=search
yields the correct page.

Haven't tried it with too many other shows yet though.
__________________
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

Last edited by Fuzzy; 07-25-2008 at 04:34 AM.
Reply With Quote
  #118  
Old 08-22-2008, 11:50 AM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
I'm back

Glad to see my little app has generated some interest.

Maybe I'll dust off the source code and see what improvements I can make.

Anyone else have a wants list about what they would like with this scrapaer?

I remember talking about a gui interface... I don't know if that is what people want.

Anyway,

Just wanted to say hi!
__________________
http://www.hydranterouge.com
Reply With Quote
  #119  
Old 09-17-2008, 09:10 PM
dvd_maniac's Avatar
dvd_maniac dvd_maniac is offline
Sage Icon
 
Join Date: Mar 2004
Location: New England
Posts: 1,899
Hi Roxy,

I noticed that TV.com has been updated and when I tried to use the scraper it seemed to connect and work fine but then everything Errored...
Here is my videolist.txt

Does this just need an update? I hope you have time to look at it because I love this program...
__________________
If this doesn't work right, Then:
"I'm going to blow up the Earth!"
Reply With Quote
  #120  
Old 09-18-2008, 04:47 PM
megamojo's Avatar
megamojo megamojo is offline
Sage Advanced User
 
Join Date: Apr 2006
Posts: 179
I'm seeing the exact same behavior.
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
TV.Com to .My File Generator (MyScraper) pdavis SageTV Customizations 18 02-07-2008 10:50 PM
Automatic and integrated IMDB info for DVD on SageMC mkanet SageMC Custom Interface 0 04-30-2007 12:02 PM
TV.com import Info like IMDB Search jbilich SageTV Customizations 1 08-10-2006 12:16 AM
Automatic refresh? afinemetsfan SageTV Studio 3 06-30-2006 09:29 PM


All times are GMT -6. The time now is 10:38 AM.


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