From 5df453d73259e1da5dbe993b2536e0898a7a31d7 Mon Sep 17 00:00:00 2001 From: PJ Hampton Date: Thu, 14 Sep 2017 20:50:16 +0100 Subject: [PATCH] Deprecate InTheaters. (#3425) --- lib/DDG/Spice/InTheaters.pm | 109 --------------- share/spice/in_theaters/buy.handlebars | 3 - share/spice/in_theaters/certified-fresh.png | Bin 2386 -> 0 bytes .../in_theaters/certified-fresh.retina.png | Bin 5674 -> 0 bytes share/spice/in_theaters/fresh.png | Bin 2175 -> 0 bytes share/spice/in_theaters/fresh.retina.png | Bin 4360 -> 0 bytes share/spice/in_theaters/in_theaters.css | 91 ------------ share/spice/in_theaters/in_theaters.js | 130 ------------------ share/spice/in_theaters/rotten.png | Bin 2259 -> 0 bytes share/spice/in_theaters/rotten.retina.png | Bin 4726 -> 0 bytes .../in_theaters/subtitle_content.handlebars | 23 ---- t/InTheaters.t | 68 --------- 12 files changed, 424 deletions(-) delete mode 100644 lib/DDG/Spice/InTheaters.pm delete mode 100644 share/spice/in_theaters/buy.handlebars delete mode 100644 share/spice/in_theaters/certified-fresh.png delete mode 100644 share/spice/in_theaters/certified-fresh.retina.png delete mode 100644 share/spice/in_theaters/fresh.png delete mode 100644 share/spice/in_theaters/fresh.retina.png delete mode 100644 share/spice/in_theaters/in_theaters.css delete mode 100644 share/spice/in_theaters/in_theaters.js delete mode 100644 share/spice/in_theaters/rotten.png delete mode 100644 share/spice/in_theaters/rotten.retina.png delete mode 100644 share/spice/in_theaters/subtitle_content.handlebars delete mode 100644 t/InTheaters.t diff --git a/lib/DDG/Spice/InTheaters.pm b/lib/DDG/Spice/InTheaters.pm deleted file mode 100644 index 0e99e9bddc..0000000000 --- a/lib/DDG/Spice/InTheaters.pm +++ /dev/null @@ -1,109 +0,0 @@ -package DDG::Spice::InTheaters; -# ABSTRACT: Show movies from Rotten Tomatoes. - -use strict; -use DDG::Spice; - -my $rating = '(?:g\s*|pg\s*|r\s*)?'; -triggers any => 'movie', 'movies', 'theaters', 'theatres', 'cinemas', 'showing', 'something', 'watch', 'opening', 'see'; -spice from => '(.*?)/(.*)'; -spice to => 'http://api.rottentomatoes.com/api/public/v1.0/lists/movies/$1.json?country=$2&apikey={{ENV{DDG_SPICE_ROTTEN_APIKEY}}}&callback={{callback}}&page_limit=30&limit=30'; - -# Uses $loc so needs to not cache back end. -spice is_cached => 0; - -spice proxy_cache_valid => "200 1d"; - -my %movies = ( - 'movies now showing' => 1, - 'what can i watch?' => 1, - 'movies opening' => 0, - 'movies opening soon' => 0, - 'watch a movie' => 1, - 'opening soon in theaters' => 0, - 'opening soon in theatres' => 0, - 'opening movies' => 0, - 'r movies opening' => 0, - 'pg movies opening' => 0, - 'pg-13 movies opening' => 0, - 'g movies opening' => 0, - 'kids movies opening' => 0, - 'pg13 movies opening' => 0, - 'unrated movies opening' => 0, - 'see an r movie' => 1, - 'see a pg movie' => 1, - 'see a pg-13 movie' => 1, - 'see a g movie' =>1, - 'see a kids movie' => 1, - 'see a pg13 movie' =>1, - 'see an unrated movie' =>1, - 'pg13 movies opening soon' => 0, - 'unrated movies opening soon' => 0, - 'r movies opening soon' => 0, - 'pg movies opening soon' => 0, - 'pg-13 movies opening soon' => 0, - 'g movies opening soon' => 0, - 'kids movies opening soon' => 0, - 'i need to watch a movie' => 1, - 'i deserve to watch a movie' => 1, - 'i want to watch a movie' => 1, - 'i want to watch an r movie' => 1, - 'i want to watch a pg movie' => 1, - 'i want to watch a pg-13 movie' =>1, - 'i want to watch a pg13 movie' =>1, - 'i want to watch a kids movie' => 1, - 'i want to watch a g movie' => 1, - 'i want to watch an unrated movie' =>1, - 'i want to watch something' => 1, - 'watch something' => 1, - 'need to watch a movie' => 1, - 'need to watch an r movie' => 1, - 'need to watch a pg movie' => 1, - 'need to watch a pg-13 movie' => 1, - 'need to watch a g movie' => 1, - 'need to watch a kids movie' => 1, - 'need to watch a pg13 movie' => 1, - 'need to watch an unrated movie' => 1, - 'watch an r movie' => 1, - 'watch a pg movie' => 1, - 'watch a pg-13 movie' => 1, - 'watch a g movie' => 1, - 'watch a kids movie' => 1, - 'watch a pg13 movie' => 1, - 'watch an unrated movie' => 1, - 'theaters' => 0, - 'theatres' => 0, - 'movies' => 1, - 'r movies' => 1, - 'pg movies' => 1, - 'pg-13 movies' => 1, - 'g movies' => 1, - 'kids movies' => 1, - 'pg13 movies' => 1, - 'unrated movies' => 1, - 'movies in theaters' => 1, - 'movies in cinemas' => 1, - 'r movies in theaters' => 1, - 'pg movies in theaters' => 1, - 'pg-13 movies in theaters' => 1, - 'g movies in theaters' => 1, - 'kids movies in theaters' => 1, - 'pg13 movies in theaters' => 1, - 'unrated movies in theaters' => 1, - 'movies currently in theaters' => 1, - 'movies currently in theatres' => 1, - 'movies currently in cinemas' => 1, - 'currently in theaters' => 1, - 'currently in theatres' => 1, - 'currently in cinemas' => 1, - ); - -handle query_lc => sub { - return unless exists $movies{$_}; - if($movies{$_}) { - return "in_theaters", $loc->country_code; - } else { - return "opening", $loc->country_code; - } -}; -1; diff --git a/share/spice/in_theaters/buy.handlebars b/share/spice/in_theaters/buy.handlebars deleted file mode 100644 index ff8c3cb097..0000000000 --- a/share/spice/in_theaters/buy.handlebars +++ /dev/null @@ -1,3 +0,0 @@ - - Reviews and Showtimes - \ No newline at end of file diff --git a/share/spice/in_theaters/certified-fresh.png b/share/spice/in_theaters/certified-fresh.png deleted file mode 100644 index fa4c4e7f428f137ad7f16cb07cca80dc4278b97f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2386 zcmbVOdpwi-AD?Ts4zhFPl4_P*!fqI56K#atFE#1NY!BOE8{30X9YSK}l5SK=B3+IW zx~xbNA*Vuar6NjoYSB?D;XJGK`~A`D{9do$^Ln1=`~7~N&-?wkzg|z4ulHJYggycW zgQ>f_(fpxRSN^D}Lhqpj$_HrC16}A~06zjuUp;tSi$RZL%zy&}CO2m!k2}vRf`U@`!+RMdQH0p~A7)3#U zb&Brgi=y%c0LlhqWy!?h@hBn@gSWOJ67d!&0uE2W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ti;M`v5~!g*(IA`c`zA z)7ApiSTwCI`JJ7v>>L)T+7Gvvg755EwcIa;)APfb2=Zj*-S$t8-4Fs2c{SAbvmvh`?l|W<&9F>1u7$q}|7em^v|*(*)|RROsqd4xa06Ce?#R{yJSe^ zr9qFgdD^wA!pRr1Lgkt>hpLOeufZ%H&vHtKEL;!toO#2(=7#LCeLaXuND7pEpR>ue zR;L_Q{LH&>1T-DFA4sb|zH5$n!rD(Qq+k^SH+G}nG_L}tZ(A8hBOH8vRr^p|FwVEj z&mP_l7c$+ZtcscPx@iI7r54^mC(bj_=13UxYz8c(tZ|j7h}VObev^^Bb(3NLz!Qno zP#{?j4*j5VL&4mku=Uj8tcJugeYLJ4#^$S`GiejDYj?Y7M9a7~_S-k@%QK5hN#cuq e&i#BM8UmP(^n38D(3gMy-WuqbK&!PK!~O@bwo7aP diff --git a/share/spice/in_theaters/fresh.png b/share/spice/in_theaters/fresh.png deleted file mode 100644 index 796c7e15c713a93ef43d91f2b2d81bcb3b4692b5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2175 zcmbVOdpMN&9-l=vtV>u?VvIu!=Ee*&%rMMMGcw3swK8U2V=xyp!wj1}xyG)$LuV-w zT~xGeY28jPtxP&$Q%Q(Ar7aOwC8hIDrE~u1+4DT-ect!|{eIu~`}utD&-3Q``|i-z z+@cAAK(rZjN&vVTE1!+(;Co6&d<8BhQfinqP#7(hvBUs`%n?QbPzImH1p)vTCpkd@ zxIrMQF}$EKX&BRoz!vfmETs-Y&KH4b2*k}@E@H9c04X#I;PM1S*nImX7?j5$!a}i3 z6jS5{#PH}TVjwWZH;A1Q$HsGD?j)$2oB$H=0VxYA=f?{q1UV7*o|gdbm0~0e`d&pE zM}&QFDvaq5^%9B!C>G)9z(%3bP#g|{cEaLtXnQCIg~lLJ;Ei)YI}xxr0>&Bo@q&TY z#GGhC0EPC^7I-4UVx&?L0g05!WC)ofLMY}U(Re&w$$`N*fEo^xWPy|=cMwP{*BK~)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4iCWW|@4S zP9!&+><%3fbg12rzQ5OXa(qRG{*^!<{@VOe58z-pOy*Hntk3j4`Zr;OFw-y9bGZ9I D6|36Y diff --git a/share/spice/in_theaters/in_theaters.css b/share/spice/in_theaters/in_theaters.css deleted file mode 100644 index 8962bdb275..0000000000 --- a/share/spice/in_theaters/in_theaters.css +++ /dev/null @@ -1,91 +0,0 @@ -.zci--in_theaters .tomato--icon { - padding: 4px; - position: relative; - top: 10px; - max-width: 26px; -} - -.zci--in_theaters .c-detail__title { - padding-bottom: 0; -} - -.zci--in_theaters .c-detail__subtitle { - margin-top: 0; - padding-top: 0; -} - -.is-mobile .zci--in_theaters .c-detail__subtitle { - position: relative; -} - -.zci--in_theaters .c-detail__desc { - padding-bottom: 1.65em; -} - -.is-mobile .zci--in_theaters .c-detail__desc { - padding-bottom: 5em; -} - -.zci--in_theaters .movie--runtime { - display: block; - font-size: 0.9em; - padding-top: 1.5em; -} - .zci--in_theaters .c-product__subtitle .movie--runtime { - padding-top: 0.5em; - } - -.is-mobile .zci--in_theaters .movie--runtime { - top: 1em; -} - -.zci--in_theaters .movie--critics_score { - display: block; - font-size: 1.3em; -} - -.zci--in_theaters .movie--critics_score img { - margin-top: -0.1em; - margin-bottom: -0.3em; - height: 24px; - width: 24px; -} - -.zci--in_theaters .c-detail__subtitle sup { - font-size: 0.5em; -} - -.zci--in_theaters .copyright { - font-size: 0.9em; -} - -.zci--in_theaters .c-product__media, -.zci--in_theaters .c-product__media__img { - max-height: 180px; -} - -.is-mobile .zci--in_theaters .c-product__media { - overflow: visible; -} - -.is-mobile .zci--in_theaters .c-product__body--sec { - margin-top: 1.5em; -} - -.is-mobile .zci--in_theaters .c-product__body--pri { - min-height: 180px; - padding-bottom: 0; -} - -.is-mobile .zci--in_theaters .detail__media--pr { - max-width: 100%; -} - -.is-mobile .zci--in_theaters .detail .movie__btn { - position: absolute; - bottom: 1em; -} - -.is-mobile .zci--in_theaters.zci--type--tiles.is-active { - padding-bottom: 0; -} diff --git a/share/spice/in_theaters/in_theaters.js b/share/spice/in_theaters/in_theaters.js deleted file mode 100644 index 90deed87bf..0000000000 --- a/share/spice/in_theaters/in_theaters.js +++ /dev/null @@ -1,130 +0,0 @@ -(function(env) { - "use strict"; - - function get_image(critics_rating) { - if(!critics_rating) { - return; - } - // The filename is the same as the critics_rating, but - // lowercased and with spaces converted to dashes. - critics_rating = critics_rating.toLowerCase().replace(/ /, '-'); - return DDG.get_asset_path('in_theaters', critics_rating + ((DDG.is3x || DDG.is2x) ? '.retina.png' : '.png')); - } - - env.ddg_spice_in_theaters = function(api_result) { - if(!api_result || api_result.error) { - return Spice.failed('in_theaters'); - } - - var mod_api_result = []; - var filter_rating; - var query_array = DDG.get_query().toLowerCase().split(" "); - var ratings = ["r","pg-13","pg","g","pg13","kids","unrated"]; - - // Check whether our query contains any rating - $.each(ratings, function(index, value) { - if(($.inArray(value, query_array)) !== -1) { - if(value === "pg13") { - filter_rating = "pg-13"; - } else if (value === "kids") { - filter_rating = "g"; - } else { - filter_rating = value; - } - } - }); - - Spice.add({ - id: 'in_theaters', - name: 'Movies', - data: api_result.movies, - signal: 'high', - meta: { - sourceName: 'Rotten Tomatoes', - sourceUrl: 'http://www.rottentomatoes.com/movie/in-theaters/', - total: api_result.movies, - primaryText: 'Now Playing in Theaters', - rerender: [ - 'image' - ] - }, - normalize: function(item) { - if (filter_rating && item.mpaa_rating.toLowerCase() !== filter_rating) { - return null; - } - - var position; - - // We add these so that we can position the Rotten Tomatoes images. - if(item.ratings.critics_rating === "Fresh" || item.ratings.critics_rating === "Certified Fresh") { - position = "-256px -144px"; - } else if(item.ratings.critics_rating === "Rotten") { - position = "-272px -144px"; - } - - if(item.alternate_ids && item.alternate_ids.imdb) { - return { - rating: item.ratings.critics_score >= 0 ? item.ratings.critics_score / 20 : 0, - icon_image: get_image(item.ratings.critics_rating), - abstract: Handlebars.helpers.ellipsis(item.synopsis, 200), - heading: item.title, - fallback_image: item.posters.detailed, - image: null, - url: item.links.alternate, - is_retina: ((DDG.is3x || DDG.is2x) ? 'is_retina' : 'no_retina') - }; - } - }, - templates: { - group: 'movies', - options: { - subtitle_content: Spice.in_theaters.subtitle_content, - rating: false, - buy: Spice.in_theaters.buy - }, - variants: { - productSub: 'noMax' - }, - elClass: { - tileMediaImg: 'js-movie-img', - productMediaImg: 'js-movie-img' - } - }, - onItemShown: function(item) { - var id = item.alternate_ids && item.alternate_ids.imdb; - - if (!id) { return; } - - $.ajaxSetup({ cache: true }); - - $.getJSON("/js/spice/movie_image/tt" + id, function(data) { - var path = data && data.movie_results && data.movie_results.length && data.movie_results[0].poster_path, - image = path && "https://image.tmdb.org/t/p/w185" + path; - - item.set({ - // fallback to lo-res if call to get hi-res fails for some reason, - // at least lo-res is better than showing an empty white tile: - image: image || item.fallback_image, - - // don't fall back on detail pane because it looks silly - // with the tiny image - img: image, - img_m: image - }); - }); - } - }); - } - - // Convert minutes to hr. min. format. - // e.g. {{time 90}} will return 1 hr. 30 min. - Handlebars.registerHelper("InTheaters_time", function(runtime) { - var hours = '', - minutes = runtime; - if(runtime >= 60) { - hours = Math.floor(runtime / 60) + ' hr. '; - minutes = (runtime % 60); - } - return hours + (minutes > 0 ? minutes + ' min.' : ''); - }); -}(this)); diff --git a/share/spice/in_theaters/rotten.png b/share/spice/in_theaters/rotten.png deleted file mode 100644 index d0680c4d994e53aa758a58e683a4b42c2bf8dca0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2259 zcmbVOX;c&E8V+R4!@Lg496*K3xRMa6%mh7b8<3+9;H(dyGOTiiFfaC=@1@GccpSG-3d$n1R{k zEFcIJOekE+jZ;D!;(P)`agidL7~}2+xW>>C0vV(h0x_~Exr!dcz`xL;wVFM2a&A5}g1Nfk?s=kQ>AjDRgI$PI3W0T^Pig zQY@kSvpAn@AtweVT&-5n@pz3!gVT_4urdr!q|s zq?9VuQdkb?7=@v5w3>lIJpCAgOd$|_CYGx{B??IyK1Qg(6LAE*Os0$L16rl_hyLT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j`1WOM?tr>J57R5ax%wSWKKzSm{`(6|TI$nn zepqe#U|Lbj338}4%O--Kfp+8A9re}sUQw8Rn7-#~8g?@om#>fyvF|QNdz0V3tFSL4 z(QMoGt`MH(T+HvD8fnPvZ(fypv1yjQfj&kY@;VzQUTC#ecv(w5ZNfG_#vP%(WLd^F zCgfe)6nNjoTW_rH@M^00_7_DX?rvqRPD+ZQabm_B1EZs2GnQAqIXY?7E^_R=*3yd6 z@#u#md1CCAAM~r&p_p}CJ|#43x#h~y`j-P432oUP^>S|N3ovfpoKQ~Z?`1o*p;_$N zlBmjt=nG>-&)--)W=!mm$iL!q>~`5#n2yl>ybgZj&Es{oTJW3Nce=#I2T+XSeRCP; z^j6uAS)g|mEkxiYSQn|3b(e`1N>w({%PK3-0Zb`W89U!?XR(eWf zr{t42diJ?5%9Rg$_+#c&ui5(w#2f^(22B`X`Jx4=kXs9nR7_c&s~YGrz+4%cn0UQ9 z?6NI-)@CoSL)E6j{cE40a}KaHdVD@Jw!5aMYobq~PVU(C_|W95#<{RN4-Q@294_rmJ5aLg}N}!r(3|%QpqO-wYnxhgIdZeb2uEz6qZ2 diff --git a/share/spice/in_theaters/rotten.retina.png b/share/spice/in_theaters/rotten.retina.png deleted file mode 100644 index 0fd7cd5b94791be360ceedb98b0006ff1e04a809..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4726 zcmaJ_c{r5q+a6>sTe3@I6tc}2W-wzPWMq&fQVL@%VP-NTV+mucY>|YNLZ(pmJ^L<8 zV@X0tD9Ku~^YQ-P-rx7f_kPduJkNdK*KwZbbzS#$9rtlO&s}rVbDSI^8~^}-6K$k# zaWFy-A2ybQw+-Xw?Sny>Y+y^aB)E`$9ldb?U1x$54v6-0bj4ZV9G(4cbmBAs0H)LK zR<>kYj0plu@KSU<#3)j{hzD!{Ktr2Cbi{h#$UrBYt20s z(0_um#h3$81aBM=rl_odg(xWj;c!JI6&M_@BoBl_l%Qb9!3|eXQbEAr2&gLX?+b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*qps$;%eZUtQ7;>h~gQ}36Nr+XnbtqY~7k)LZcA%fhTqbzs6MErVU zth=AEv0lixKgIp%C~p7|FK3c3!|Ad{Wv-Jg&;+#@aT*NlZ?@GX5XOB*^`!P_Br6Uq zi#*>B1MkSh`R4r^&CqfWP4gW|4%{h(+>p23gsZuah6nH%eCb;#M`qv^M4XS%se$thjQjsKD0D zFP`V(rsn%n)gSAiL$9A+1i56LT4LLTNTiXEH)`LkDO>0C9o}VrFukWogSgMGO+;Ot z1D<;)=yJmrdG0|EaNwcr?KTs#n&MtSd@msd Q5B~(A4NUd(^&CR~2Y`KYF#rGn diff --git a/share/spice/in_theaters/subtitle_content.handlebars b/share/spice/in_theaters/subtitle_content.handlebars deleted file mode 100644 index 02d3d020d4..0000000000 --- a/share/spice/in_theaters/subtitle_content.handlebars +++ /dev/null @@ -1,23 +0,0 @@ -{{#if ratings.critics_rating}} - - Rotten Tomatoes© Score - - - - - {{ratings.critics_score}}% {{ratings.critics_rating}} - -{{/if}} - - - {{#if runtime}} - Run Time: {{InTheaters_time runtime}} - {{/if}} - {{#and runtime mpaa_rating}} - - {{/and}} - {{#if mpaa_rating}} - {{mpaa_rating}} - {{/if}} - - diff --git a/t/InTheaters.t b/t/InTheaters.t deleted file mode 100644 index 2263bb5438..0000000000 --- a/t/InTheaters.t +++ /dev/null @@ -1,68 +0,0 @@ -#!/usr/bin/env perl - -use strict; -use warnings; - -use Test::More; -use DDG::Test::Location; -use DDG::Test::Spice; -use DDG::Request; - -my $loc = test_location("de"); -my $code = $loc->country_code; -my $req = DDG::Request->new( - query_raw => "currently in theaters", - location => $loc -); - -ddg_spice_test( - ["DDG::Spice::InTheaters"], - $req, - test_spice( - "/js/spice/in_theaters/in_theaters/$code", - caller => "DDG::Spice::InTheaters", - is_cached => 0, - ), - 'movies' => test_spice( - "/js/spice/in_theaters/in_theaters/US", - caller => 'DDG::Spice::InTheaters', - is_cached => 0, - ), - 'movies in theaters' => test_spice( - "/js/spice/in_theaters/in_theaters/US", - caller => 'DDG::Spice::InTheaters', - is_cached => 0, - ), - 'currently in theaters' => test_spice( - "/js/spice/in_theaters/in_theaters/US", - caller => 'DDG::Spice::InTheaters', - is_cached => 0, - ), - 'i want to watch a movie' => test_spice( - "/js/spice/in_theaters/in_theaters/US", - caller => 'DDG::Spice::InTheaters', - is_cached => 0, - ), - 'kids movies in theaters' => test_spice( - "/js/spice/in_theaters/in_theaters/US", - caller => 'DDG::Spice::InTheaters', - is_cached => 0, - ), - 'currently in cinemas' => test_spice( - "/js/spice/in_theaters/in_theaters/US", - caller => 'DDG::Spice::InTheaters', - is_cached => 0, - ), - 'movies currently in cinemas' => test_spice( - "/js/spice/in_theaters/in_theaters/US", - caller => 'DDG::Spice::InTheaters', - is_cached => 0, - ), - 'movies in cinemas' => test_spice( - "/js/spice/in_theaters/in_theaters/US", - caller => 'DDG::Spice::InTheaters', - is_cached => 0, - ), -); - -done_testing;