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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# File 'lib/constants/constants.rb', line 21
def self.tags
{
title: { EN: '#main-title span',
ES: '#main-title span'
},
year: { EN: 'dd[itemprop="datePublished"]',
ES: 'dd[itemprop="datePublished"]'
},
duration: { EN: 'dd[itemprop="duration"]',
ES: 'dd[itemprop="duration"]'
},
country: { EN: '#country-img',
ES: '#country-img'
},
director: { EN: 'a[itemprop="url"]',
ES: 'a[itemprop="url"]'
},
music: { EN: 'dt:contains("Music")',
ES: 'dt:contains("Music")'
},
company: { EN: 'dt:contains("Producer")',
ES: 'dt:contains("Productora")'
},
script: { EN: 'dt:contains("Screenwriter")',
ES: 'dt:contains("Guion")'
},
photography: { EN: 'dt:contains("Cinematography")',
ES: 'dt:contains("Fotografía")'
},
cast: { EN: 'span[itemprop="actor"]',
ES: 'span[itemprop="actor"]'
},
cast_each: { EN: 'span[itemprop="name"]',
ES: 'span[itemprop="name"]'
},
genre: { EN: 'dt:contains("Genre")',
ES: 'dt:contains("Género")'
},
sinopsis: { EN: 'dd[itemprop="description"]',
ES: 'dd[itemprop="description"]'
},
rating: { EN: 'div[itemprop="ratingValue"]',
ES: 'div[itemprop="ratingValue"]'
},
poster: { EN: 'img[itemprop="image"]',
ES: 'img[itemprop="image"]'
},
poster_big: { EN: 'a[class="lightbox"]',
ES: 'a[class="lightbox"]'
}
}
end
|