blob: 1d7675bb8988ccb6dff2a71ebcc1054beb0438cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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;
|