xmltv/lib IMDB.pm,1.66,1.67
Jerry Veldhuis <[email protected]>
| Newsgroups | gmane.comp.tv.xmltv.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/xmltv/xmltv/lib
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv4034/lib
Modified Files:
IMDB.pm
Log Message:
changed -quiet command line to disable progress bar
Index: IMDB.pm
===================================================================
RCS file: /cvsroot/xmltv/xmltv/lib/IMDB.pm,v
retrieving revision 1.66
retrieving revision 1.67
diff -C2 -d -r1.66 -r1.67
*** IMDB.pm 8 Mar 2015 19:46:34 -0000 1.66
--- IMDB.pm 11 Mar 2015 03:33:09 -0000 1.67
***************
*** 1378,1381 ****
--- 1378,1386 ----
$self->{moviedbInfo}="$self->{imdbDir}/moviedb.info";
$self->{moviedbOffline}="$self->{imdbDir}/moviedb.offline";
+
+ # only leave progress bar on if its available
+ if ( !Have_bar ) {
+ $self->{showProgressBar}=0;
+ }
bless($self, $type);
[...1001 lines suppressed...]
if ( $count > $countEstimate ) {
--- 3311,3315 ----
print DAT $lineno.":".$details."\t".join($tab, @rest)."\n";
! if ($self->{showProgressBar}) {
# re-adjust target so progress bar doesn't seem too wonky
if ( $count > $countEstimate ) {
***************
*** 3317,3321 ****
}
}
! $progress->update($countEstimate) if Have_bar;
close(DAT);
close(IDX);
--- 3322,3326 ----
}
}
! $progress->update($countEstimate) if ($self->{showProgressBar});
close(DAT);
close(IDX);
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/