View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 403 posts ] 
Go to page Previous  1 ... 11, 12, 13, 14, 15, 16, 17 ... 27  Next

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject:
PostPosted: Fri Oct 30, 2009 12:03 am 
Offline
Joined: Fri Oct 20, 2006 12:04 pm
Posts: 905
Location: LA, CA
bigB wrote:
Hi,

The script is actually designed to run as a cronjob. But would be possible to run from FE.

BigB


Would be cool to drill into the video directory, click a button and populate the database for the vids in that directory. But I guess this taking place in the background while I sleep would be good enough, even better maybe.

Either way, nice work.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 30, 2009 9:00 pm 
Offline
Joined: Fri Oct 20, 2006 12:04 pm
Posts: 905
Location: LA, CA
FYI, I changed line 181 to accommodate vob's (as I have many).

Code:
my @filetypes = ('avi','mpg','mpeg','mkv','vob');


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 01, 2009 4:09 pm 
Offline
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location: Brisbane, Australia
Hi,

The file extensions are taken from the database, that list is just a fool proof measure :-)

BigB.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 01, 2009 10:23 pm 
Offline
Joined: Fri Oct 20, 2006 12:04 pm
Posts: 905
Location: LA, CA
bigB wrote:
Hi,

The file extensions are taken from the database, that list is just a fool proof measure :-)

BigB.
That explains my needing it... :)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 08, 2009 10:04 am 
Offline
Joined: Mon Dec 24, 2007 9:47 am
Posts: 535
Location: Ottawa, Canada
Looks the script is broken.

I am now getting the following:
Code:
Title: Legend of the Seeker
 Season: 1
 Episode: 20
 Subtitle: Sanctuary
 Title Image: http://images.tvrage.com/shows/20/19609.jpg
 Poster: /myth/video/.covers/Legend.of.the.Seeker.S01E20.720p.HDTV.X264-DIMENSION.mkv.jpg
 Lenght: 60 minutes
 Year: 2009
 Plot:  <!--
google_ad_client = "pub-4503439170693445";
/* 300x250, created 11/5/09 */
google_ad_slot = "7458920186";
google_ad_width = 300;
google_ad_height = 250;
//-->



End ------------------------------
Updating DB entry

This then adds the google info as my description.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 08, 2009 4:47 pm 
Offline
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location: Brisbane, Australia
Hi all,

A bug has been issued against this problem. They just had to put a google add right there...

BigB.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 08, 2009 9:22 pm 
Offline
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location: Brisbane, Australia
Hi All,

Sorry the next release is way delayed, things have been busy else where. Please look at this comment to fix the issue with google ad sense.

http://code.google.com/p/mythvideo-scan ... Summary#c3

BigB.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 08, 2009 11:32 pm 
Offline
Joined: Mon Dec 24, 2007 9:47 am
Posts: 535
Location: Ottawa, Canada
So if I understand this correctly, with this patch if it comes across the google ad then it bails out resulting in an empty description rather than inserting an error.

Is that the intent?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 08, 2009 11:40 pm 
Offline
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location: Brisbane, Australia
No, with this patch, it ignores text that is within 'script' blocks. that code is within a for loop, so the next block of text will be grabbed as the plot (if one exists). I've found google adds in every summary.


BigB.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 08, 2009 11:47 pm 
Offline
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location: Brisbane, Australia
Hi,

Here is a more complete patch

http://code.google.com/p/mythvideo-scan ... Summary#c5

This is completely untested, but is designed to catch episodes that have no plot in tvrage. Feedback would be greateful.

BigB.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 09, 2009 7:57 am 
Offline
Joined: Mon Dec 24, 2007 9:47 am
Posts: 535
Location: Ottawa, Canada
See! I didn't understand correctly. It was late at night here and when I saw the descriptions were empty I took a quick peek at the code. I should have checked TvRage as it turns out, there were no descriptions for those episodes.
:-/


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 09, 2009 1:10 pm 
Offline
Joined: Tue Jul 12, 2005 8:01 am
Posts: 670
Location: Salem, MA
I'm trying to use your script and am getting the following error:

Code:
[root@mythtv mythvideo-scanner]# ./mythvideo-scanner.pl --dryrun
Can't locate Text/Levenshtein.pm in @INC (@INC contains: /usr/LH/tweaker/lib /usr/lib/perl5/site_perl/5.10.0 /usr/share/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl /usr/lib/perl5/current /usr/lib/perl5/site_perl/current . . /usr/local/share/mythvideo-scanner/ /usr/share/mythvideo-scanner/) at ./mythvideo-scanner.pl line 58.
BEGIN failed--compilation aborted at ./mythvideo-scanner.pl line 58.

_________________
LinHES 8.3, 1 BE, 3 FE


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 09, 2009 1:25 pm 
Offline
Joined: Tue Jul 12, 2005 8:01 am
Posts: 670
Location: Salem, MA
Ah, fixed with:
Code:
cpan Text::Levenshtein


Now getting this error:
Either couldn't find or execute !!

_________________
LinHES 8.3, 1 BE, 3 FE


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 09, 2009 1:28 pm 
Offline
Joined: Tue Jul 12, 2005 8:01 am
Posts: 670
Location: Salem, MA
Okay, I fixed the last issue by editing the script to point to tmdb.pl instead of imdb.pl.

_________________
LinHES 8.3, 1 BE, 3 FE


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 09, 2009 4:54 pm 
Offline
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location: Brisbane, Australia
Hi,

Quote:
Either couldn't find or execute !!


It was a while ago when i put this error message in the script, helpful isn't it :-) It should say which script is missing. Glad you worked it out.

BigB.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 403 posts ] 
Go to page Previous  1 ... 11, 12, 13, 14, 15, 16, 17 ... 27  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu