diff options
Diffstat (limited to 'debian/patches/14-fix_imdb.patch')
-rw-r--r-- | debian/patches/14-fix_imdb.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/debian/patches/14-fix_imdb.patch b/debian/patches/14-fix_imdb.patch new file mode 100644 index 0000000..1d7675b --- /dev/null +++ b/debian/patches/14-fix_imdb.patch @@ -0,0 +1,45 @@ +Description: Fix the IMDb plugin +Author: David Weinehall <tao@debian.org> + +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; |