PageSourceSearch

https://looke.com.br/scripts/Carousel/MediaList.js?20220513

js looke.com.br collected 2026-09-24 09:31:54 UTC 4,526 bytes, 148 lines download raw bytes

1var MediaList = MediaList || {};
2
3(function mediaList() {
4
5    MediaList.Find = {
6
7        Request: function () {
8            this.AuthenticationTicket = "looke@looke:v7c8ad@#$",
9            this.Criteria = null,
10            this.Options = null,
11            this.Groups = null
12        },
13
14        Criteria: function () {
15            this.MediaType = null,
16            this.Genre = null,
17            this.Name = null
18        },
19
20        Options: function () {
21            this.BoxBehavior = null,
22            this.PageNumber = null,
23            this.RecordsPerPage = null,
24            this.SortCriteria = null,
25            this.SortOrder = null,
26            this.ImageTypeIds = null
27        },
28
29        Group: function () {
30            this.GroupName = null,
31            this.GroupProperties = null
32        },
33
34        findBySectionIDCarousel: function (sectionID, pageNumber, success, carousel) {
35
36            this.findBySectionID(sectionID, pageNumber, 17, success, carousel);
37
38        },
39
40        findBySectionsIDsCarousel: function (sections, success) {
41
42            this.findBySectionsIDs(sections, 0, 17, success);
43        },
44
45        findByMediaParentIDCarousel: function (sectionID, pageNumber, success, carousel) {
46
47            this.findByMediaParentID(sectionID, pageNumber, 17, success, carousel);
48
49        },
50
51        findByMediaParentID: function (sectionID, pageNumber, recordsPerPage, success, carousel) {
52
53            $.ajaxSetup({ cache: false });
54
55            var promise = $.get('/Media/_MovieListByParentId/?s=' + sectionID, function (data) {
56
57                success(data, carousel);
58            });
59
60            promise.then(function () {
61                CarouselQueue.processItem(true);
62            });
63
64        },
65
66        findByMediaIdCarousel: function (mediaId, success, $mediaitem, $mediapanel) {
67
68            $.ajaxSetup({ cache: false });
69
70            $.get('/Media/_Movie/?m=' + mediaId, function (data) {
71
72                success(data, $mediaitem, $mediapanel);
73            });
74        },
75
76        findByGenreCarousel: function (genreId, pageNumber, success, carousel) {
77
78            this.findByGenre(genreId, pageNumber, 16, success, carousel);
79
80        },
81
82        findBySectionID: function (sectionID, pageNumber, recordsPerPage, success, carousel) {
83
84            $.ajaxSetup({ cache: false });
85
86            var promise = $.get('/Media/_MovieListBySection/?s=' + sectionID + '&r=' + recordsPerPage + '&p=' + pageNumber + "&o=" + Helpers.getOrderBy() + "&c=" + Helpers.getCriteria(), function (data) {
87
88                success(data, carousel);
89            });
90
91            //promise.then(function () {
92            //    CarouselQueue.processItem(true);
93            //});
94
95        },
96
97        findBySectionsIDs: function (sections, pageNumber, recordsPerPage, success) {
98
99            $.ajaxSetup({ cache: false });
100
101            var s = "";
102            for (var i = 0; i < sections.length; i++)
103                s += "&s=" + sections[i].ID;
104
105            var promise = $.get('/Media/_MovieListBySectionsReduced/?s=' + s + '&r=' + recordsPerPage + '&p=' + pageNumber + "&o=" + Helpers.getOrderBy() + "&c=" + Helpers.getCriteria(), function (data) {
106
107                var nodes = ($("<div/>").html(data)).find("ul");
108                success(nodes);
109            });
110
111            promise.then(function () {
112                CarouselQueue.processPendingItems();
113            });
114
115        },
116
117        findByName: function (search, pageNumber, recordsPerPage, success, carousel) {
118
119            $.ajaxSetup({ cache: false });
120
121            $.get('/Media/_MovieListByName/?s=' + search + '&r=' + recordsPerPage + '&p=' + pageNumber + "&o=" + Helpers.getOrderBy() + "&c=" + Helpers.getCriteria(), function (data) {
122
123                success(data, carousel);
124            });
125        },
126
127        findByPerson: function (search, pageNumber, recordsPerPage, success, carousel) {
128
129            $.ajaxSetup({ cache: false });
130
131            $.get('/Media/_MovieListByPerson/?s=' + search + '&r=' + recordsPerPage + '&p=' + pageNumber + "&o=" + Helpers.getOrderBy() + "&c=" + Helpers.getCriteria(), function (data) {
132
133                success(data, carousel);
134            });
135        },
136
137        findByGenre: function (genreId, pageNumber, recordsPerPage, success, carousel) {
138
139            $.ajaxSetup({ cache: false });
140
141            $.get('/Media/_MovieList/?g=' + genreId + '&r=' + recordsPerPage + '&p=' + pageNumber, function (data) {
142
143                success(data, carousel);
144            });
145        }
146    }
147})();
148

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.