Description: Fix the IMDb plugin Author: David Weinehall Index: gcstar-1.7.0/lib/gcstar/GCPlugins/GCfilms/GCImdb.pm =================================================================== --- gcstar-1.7.0.orig/lib/gcstar/GCPlugins/GCfilms/GCImdb.pm +++ gcstar-1.7.0/lib/gcstar/GCPlugins/GCfilms/GCImdb.pm @@ -103,7 +103,14 @@ use GCPlugins::GCfilms::GCfilmsCommon; elsif ($attr->{class} eq "title-extra") { $self->{insideOriginalTitle} = 1; - } + } + elsif ($self->{insideCastList}) + { + if ($attr->{class} eq 'itemprop' && $attr->{itemprop} eq 'name') + { + $self->{insideActor} = 1; + } + } } elsif ($tagname eq "img") { @@ -140,11 +147,7 @@ use GCPlugins::GCfilms::GCfilmsCommon; { if ($self->{insideCastList}) { - if ($attr->{class} eq 'name') - { - $self->{insideActor} = 1; - } - elsif ($attr->{class} eq 'character') + if ($attr->{class} eq 'character') { $self->{insideRole} = 1; } @@ -236,7 +239,7 @@ use GCPlugins::GCfilms::GCfilmsCommon; if ($self->{parsingList}) { - if ($self->{inside}->{h1} && $origtext !~ m/IMDb\s*Title\s*Search/i) + if ($self->{inside}->{title} && $origtext !~ m/Find\s-\sIMDb/i) { $self->{parsingEnded} = 1; $self->{itemIdx} = 0;