Author |
Message |
EasyRiderOnTheStorm
|
Posted: Fri Nov 13, 2009 3:47 pm |
|
Joined: Thu Jan 08, 2009 7:28 am
Posts: 15
|
Hi, just ran into the script problem myself today. Curiously, the episodes HAD description, but still fetched gibberish. Thankfully, the advised patch fixed it. Thanks.
|
|
Top |
|
|
bigB
|
Posted: Mon Nov 16, 2009 6:21 pm |
|
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location:
Brisbane, Australia
|
Hi All,
I have just commited beta code into svn that adds support for ttvdb. This version has taken a modular approach to the grabbers so you need to get the entire trunk directory (including the grabbers directory). Also, I am yet to test it when the mythtv ttvdb.pl script does not exist so only proceed if you are willing to get that working on you own accord. Given how complicated it may be to proceed, I appreciate anyone you is willing to test it.
BigB.
PS. I'm yet to add support for grabbing the extra meta data supported in 0.22.
|
|
Top |
|
|
mediathreat
|
Posted: Thu Nov 19, 2009 3:07 pm |
|
Joined: Fri Oct 13, 2006 7:42 pm
Posts: 63
|
i get:
Either couldn't find or execute !!
when i run mythvideo-scanner.pl after a successful make of the svn/trunk
|
|
Top |
|
|
bigB
|
Posted: Thu Nov 19, 2009 5:05 pm |
|
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location:
Brisbane, Australia
|
Hi,
It is currently expecting imdb to be in "/usr/share/mythtv/mythvideo/scripts/imdb.pl", and ttvdb.py to be in "/usr/share/mythtv/mythvideo/scripts/ttvdb.py".
Both scripts should also work on their own accord.
BigB.
PS. I'm aware that a more meaningful error message is required.
|
|
Top |
|
|
bigB
|
Posted: Thu Nov 19, 2009 9:51 pm |
|
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location:
Brisbane, Australia
|
Hi,
I have updated the source so that it doesn't just fall over if a script doesn't exist, and it even says which script if missing
BigB.
|
|
Top |
|
|
bigB
|
Posted: Fri Nov 20, 2009 7:22 pm |
|
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location:
Brisbane, Australia
|
Hi,
I have submitted another rev of the source.
* Major clean up of text output.
* When update flag is set, posters are updated also.
* --status command now returns version of ttvdb.py script.
* ttvdb will now return the subtitle, season, episode information.
I'm quite happy with how this is running.
BigB.
|
|
Top |
|
|
christ
|
Posted: Fri Nov 20, 2009 9:36 pm |
|
Joined: Mon Dec 24, 2007 9:47 am
Posts: 535
Location:
Ottawa, Canada
|
BigB,
Looking good! I like the improvements.
in regards to ttvdb... Is this myth 0.22 only? Or does your script adapt it for 0.21?
C
|
|
Top |
|
|
kc8vfa
|
Posted: Sat Nov 21, 2009 1:27 am |
|
Joined: Thu Apr 06, 2006 8:36 pm
Posts: 35
Location:
Clio, MI
|
Looks like somthing on the pages have been changed. All of my movies are comming up with:
Code: /myth/video/Escape From The Planet Of The Apes.mpg Title so far: Prematch: /myth/video/Escape From The Planet Of The Apes Cleaned prematch: Escape From The Planet Of The Apes Details ------------------------------ Title: Escape From The Planet Of The Apes Prematch: Escape From The Planet Of The Apes End ------------------------------ Non-episode, looking up IMDB... 0067065:Escape from the Planet of the Apes Match Found, ref:0067065. Details ------------------------------ Title: Escape from the Planet of the Apes Title Image: http://ia.media-imdb.com/images/M/MV5BNjg2MjY0NDMwM15BMl5BanBnXkFtZTcwNjQ0NzA0MQ@@._V1._SX100_SY138_.jpg
Year: 1971 Plot: <div class="info-content">
End ------------------------------ Updating DB entry
myth correctly gets data from the imdb.pl script. when ran I.E.: Code: [root@myth-amd /]# ./usr/share/mythtv/mythvideo/scripts/imdb.pl -M 1984 0087803:Nineteen Eighty-Four (1984) 0088846:Brazil (1985) 0423382:Tjenare kungen (2005) 0048918:1984 (1956) 1537016:1984 (2009) 0498637:1984 (2010)
[root@myth-amd /]# ./usr/share/mythtv/mythvideo/scripts/imdb.pl -D 0048918 Title:1984 Year:1956 ReleaseDate: Director: [b]Plot:<div class="info-content">[/b] George Orwell's novel of a totalitarian future society in which a man whose daily work is rewriting history tries to rebel by falling in love. UserRating: MovieRating: Runtime:90 Writers: Cast: Genres: Drama Countries: UK
I don't know how to code but i beleave i found the issue. Looks like hte grabber needs to skip <div class="info-content"> to fix this...
Wish i could help..... but i guess this is a little help.
thanks for a great script.
_________________ MBE: GIGABYTE H77-DS3H, i3 CPU, 4GB ram, 1 x 16gb SSD , 2x3TB WD-RED, HVR-2250, Nvidia Video FE only: Asus H81T/CSM Thin mini-ITX, Intel G3250 3.2Ghz, 4 GB DDR3, 320GB HDD FE only: intel boxdg45fc mini-ITX, DVI - HDMI, 4GB, 20G HDD, 2.83 GHZ
|
|
Top |
|
|
bigB
|
Posted: Sun Nov 22, 2009 5:59 am |
|
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location:
Brisbane, Australia
|
Hi kc8vfa,
Looks like you are using the release version of mythvideo-scanner, thats fine, but the source is more update. Should check it out some time.
Regarding your problem, it is in imdb.pl. unfortunately it is no longer supported by the mythtv developers, and a new script is being used (imdbpy.py). I am yet to add support for the new script but i will eventually.
To fix the issue you will need to add the following code to the imdb.pl script around line 168.
Code: # remove misc html code my $misc_html_pat = qr!<.*>!m; $plot =~ s/$misc_html_pat//g;
That section of code should now look like Code: # plot ends at first remaining link my $plot_end = index($plot, "<a "); if ($plot_end != -1) { $plot = substr($plot, 0, $plot_end); } # remove misc html code my $misc_html_pat = qr!<.*>!m; $plot =~ s/$misc_html_pat//g;
$plot = trim($plot); }
# parse user rating
I hope this helps.
Christ
I'm currently running this script on 0.21. Ttvdb.py works fine, it did take a bit to get going (python dependencies). I do have 0.22 in my sights.
BigB
|
|
Top |
|
|
mediathreat
|
Posted: Sun Nov 22, 2009 8:54 am |
|
Joined: Fri Oct 13, 2006 7:42 pm
Posts: 63
|
Thanks for the update! The status function is great!
I didn't have ttvdb.py installed, so I got it from here.
Now it works for me, but now I'm getting this error:
Quote: Downloading poster to: /myth/video/posters/Apocalypse Now.avi.jpg 400 FAILED to get image. Downloading folder image to: /myth/video/video1/folder.jpg 400 FAILED to get image.
during a run with getposter - anyone ideas what I did wrong?
I ran the script as root - the perms on the directory are all for mythtv and 777.
Is this another symptom of using the older imdb.pl ?
|
|
Top |
|
|
Copper0
|
Posted: Mon Nov 23, 2009 6:11 pm |
|
Joined: Thu Mar 08, 2007 11:13 am
Posts: 29
Location:
Toronto Canada
|
Hey BigB,
I really like this new revision. Is it possible to force a grabber? I used this season of South Park to test everything, and rev67 used IMDB. Everything works and it is fine but I preferred the plot summaries and artwork better on tvrage. Other than removing imdb.pl i there an easier way?
IMDB
Code: /var/lib/mythtv/videos/Movies/shows/South Park/Season 13/south.park.s13e01.avi Details ------------------------------ Title: south park Season: 13 Episode: 1 Prematch: South Park End ------------------------------ Grabber: Imdb, Version: 1.1 0121955:"South Park" (1997) Match Found, ref:0121955. 0158983:South Park: Bigger Longer & Uncut (1999) 0205423:South Park (1998) Looking for: Season 13, Episode 1: Plot, Year, Season, Subtitle, Episode, TitleImage, Cast, Title, ------------------------------ Details ------------------------------ Title: South Park Season: 13 Episode: 1 Subtitle: The Ring Title Image: http://ia.media-imdb.com/images/M/MV5BMTI5MTYyNDU3NF5BMl5BanBnXkFtZTYwNjU1MzM5._V1._SX100_SY132_.jpg
Cast: Trey Parker,Matt Stone,Isaac Hayes,Mona Marshall Year: 1997 Plot: The boys discover that the Jonas Brothers' purity ring campaign is just part of Disney's plot to get away with marketing sex to pre-teen girls.
End ------------------------------ Updating DB entry
Oh and using TVRage did you notice that there is a little Google poop left over in the plot Code: /var/lib/mythtv/videos/Movies/shows/South Park/Season 13/south.park.s13e01.avi Details ------------------------------ Title: south park Season: 13 Episode: 1 Prematch: South Park End ------------------------------ Grabber: Tvrage, Version: 1.1 LatestEpisode, Director, Subtitle, Status, TitleImage, Title, Length, Plot, Year, Country, Season, Episode, Classification, EpisodeImage, ------------------------------ Details ------------------------------ Title: South Park Season: 13 Episode: 1 Subtitle: The Ring Title Image: http://images.tvrage.com/shows/6/5266.jpg Episode Image: http://images.tvrage.com/screencaps/27/5266/770137.jpg Lenght: 30 minutes Year: 2009 Plot: [x] Remove AdKenny has a new girlfriend and her name is Tammy. When the boys find out she's a bit of a slut, they feel the need to tell him. Rather than being upset about it, Kenny is ecstatic. After hearing she's this way because of the Jonas Brothers, Kenny buys two tickets to their next show in Denver. His plans are quickly diminished after the Jonas Brothers give Tammy a purity ring.
End ------------------------------ Updating DB entry
|
|
Top |
|
|
bigB
|
Posted: Mon Nov 23, 2009 6:26 pm |
|
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location:
Brisbane, Australia
|
Hi Copper0,
that should be fixed in the most recent revision. Also, as of rev 70, I have added "make upgrade" whick will grab (export) a new copy from svn, you will then need to execute "make install" to actually install the source. This should be done in its own folder on your home directory. (e.g /home/bob/mythvideo-scanner/)
To change the order in which the grabbers are run, you need to edit mythvideo-scanner.pl, change the order at line 67. Another thing you might want to look at is changing "15" at line 358 to something like "20", that should cause the tvrage grabber to run more often. This is a score of the quality of the info, plot, and the two images get 5 points, all other details get one point.
BigB.
PS. this is a work in progress, and i appreciate anyone who is testing it for me.
|
|
Top |
|
|
Copper0
|
Posted: Mon Nov 23, 2009 10:39 pm |
|
Joined: Thu Mar 08, 2007 11:13 am
Posts: 29
Location:
Toronto Canada
|
I thought the most recent revision was 67? I noticed the makefile was 70 but on make upgrade
make: svn: Command not found
make: *** [upgrade] Error 127
|
|
Top |
|
|
bigB
|
Posted: Mon Nov 23, 2009 10:43 pm |
|
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location:
Brisbane, Australia
|
The upgrade feature requires svn, might see if i can get wget to do the same thing.
mythvideo-scanner is at rev 67.
grabbers/tvrage.pm is at rev 69.
BigB.
|
|
Top |
|
|
Copper0
|
Posted: Mon Nov 23, 2009 11:08 pm |
|
Joined: Thu Mar 08, 2007 11:13 am
Posts: 29
Location:
Toronto Canada
|
OK that's what i thought.
So then the extra text in the plot is due to a recent site change? (tvrage)
Thanks for the advice on the orders, worked like a charm
|
|
Top |
|
|