jamieu/plugin.video.mubi

Issues with some movies

Opened this issue · 0 comments

Hi Jamie,

Thanks a lot for the Mubi plugin! I'm currently experiencing issues with some of the movies but can't figure out exactly why. Here's an excerpt from the log with a failure

20:20:31 340732.687500 T:1417671584   ERROR: CDVDPlayer::OpenInputStream - error opening [<!DOCTYPE html>
                                            <html dir='ltr'>
                                            <head>
                                            <script type="text/javascript">window.NREUM||(NREUM={});NREUM.info={"beacon":"bam.nr-data.net","errorBeacon":"bam.nr-data.net","licenseKey":"326c84218a","applicationID":"8866134","transactionName":"cFZXEkRcX1kBQB4VWVRcSklTQUFaFm0EVQg=","queueTime":1,"applicationTime":9,"agent":""}</script>
                                            <script type="text/javascript">window.NREUM||(NREUM={}),__nr_require=function(t,e,n){function r(n){if(!e[n]){var o=e[n]={exports:{}};t[n][0].call(o.exports,function(e){var o=t[n][1][e];return r(o||e)},o,o.exports)}return e[n].exports}if("function"==typeof __nr_require)return __nr_require;for(var o=0;o<n.length;o++)r(n[o]);return r}({1:[function(t,e,n){function r(){}function o(t,e,n){return function(){return i(t,[(new Date).getTime()].concat(u(arguments)),e?null:this,n),e?void 0:this}}var i=t("handle"),a=t(2),u=t(3),c=t("ee").get("tracer"),f=NREUM;"undefined"==typeof window.newrelic&&(newrelic=f);var s=["setPageViewName","setCustomAttribute","setErrorHandler","finished","addToTrace","inlineHit"],p="api-",l=p+"ixn-";a(s,function(t,e){f[e]=o(p+e,!0,"api")}),f.addPageAction=o(p+"addPageAction",!0),e.exports=newrelic,f.interaction=function(){return(new r).get()};var d=r.prototype={createTracer:function(t,e){var n={},r=this,o="function"==typeof e;return i(l+"tracer",[Date.now(),t,n],r),function(){if(c.emit((o?"":"no-")+"fn-start",[Date.now(),r,o],n),o)try{return e.apply(this,arguments)}finally{c.emit("fn-end",[Date.now()],n)}}}};a("setName,setAttribute,save,ignore,onEnd,getContext,end,get".split(","),function(t,e){d[e]=o(l+e)}),newrelic.noticeError=function(t){"string"==typeof t&&(t=new Error(t)),i("err",[t,(new Date).getTime()])}},{}],2:[function(t,e,n){function r(t,e){var n=[],r="",i=0;for(r in t)o.call(t,r)&&(n[i]=e(r,t[r]),i+=1);return n}var o=Object.prototype.hasOwnProperty;e.exports=r},{}],3:[function(t,e,n){function r(t,e,n){e||(e=0),"undefined"==typeof n&&(n=t?t.length:0);for(var r=-1,o=n-e||0,i=Array(o<0?0:o);++r<o;)i[r]=t[e+r];return i}e.exports=r},{}],ee:[function(t,e,n){function r(){}function o(t){function e(t){return t&&t instanceof r?t:t?u(t,a,i):i()}function n(n,r,o){t&&t(n,r,o);for(var i=e(o),a=l(n),u=a.length,c=0;c<u;c++)a[c].apply(i,r);var s=f[m[n]];return s&&s.push([w,n,r,i]),i}function p(t,e){g[t]=l(t).concat(e)}function l(t){return g[t]||[]}function d(t){return s[t]=s[t]||o(n)}function v(t,e){c(t,function(t,n){e=e||"feature",m[n]=e,e in f||(f[e]=[])})}var g={},m={},w={on:p,emit:n,get:d,listeners:l,context:e,buffer:v};return w}function i(){return new r}var a="nr@context",u=t("gos"),c=t(2),f={},s={},p=e.exports=o();p.backlog=f},{}],gos:[function(t,e,n){function r(t,e,n){if(o.call(t,e))return t[e];var r=n();if(Object.defineProperty&&Object.keys)try{return Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!1}),r}catch(i){}return t[e]=r,r}var o=Object.prototype.hasOwnProperty;e.exports=r},{}],handle:[function(t,e,n){function r(t,e,n,r){o.buffer([t],r),o.emit(t,e,n)}var o=t("ee").get("handle");e.exports=r,r.ee=o},{}],id:[function(t,e,n){function r(t){var e=typeof t;return!t||"object"!==e&&"function"!==e?-1:t===window?0:a(t,i,function(){return o++})}var o=1,i="nr@id",a=t("gos");e.exports=r},{}],loader:[function(t,e,n){function r(){if(!h++){var t=y.info=NREUM.info,e=s.getElementsByTagName("script")[0];if(t&&t.licenseKey&&t.applicationID&&e){c(m,function(e,n){t[e]||(t[e]=n)});var n="https"===g.split(":")[0]||t.sslForHttp;y.proto=n?"https://":"http://",u("mark",["onload",a()],null,"api");var r=s.createElement("script");r.src=y.proto+t.agent,e.parentNode.insertBefore(r,e)}}}function o(){"complete"===s.readyState&&i()}function i(){u("mark",["domContent",a()],null,"api")}function a(){return(new Date).getTime()}var u=t("handle"),c=t(2),f=window,s=f.document,p="addEventListener",l="attachEvent",d=f.XMLHttpRequest,v=d&&d.prototype;NREUM.o={ST:setTimeout,CT:clearTimeout,XHR:d,REQ:f.Request,EV:f.Event,PR:f.Promise,MO:f.MutationObserver},t(1);var g=""+location,m={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net",agent:"js-agent.newrelic.com/nr-974.min.js"},w=d&&v&&v[p]&&!/CriOS/.test(navigator.userAgent),y=e.exports={offset:a(),origin:g,features:{},xhrWrappable:w};s[p]?(s[p]("DOMContentLoaded",i,!1),f[p]("load",r,!1)):(s[l]("onreadystatechange",o),f[l]("onload",r)),u("mark",["firstbyte",a()],null,"api");var h=0},{}]},{},["loader"]);</script>
                                              <title>500 Internal Server Error</title>
                                              <meta name="robots" content="noindex, nofollow" />

                                              <link media="all" rel="stylesheet" href="/assets/one_mubi-9bd0aa0299483ef69e6402f891ac12d3.css" />
                                              <body class='body-guest body-sparse-header'>
                                                <script>
                                              dataLayer = [{"country":"US","lifecycle_phase":"Anonymous Visitor"}];
                                            </script>
                                              <!-- Google Tag Manager -->
                                              <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-5R5HPW"
                                              height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
                                              <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
                                              new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
                                              j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
                                              '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
                                              })(window,document,'script','dataLayer','GTM-5R5HPW');</script>
                                              <!-- End Google Tag Manager -->

                                                <div class='site-container'>
                                                  <div class="site-header-outer">
                                                    <div class='site-header header-guest' id='header-region'>
                                                      <nav class='site-header-nav'>
                                                        <div class='site-header-primary'>
                                                          <ul>
                                                            <li class='logo'>
                                                              <a href='/'><div class='icon-logo' id='mubi-logo'></div></a>
                                                            </li>
                                                          </ul>
                                                        </div>
                                                      </nav>
                                                    </div>
                                                  </div>
                                                    <div class='page-error condensed' id='page-error-500'>
                                                        <h1>Oops!</h1>
                                                        <p>

                                            That's not supposed to happen. The issue has been reported, and we will work quickly to resolve it.

                                                        </p>
                                                        <p>
                                                          Spend a moment with Buster before returning to
                                                          <a href='/'>MUBI.</a>
                                                        </p>
                                                      <a href='/films/steamboat-bill-jr'>
                                                        <img src='https://mubi-splash.s3.amazonaws.com/500.gif' alt='500' />
                                                      </a>
                                                    </div>
                                                  </div>
                                              </body>
                                            </head>
                                            ]
20:20:31 340732.687500 T:1417671584  NOTICE: CDVDPlayer::OnExit()
20:20:31 340732.687500 T:1963491328   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.mubi/play/130998]
20:20:31 340732.750000 T:1963491328  NOTICE: CDVDPlayer::CloseFile()
20:20:31 340732.750000 T:1963491328  NOTICE: DVDPlayer: waiting for threads to exit
20:20:31 340732.750000 T:1963491328  NOTICE: DVDPlayer: finished waiting
20:20:31 340732.750000 T:1963491328  NOTICE: CDVDPlayer::CloseFile()
20:20:31 340732.750000 T:1963491328  NOTICE: DVDPlayer: waiting for threads to exit
20:20:31 340732.750000 T:1963491328  NOTICE: DVDPlayer: finished waiting

It seems like a error on the Mubi side, but maybe it would be good to log the URL that is being queried so that we can more easily investigate what's wrong. I'd be happy to contribute, I know Python but not much about Kodi.

Thanks!