-
Notifications
You must be signed in to change notification settings - Fork 32
/
jobs.js
68 lines (56 loc) · 1.5 KB
/
jobs.js
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
const {
scrapper,
getTrendingGenre,
getTrending,
search,
getFull,
getStarsByBornDay,
getStarsBornToday,
awardsPage,
episodesPage,
getCast,
getActor,
searchActor,
simpleSearch,
getUpcoming,
changeQuality
} = require("./index");
const jobs = excuteMe => [
getFull("tt2395427").then(movieDetails => {
return excuteMe("getFull-tt2395427", movieDetails);
}),
simpleSearch("flash").then(data => {
return excuteMe("simpleSearch-flash", data);
}),
getTrending(7).then(data => {
return excuteMe("getTrending-7", data);
}),
getTrendingGenre("comedy", 7).then(data => {
return excuteMe("getTrending-comedy-7", data);
}),
awardsPage("tt2395427").then(movieDetails => {
return excuteMe("awardsPage-tt5580390", movieDetails);
}),
scrapper("tt1825683").then(movieDetails => {
return excuteMe("scrapper-tt1825683", movieDetails);
}),
search("new").then(result => {
return excuteMe("search-'new world'", result);
}),
episodesPage("tt3107288", 2).then(episodes => {
return excuteMe("episodesPage-tt3107288-2", episodes);
}),
getCast("tt1825683").then(movieDetails => {
return excuteMe("getCast-tt1825683", movieDetails);
}),
getActor("nm2652716").then(actorDetails => {
return excuteMe("getActor-nm2652716", actorDetails);
}),
searchActor("govinda").then(val => {
return excuteMe("searchActor-govinda", val);
}),
getUpcoming(20).then(val => {
return excuteMe("getUpcoming-20", val);
})
];
module.exports = jobs;