[mythtv-users] New/Bugfix Version: Bulk Updater forVideometa(imdb) data

Ryan Pisani mythtv at frouse3.homelinux.com
Mon Oct 1 14:07:03 UTC 2007


>>Just make sure you hadn't extracted to a different directory or
>> something,
>>or permissions failed to overwrite on extraction?
>>
>>
>>Seems odd that you'd show 3 and it says 2. which makes me think it's an
>>older version which may have had other bug still.
>>
>>head -28 /home/mythtv/imdbupdater/imdb-bulk-updater.pl
>
> Yep sure am running 1.6
>
> head -28 /home/mythtv/imdbupdater/imdb-bulk-update.pl
> #!/usr/bin/perl
> ############################################################################
> ####
> # Wrapper for imdb.pl tool for bulk movie metadata updates for mythdora
> #
> #
> #
> # 08/28/2007
> #
> # Ryan Pisani <mythdora at thepisanis.com>
> #
> ############################################################################
> ####
> #Parts of this were adopted from imdbbatchupdater.pl which in turn uses
> much
> #
> #of the original imdb.pl. This is a simpler wrapper to maintain and it
> utilizes#
> #the standard imdb.pl shipped with mythvideo.
> #
> ############################################################################
> ####
> #version: 1.0 : Initial roll-out works with imdb.pl 1.3
> #
> #version: 1.1 : Added some further error checking
> #
> #version: 1.2 : Added -Manual flag for manual entering of IMDBIDs
> #
> #version: 1.3 : Added -fileup metadata update for newly added/removed
> movies
> #
> #version: 1.4 : Duplicate menu will default to first entry in the returned
> #
> #               list.
> #
> #               Added -Exclude flag to mark any items with non-imdb match
> with #
> #               a bogus imdb number to be skipped in later searches.
> #
> #               Added -help for extended examples in usage
> #
> #version: 1.5 : Added -Folder flag to overide videopath for new video
> search
> #
> #               Fixed hash sort of new files so that entries with more
> than
> 1  #
> #               entry in the DB will not be "true" in new check.
> #
> #               Fixed a bug in the newvideo find where multiples were
> added
> #
> #               Fixed a bug in the newvideo find where multiples were
> added
> #
> #version:1.5.1: Added showlevel fix in -Fileup to fix incorrect default
> showlvl#
> #version: 1.6 : Found bug in -Title lookups where title was updated blank
> #
> ############################################################################
> ####

Ok so I can make no sense of what You're seeing. I did my own little test
my filesystem and it did exactly what I expect it would do. I checked the
DB only the 3 listings where there. Notice that is also stated adding 3 to
database, which just doesn't jive with what your script did. Show'd 3
titles but said it was adding 2.

What version of perl are you using? perl -v ?


[root at frouse1 guest]# /home/ryan/bin/imdb-bulk-update.pl -Fileup -Host
192.168.1.4 -N
=============================================================================
Retrieving Video Path for this frouse1 from mythconverg.settings
=============================================================================
Retrieving ignored files extensions from mythconverg.videometadata
=============================================================================
Retrieving allowable file extensions from mythconverg.videometadata
=============================================================================
Found 130 total videos in /Media/movies
=============================================================================
Retrieving a list of known videos from mythconverg.videometadata
=============================================================================
Scrubbing the database for any videos that no longer exist in /Media/movies

Removing entry for /Media/movies/1NEW/test1.mpg from database

Removing entry for /Media/movies/1NEW/test2.mpg from database

Removing entry for /Media/movies/1NEW/test3.mpg from database
=============================================================================
/Media/movies/1NEW/TeSt3.mpg
/Media/movies/1NEW/TEst2.mpg
/Media/movies/1NEW/Test1.mpg
Found a total of 3 to be added to database
=============================================================================

Adding entry for /Media/movies/1NEW/TeSt3.mpg to mythconverg.videometadata

Adding entry for /Media/movies/1NEW/TEst2.mpg to mythconverg.videometadata

Adding entry for /Media/movies/1NEW/Test1.mpg to mythconverg.videometadata
=============================================================================
Searching for IMDB movieID for Test1.mpg
=============================================================================
Searching for IMDB movieID for TEst2.mpg
=============================================================================
Searching for IMDB movieID for TeSt3.mpg


The following videos had imdb lookup errors:
 Test1.mpg TEst2.mpg TeSt3.mpg



More information about the mythtv-users mailing list