NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 70 71 72 73 74 … 93 Next »
MyVids tv.com fix

 
  • 0 Vote(s) - 0 Average
MyVids tv.com fix
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#1
2005-06-20, 05:10 AM (This post was last modified: 2005-06-26, 11:48 PM by reven.)
heres a beta version of my vids with using tv.com for the episode lookup/browse. i just want a few people to test it with television shows and see how successfully it is and if there are any bugs.

i also fixed a bug that wouldnt delete a folder (it was trying to "delete root element" instead of folder). and the bug with 'g' not appearing in the phonestyle entry for the onscreen keyboard.

ive only really tested the tv.com lookup with "lois & clark", "buffy the vampire slayer", "macgyver", "smallville" (i think thats it) all with "episode lookup" scan, and 100% success rate (which is pretty good Smile). my internet is pretty slow these days (i have no idea why, 256k adsl and webpages are slow as hell) and it took about 1minute for the first lookup (it needs the episode_guide.html page to build the url listings) and then every other lookup only took about 4seconds each. so its quite good.

it uses a 24 hour cache system, meaning it will save the downloaded pages in gbpvr/temp/cache and if the file was downloaded in the last 24 hours it wont connect to the internet, instead it will use the file in the cache (so handy if you are looking up several episodes of the same show).

tv.com doesnt responsed to the http request header "If-Modified-Since: blah" so i cant cache based on that (which is annoying).

if you find any bugs (relating to tv.com, nothing else, well nothing major) let me know. and please post the results, how long it took, how successful, etc.

ive been able to get all the information i could get from tvtome.com except the number of votes cast for the rating (which isnt that important).

ps this version prints out quite a bit of debugging info to the gbpvr.exe.log file (ill remove this in the final version, or add it as an option or something).
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#2
2005-06-20, 01:02 PM
updated it again, this one has a few more bug fixes, you can set the debugging level in the config, lookups are more reliable. and ive added a lookup for tv.com to get the show info (not episode info), their website uses javascript which something on my end is blocking so i cant find the urls for the images. it gets this information for a tv.com lookup
- showname
- runtime
- genres
- rating
- year (first aired)
- description

you need to edit your skin.xml file and replace the "TVTome" entry (just do a search for it) with "TV.com". its a small skin change, but ill probably work around this in the beta (so tipstir, dont worry, i doubt you'll need to edit any of your skins).
UKGuest44
Offline

Member

Posts: 72
Threads: 22
Joined: Apr 2005
#3
2005-06-20, 09:44 PM
Thanks for updating it to work with tv.com - for me, this was one of the most useful features, as I pretty much only record and watch normal television episodes.

Sadly, I cannot seem to get it to work. On videos that worked fine when it was tvtome, I'm not having any luck. I replaced the plugin video, restarted GBPVR, and retried to no avail.

1st I tried to do "Episode Browse" feature for one file. 2nd I tried to do "Episode Lookup" (One file, not the entire folder). Both times, the getting movie information box appeared for about 2 seconds, and disappeared, obtaining no information Sad

The log is below. It starts just after the main menu has been created and ends after unsucessfully trying to the get the information. It should show both attempts (episode browse and episode lookup).

Code:
20/06/2005 22:32:42.796    VERBOSE    [2]    Loading main menu
20/06/2005 22:32:42.796    VERBOSE    [2]     - Adding task: My Videos
20/06/2005 22:32:42.796    VERBOSE    [2]     - Adding task: My Music
20/06/2005 22:32:42.796    VERBOSE    [2]     - Adding task: Recordings
20/06/2005 22:32:42.796    VERBOSE    [2]     - Adding task: Live TV
20/06/2005 22:32:42.796    VERBOSE    [2]     - Adding task: TV Guide
20/06/2005 22:32:42.796    VERBOSE    [2]     - Adding task: Search Guide
20/06/2005 22:32:42.796    VERBOSE    [2]     - Adding task: Video Library
20/06/2005 22:32:42.796    VERBOSE    [2]     - Adding task: Music Library
20/06/2005 22:32:42.796    VERBOSE    [2]     - Adding task: DVD
20/06/2005 22:32:42.796    VERBOSE    [2]     - Adding task: FM Radio
20/06/2005 22:32:42.796    VERBOSE    [2]     - Adding task: Net Radio
20/06/2005 22:32:42.796    VERBOSE    [2]     - Adding task: Exit
20/06/2005 22:32:42.796    VERBOSE    [2]     - Adding task: DVD Ripper
20/06/2005 22:32:42.796    VERBOSE    [2]     - Adding task: MVP Position
20/06/2005 22:32:42.859    VERBOSE    [2]    getValue() loading new key/value into cache: /settings/ExitOnEsc
20/06/2005 22:32:42.859    VERBOSE    [2]    getValue: /settings/ExitOnEsc : false
20/06/2005 22:32:42.859    VERBOSE    [2]    getValue cached value: /settings/DirectNumberSelect : false
20/06/2005 22:32:42.859    VERBOSE    [2]    getValue cached value: /settings/DirectNumberSelect : false
20/06/2005 22:32:42.875    VERBOSE    [2]    getValue cached value: /settings/EPGProcessingMode : NORMAL
20/06/2005 22:32:42.875    VERBOSE    [2]    getValue cached value: /settings/EPGProcessingMode : NORMAL
20/06/2005 22:32:47.125    VERBOSE    [2]    watcher is watching = H:\My Videos\
20/06/2005 22:32:47.984    VERBOSE    [2]    HideMouse ref=-1
20/06/2005 22:32:50.562    VERBOSE    [2]    RecordingFactory.loadSchedule()
20/06/2005 22:32:50.562    VERBOSE    [2]    Purging any stale logically deleted recordings
20/06/2005 22:32:50.968    VERBOSE    [2]    watcher is watching = H:\My Videos\Simpsons
20/06/2005 22:32:57.828    VERBOSE    [2]    input: The Simpsons
20/06/2005 22:32:59.312    VERBOSE    [496]    Finding url for The Simpsons
20/06/2005 22:32:59.890    VERBOSE    [496]    TVDotCom.FindURL Error:  is not a supported encoding name.
Parameter name: name
20/06/2005 22:32:59.890    VERBOSE    [496]       at System.Globalization.EncodingTable.internalGetCodePageFromName(String name)
   at System.Globalization.EncodingTable.GetCodePageFromName(String name)
   at System.Text.Encoding.GetEncoding(String name)
   at MyVideosPlugin.InfoLookup.TVDotCom.FindURL(String showname, Int32 level)
20/06/2005 22:32:59.906    VERBOSE    [496]    TVDotCom.Search(showname).Error : Object reference not set to an instance of an object.
20/06/2005 22:32:59.906    VERBOSE    [496]       at MyVideosPlugin.MovieInfo.UrlFileFormat(String url)
   at MyVideosPlugin.InfoLookup.TVDotCom.Search(String showname)

Strangely enough, as far as I can see, it only seems to have recorded the episode browse attempt (for the series 'The Simpsons') and NOT a thing for the direct episode lookup (searching for the name). I tried it again, with only doing an episode lookup (no browse) and cant find anything in the log

From the end of adding tasks, to the end of the log
Code:
20/06/2005 22:39:41.515    VERBOSE    [2]    getValue() loading new key/value into cache: /settings/ExitOnEsc
20/06/2005 22:39:41.515    VERBOSE    [2]    getValue: /settings/ExitOnEsc : false
20/06/2005 22:39:41.515    VERBOSE    [2]    getValue cached value: /settings/DirectNumberSelect : false
20/06/2005 22:39:41.515    VERBOSE    [2]    getValue cached value: /settings/DirectNumberSelect : false
20/06/2005 22:39:41.531    VERBOSE    [2]    getValue cached value: /settings/EPGProcessingMode : NORMAL
20/06/2005 22:39:41.531    VERBOSE    [2]    getValue cached value: /settings/EPGProcessingMode : NORMAL
20/06/2005 22:39:45.453    VERBOSE    [2]    watcher is watching = H:\My Videos\
20/06/2005 22:39:47.578    VERBOSE    [2]    HideMouse ref=-1
20/06/2005 22:39:50.812    VERBOSE    [2]    RecordingFactory.loadSchedule()
20/06/2005 22:39:50.812    VERBOSE    [2]    Purging any stale logically deleted recordings
20/06/2005 22:39:51.218    VERBOSE    [2]    watcher is watching = H:\My Videos\Simpsons
20/06/2005 22:40:02.843    VERBOSE    [2]    ShowMouse ref=0
20/06/2005 22:40:03.781    VERBOSE    [2]    getValue() loading new key/value into cache: /settings/NetRadioBufferSize
20/06/2005 22:40:03.781    VERBOSE    [2]    getValue: /settings/NetRadioBufferSize : 96000
20/06/2005 22:40:03.781    INFO    [2]    NetRadio buffer size is: 96000
Hope this helps. If I am doing something wrong, please let me know.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#4
2005-06-21, 02:53 AM (This post was last modified: 2005-06-21, 02:58 AM by reven.)
the reason why the attempt didnt show up in the log, is probably the debugging level in the config app (under my videos), im implementing a level of debugging so you can reduce the stuff printed to the gbpvr.exe.log, and if an error occurs you can increase the debugging level so i can get as much useful information as possible (but a lot of information will be printed to the log, so dont keep it on max).

its having trouble with the encoding that page uses (i was trying to be smart and use the same encoding to read the page as the page says its using (helpful for weird characters like err those funny german ones Smile), and for some reason the encoding that page uses is unknown, causing an error (ive now fixed this, defaults to a different encoding).
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#5
2005-06-21, 03:54 AM
ok ive updated the zip in the first post, it includes the fix for UKGuest44 and a few other bugs fixes.

i did a test on "alias - 4x18.avi" to "alias - 4x22.avi" for scan "episode lookup" and all came back the correct one (so you dont need the episode name now, it works well just with season and episode number).

can some one try and find a url for me, goto this url: http://www.tv.com/buffy-the-vampire-slay...mmary.html
click the on the image (above the "more photos" link) a popup box should be displayed. and the image you just clicked on should be larger and displayed on the left, can someone right click on that image and goto properties and find the url for that image for me. (something is blocking the javascript used on my end, so i cant see the larger picture, and thus find its url). i need the url so i can download a image for the tv.com show lookups.
tieke
Offline

Senior Member

Posts: 450
Threads: 72
Joined: Jul 2004
#6
2005-06-21, 04:16 AM (This post was last modified: 2005-06-21, 04:29 AM by tieke.)
Hi reven,

it's at: http://image.com.com/tv/images/processed...d/1512.jpg

(I had to turn off my Proxomitron blocker to see the larger picture, and I still couldn't view any of the other ones - looks like they have a couple of bugs to work on.)

cheers,

tieke

EDIT:
There doesn't seem to be any obvious sorting of photos - looking at the source of the Buffy and Charmed image pages gave me:

First ten "Buffy" images:
pic[1] = http://image.com.com/tv/images/processed...d/1512.jpg
pic[2] = http://image.com.com/tv/images/processed...d/6452.jpg
pic[3] = http://image.com.com/tv/images/processed...0/6453.jpg
pic[4] = http://image.com.com/tv/images/processed...3/6454.jpg
pic[5] = http://image.com.com/tv/images/processed...f/6455.jpg
pic[6] = http://image.com.com/tv/images/processed...d/6456.jpg
pic[7] = http://image.com.com/tv/images/processed...5/6457.jpg
pic[8] = http://image.com.com/tv/images/processed...3/6458.jpg
pic[9] = http://image.com.com/tv/images/processed...8/6459.jpg
pic[10] = http://image.com.com/tv/images/processed...0/6460.jpg

First ten "Charmed" images:
pic[1] = http://image.com.com/tv/images/processed...9/1520.jpg
pic[2] = http://image.com.com/tv/images/processed...6/7292.jpg
pic[3] = http://image.com.com/tv/images/processed...1/7293.jpg
pic[4] = http://image.com.com/tv/images/processed...4/7294.jpg
pic[5] = http://image.com.com/tv/images/processed...3/7295.jpg
pic[6] = http://image.com.com/tv/images/processed...1/7296.jpg
pic[7] = http://image.com.com/tv/images/processed...5/7297.jpg
pic[8] = http://image.com.com/tv/images/processed...6/7298.jpg
pic[9] = http://image.com.com/tv/images/processed...1/7299.jpg
pic[10] = http://image.com.com/tv/images/processed...7/7300.jpg

Some sort of pseudo-random hex thing?
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#7
2005-06-21, 04:43 AM
thanks tieke,
small image url: (which is available in the summary page)
http://image.com.com/tv/images/processed...d/1512.jpg
large image url:
http://image.com.com/tv/images/processed...d/1512.jpg
so just have to replace the "thumb" part to "photo_viewer" and ill get the large one.

ill add this later tonight.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#8
2005-06-21, 08:09 AM
updated again

for tv.com lookups (you wont see this unless you edit the skin.xml and replace "TVTome" with "TV.com" in the popupmenu section) it now downloads the poster art (large one if found, small one if thats all there is (eg macgyver only has small buffy has large)). big thanks to tieke for his help.

the defautl myvideoseplist.xml file now has about 120 entries in it (i went thru my tv guide, and a the shows i watch and built a big list (finding the url is the hardest part, since the only way to really do this is using "google im feeling lucky" which is unreliable (the invisible man came back some strange show i never heard of)).

if you find any shows that find the wrong url, tell me the exact names used and ill add them to the default xml file (ill also try and improve the findurl algorithmn).


if anyone know how to get a xmlcomment placed at the top using c#, let me know. im using code like
Code:
XmlNode comment = doc.CreateComment("to manually ... ");
doc.appendChild(comment);
//then the code to append all the default urls etc (so comment is being appended first)
doc.save(...);
and it gets placed on the very last line.
UKGuest44
Offline

Member

Posts: 72
Threads: 22
Joined: Apr 2005
#9
2005-06-21, 12:40 PM
Thanks for the update

Episode browse now works Smile - I was able to download the information for an episode by going to episode browse and selecting it.

However, when I tried to directly do 'Episode Lookup', the box just came up ofr 2 seconds and disappeared again like before.

The filename format is:

The Simpsons - FABF22 - She Used To Be My Girl.avi

Is this incorrect? I'm sure it used to work

This was all I got from the log (Logging set to max)
Code:
21/06/2005 13:33:28.171    VERBOSE    [713]    TVDotCome.FindEpisodeInfo(filename,showname,subtitle): showname not set
UKGuest44
Offline

Member

Posts: 72
Threads: 22
Joined: Apr 2005
#10
2005-06-21, 12:43 PM (This post was last modified: 2005-06-21, 12:47 PM by UKGuest44.)
Oh, one more thing. It used to be, when you did Episode Browse, and typed in part of the name of the series, you'd get a choice of programmes before the list of episodes. However, this doesnt seem to work. When I tried it - I just got kicked back to the video screen after the 'getting move information' display

Log

Code:
21/06/2005 13:41:05.187    VERBOSE    [966]    TVDotCom.Search(showname).Error : StartIndex cannot be less than zero.
Parameter name: startIndex
21/06/2005 13:41:05.187    VERBOSE    [966]       at System.String.Substring(Int32 startIndex, Int32 length)
   at System.String.Substring(Int32 startIndex)
   at MyVideosPlugin.InfoLookup.TVDotCom.BuildEpisodeList(String site)
   at MyVideosPlugin.InfoLookup.TVDotCom.FindEpisodeList(String showname)

---

Also, not sure if its just me doing something wrong (happens with default skin too) but after selecting an episode from the episode browse, I get an error

Object reference not set to an instance of an object.

Code:
21/06/2005 13:45:00.546    VERBOSE    [2]    filename: H:\My Videos\Simpsons\The Simpsons - FABF22 - She Used To Be My Girl.avi
21/06/2005 13:45:00.546    VERBOSE    [2]    lookupname: The Simpsons - FABF22 - She Used To Be My Girl.avi
21/06/2005 13:45:00.562    VERBOSE    [2]    The Simpsons - FABF22 - She Used To Be My Girl.avi
21/06/2005 13:45:00.828    ERROR    [2]    Error: msg=0x100 (WM_KEYDOWN) hwnd=0x4a00e8 wparam=0xd lparam=0x1c0001 result=0x0   :  Object reference not set to an instance of an object.   :     at MyVideosPlugin.InfoLookup.TVDotCom.LookupEpisode(String filename, String url)
   at MyVideosPlugin.IMDBResults.TVDotCom()
   at MyVideosPlugin.IMDBResults.Enter()
   at MyVideosPlugin.MyVideosTask.OnKeyDown(KeyEventArgs e)
   at ck.a(KeyEventArgs A_0)
   at q.a(Object A_0, KeyEventArgs A_1)
   at System.Windows.Forms.Control.OnKeyDown(KeyEventArgs e)
   at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
   at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
   at System.Windows.Forms.Control.WmKeyChar(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at q.a(Message& A_0)
21/06/2005 13:45:09.593    VERBOSE    [2]    getValue() loading new key/value into cache: /settings/NetRadioBufferSize
21/06/2005 13:45:09.593    VERBOSE    [2]    getValue: /settings/NetRadioBufferSize : 96000
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): 1 2 3 4 Next »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode