Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working #32

Open
shillshocked opened this issue Sep 2, 2020 · 0 comments
Open

Not working #32

shillshocked opened this issue Sep 2, 2020 · 0 comments

Comments

@shillshocked
Copy link

Getting an error when trying to login:

Traceback (most recent call last):
File "examples/my-library.py", line 26, in
am = AmazonMusic(credentials = lambda: [input('Email: '), getpass('Amazon password: ')])
File "/home/destiny/Scripts/amazon-music-config-fix-2020-07/amazonmusic.py", line 107, in init
raise Exception("Unable to find appConfig in {}".format(r.content))
Exception: Unable to find appConfig in b'\n<!doctype html><script>var aPageStart = (new Date()).getTime();</script> \n\n<title dir="ltr"> Amazon\n</title>\n\n<script>\n(function(f,h,Q,A){function G(a){v&&v.tag&&v.tag(q(":","aui",a))}function x(a,b){v&&v.count&&v.count("aui:"+a,0===b?0:b||(v.count("aui:"+a)||0)+1)}function l(a){try{return a.test(navigator.userAgent)}catch(b){return!1}}function y(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent&&a.attachEvent("on"+b,c)}function q(a,b,c,e){b=b&&c?b+a+c:b||c;return e?q(a,b,e):b}function H(a,b,c){try{Object.defineProperty(a,b,{value:c,writable:!1})}catch(e){a[b]=c}return c}function ta(a,b){var c=a.length,\ne=c,g=function(){e--||(R.push(b),S||(setTimeout(T,0),S=!0))};for(g();c--;)ca[a[c]]?g():(B[a[c]]=B[a[c]]||[]).push(g)}function ua(a,b,c,e,g){var d=h.createElement(a?"script":"link");y(d,"error",e);g&&y(d,"load",g);a?(d.type="text/javascript",d.async=!0,c&&/AUIClients|images[/]I/.test(b)&&d.setAttribute("crossorigin","anonymous"),d.src=b):(d.rel="stylesheet",d.href=b);h.getElementsByTagName("head")[0].appendChild(d)}function da(a,b){function c(c,e){function g(){ua(b,c,h,function(b){!I&&h?(h=!1,x("resource_retry"),\ng()):(x("resource_error"),a.log("Asset failed to load: "+c,I?"WARN":A));b&&b.stopPropagation?b.stopPropagation():f.event&&(f.event.cancelBubble=!0)},e)}if(ea[c])return!1;ea[c]=!0;x("resource_count");var h=!0;return!g()}if(b){var e=0,g=0;c.andConfirm=function(a,b){return c(a,function(){e++;b&&b.apply(this,arguments)})};c.confirm=function(){g++};c.getCsriCounters=function(){return{reqs:e,full:g}}}return c}function va(a,b,c){for(var e={name:a,guard:function(c){return b.guardFatal(a,c)},logError:function(c,\nd,e){b.logError(c,d,e,a)}},g=[],d=0;d<c.length;d++)J.hasOwnProperty(c[d])&&(g[d]=U.hasOwnProperty(c[d])?Uc[d]:J[c[d]]);return g}function C(a,b,c,e,g){return function(d,h){function m(){var a=null;e?a=h:"function"===typeof h&&(p.start=D(),a=h.apply(f,va(d,k,l)),p.end=D());if(b){J[d]=a;a=d;for(ca[a]=!0;(B[a]||[]).length;)B[a].shift()();delete B[a]}p.done=!0}var k=g||this;"function"===typeof d&&(h=d,d=A);b&&(d=d?d.replace(fa,""):"NONAME",V.hasOwnProperty(d)&&k.error(q(", reregistered by ",\nq(" by ",d+" already registered",V[d]),k.attribution),d),V[d]=k.attribution);for(var l=[],n=0;n<a.length;n++)l[n]=a[n].replace(fa,"");var p=ga[d||"anon"+ ++wa]={depend:l,registered:D(),namespace:k.namespace};c?m():ta(l,k.guardFatal(d,m));return{decorate:function(a){U[d]=k.guardFatal(d,a)}}}}function ha(a){return function(){var b=Array.prototype.slice.call(arguments);return{execute:C(b,!1,a,!1,this),register:C(b,!0,a,!1,this)}}}function W(a,b){return function(c,e){e||(e=c,c=A);var g=this.attribution;\nreturn function(){z.push(b||{attribution:g,name:c,logLevel:a});var d=e.apply(this,arguments);z.pop();return d}}}function K(a,b){this.load={js:da(this,!0),css:da(this)};H(this,"namespace",b);H(this,"attribution",a)}function ia(){h.body?p.trigger("a-bodyBegin"):setTimeout(ia,20)}function E(a,b){a.className=X(a,b)+" "+b}function X(a,b){return(" "+a.className+" ").split(" "+b+" ").join(" ").replace(/^ | $/g,"")}function ja(a){try{return a()}catch(b){return!1}}function L(){if(M){var a={w:f.innerWidth||\nm.clientWidth,h:f.innerHeight||m.clientHeight};5<Math.abs(a.w-Y.w)||50<a.h-Y.h?(Y=a,N=4,(a=k.mobile||k.tablet?450<a.w&&a.w>a.h:1250<=a.w)?E(m,"a-ws"):m.className=X(m,"a-ws")):0<N&&(N--,ka=setTimeout(L,16))}}function xa(a){(M=a===A?!M:!!a)&&L()}function ya(){return M}function r(a,b){return"sw:"+(b||"")+":"+a+":"}function la(){ma.forEach(function(a){G(a)})}function n(a){ma.push(a)}function na(a,b,c,e){if(c){b=l(/Chrome/i)&&!l(/Edge/i)&&!l(/OPR/i)&&!a.capabilities.isAmazonApp&&!l(new RegExp(Z+"bwv"+\nZ+"b"));var g=r(e,"browser"),d=r(e,"prod_mshop"),f=r(e,"beta_mshop");!a.capabilities.isAmazonApp&&c.browser&&b&&(n(g+"supported"),c.browser.action(g,e));!b&&c.browser&&n(g+"unsupported");c.prodMshop&&n(d+"unsupported");c.betaMshop&&n(f+"unsupported")}}"use strict";var O=Q.now=Q.now||function(){return+new Q},D=function(a){return a&&a.now?a.now.bind(a):O}(f.performance),za=D(),t=f.AmazonUIPageJS||f.P;if(t&&t.when&&t.register)throw Error("A copy of P has already been loaded on this page.");var v=f.ue;\nG();G("aui_build_date:3.19.8-2020-08-04");var R=[],S=!1,T;T=function(){for(var a=setTimeout(T,0),b=O();R.length;)if(R.shift()(),50<O()-b)return;clearTimeout(a);S=!1};var ca={},B={},ea={},I=!1;y(f,"beforeunload",function(){I=!0;setTimeout(function(){I=!1},1E4)});var fa=/^prv:/,V={},J={},U={},ga={},wa=0,Z=String.fromCharCode(92),F,z=[],oa=f.onerror;f.onerror=function(a,b,c,e,g){g&&"object"===typeof g||(g=Error(a,b,c),g.columnNumber=e,g.stack=b||c||e?q(Z,g.message,"at "+q(":",b,c,e)):A);var d=z.pop()||\n{};g.attribution=q(":",g.attribution||d.attribution,d.name);g.logLevel=d.logLevel;g.attribution&&console&&console.log&&console.log([g.logLevel||"ERROR",a,"thrown by",g.attribution].join(" "));z=[];oa&&(d=[].slice.call(arguments),d[4]=g,oa.apply(f,d))};K.prototype={logError:function(a,b,c,e){b={message:b,logLevel:c||"ERROR",attribution:q(":",this.attribution,e)};if(f.ueLogError)return f.ueLogError(a||b,a?b:null),!0;console&&console.error&&(console.log(b),console.error(a));return!1},error:function(a,\nb,c,e){a=Error(q(":",e,a,c));a.attribution=q(":",this.attribution,b);throw a;},guardError:W(),guardFatal:W("FATAL"),guardCurrent:function(a){var b=z[z.length-1];return b?W(b.logLevel,b).call(this,a):a},log:function(a,b,c){return this.logError(null,a,b,c)},declare:C([],!0,!0,!0),register:C([],!0),execute:C([]),AUI_BUILD_DATE:"3.19.8-2020-08-04",when:ha(),now:ha(!0),trigger:function(a,b,c){var e=O();this.declare(a,{data:b,pageElapsedTime:e-(f.aPageStart||NaN),triggerTime:e});c&&c.instrument&&F.when("prv:a-logTrigger").execute(function(b){b(a)})},\nhandleTriggers:function(){this.log("handleTriggers deprecated")},attributeErrors:function(a){return new K(a)},namespace:function(a,b){return new K(a,b)}};var p=H(f,"AmazonUIPageJS",new K);F=p.namespace("PageJS","AmazonUI");F.declare("prv:p-debug",ga);p.declare("p-recorder-events",[]);p.declare("p-recorder-stop",function(){});H(f,"P",p);ia();if(h.addEventListener){var pa;h.addEventListener("DOMContentLoaded",pa=function(){p.trigger("a-domready");h.removeEventListener("DOMContentLoaded",pa,!1)},!1)}var m=\nh.documentElement,aa=function(){var a=["O","ms","Moz","Webkit"],b=h.createElement("div");return{testGradients:function(){b.style.cssText="background-image:-webkit-gradient(linear,left top,right bottom,from(#1E4),to(white));background-image:-webkit-linear-gradient(left top,#1E4,white);background-image:linear-gradient(left top,#1E4,white);";return~b.style.backgroundImage.indexOf("gradient")},test:function(c){var e=c.charAt(0).toUpperCase()+c.substr(1);c=(a.join(e+" ")+e+" "+c).split(" ");for(e=c.length;e--;)if(""===\nb.style[c[e]])return!0;return!1},testTransform3d:function(){var a=!1;f.matchMedia&&(a=f.matchMedia("(-webkit-transform-3d)").matches);return a}}}(),t=m.className,qa=/(^| )a-mobile( |$)/.test(t),ra=/(^| )a-tablet( |$)/.test(t),k={audio:function(){return!!h.createElement("audio").canPlayType},video:function(){return!!h.createElement("video").canPlayType},canvas:function(){return!!h.createElement("canvas").getContext},svg:function(){return!!h.createElementNS&&!!h.createElementNS("http://www.w3.org/2000/svg",\n"svg").createSVGRect},offline:function(){return navigator.hasOwnProperty&&navigator.hasOwnProperty("onLine")&&navigator.onLine},dragDrop:function(){return"draggable"in h.createElement("span")},geolocation:function(){return!!navigator.geolocation},history:function(){return!(!f.history||!f.history.pushState)},webworker:function(){return!!f.Worker},autofocus:function(){return"autofocus"in h.createElement("input")},inputPlaceholder:function(){return"placeholder"in h.createElement("input")},textareaPlaceholder:function(){return"placeholder"in\nh.createElement("textarea")},localStorage:function(){return"localStorage"in f&&null!==f.localStorage},orientation:function(){return"orientation"in f},touch:function(){return"ontouchend"in h},gradients:function(){return aa.testGradients()},hires:function(){var a=f.devicePixelRatio&&1.5<=f.devicePixelRatio||f.matchMedia&&f.matchMedia("(min-resolution:144dpi)").matches;x("hiRes"+(qa?"Mobile":ra?"Tablet":"Desktop"),a?1:0);return a},transform3d:function(){return aa.testTransform3d()},touchScrolling:function(){return l(/Windowshop|android|OS ([5-9]|[1-9][0-9]+)([0-9]{1,2})+ like Mac OS X|Chrome|Silk|Firefox|Trident.+?; Touch/i)},\nios:function(){return l(/OS [1-9][0-9]*([0-9])+ like Mac OS X/i)&&!l(/trident|Edge/i)},android:function(){return l(/android.([1-9]|[L-Z])/i)&&!l(/trident|Edge/i)},mobile:function(){return qa},tablet:function(){return ra},rtl:function(){return"rtl"===m.dir}},u;for(u in k)k.hasOwnProperty(u)&&(k[u]=ja(k[u]));for(var ba="textShadow textStroke boxShadow borderRadius borderImage opacity transform transition".split(" "),P=0;P<ba.length;P++)k[ba[P]]=ja(function(){return aa.test(ba[P])});var M=!0,ka=0,\nY={w:0,h:0},N=4;L();y(f,"resize",function(){clearTimeout(ka);N=4;L()});var sa={getItem:function(a){try{return f.localStorage.getItem(a)}catch(b){}},setItem:function(a,b){try{return f.localStorage.setItem(a,b)}catch(c){}}};m.className=X(m,"a-no-js");E(m,"a-js");!l(/OS 1-8+ like Mac OS X/i)||f.navigator.standalone||l(/safari/i)||E(m,"a-ember");t=[];for(u in k)k.hasOwnProperty(u)&&k[u]&&t.push("a-"+u.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()}));E(m,t.join(" "));m.setAttribute("data-aui-build-date",\n"3.19.8-2020-08-04");p.register("p-detect",function(){return{capabilities:k,localStorage:k.localStorage&&sa,toggleResponsiveGrid:xa,responsiveGridEnabled:ya}});l(/UCBrowser/i)||k.localStorage&&E(m,sa.getItem("a-font-class"));p.declare("a-event-revised-handling",!1);var w;try{w=navigator.serviceWorker}catch(a){G("sw:nav_err")}w&&(y(w,"message",function(a){a&&a.data&&x(a.data.k,a.data.v)}),w.controller&&w.controller.postMessage("MSG-RDY"));var ma=[];(function(a){var b=a.reg,c=a.unreg;w&&w.getRegistrations?\n(F.when("A","a-util").execute(function(a,b){na(a,b,c,"unregister")}),y(f,"load",function(){F.when("A","a-util").execute(function(a,c){na(a,c,b,"register");la()})})):(b&&(b.browser&&n(r("register","browser")+"unsupported"),b.prodMshop&&n(r("register","prod_mshop")+"unsupported"),b.betaMshop&&n(r("register","beta_mshop")+"unsupported")),c&&(c.browser&&n(r("unregister","browser")+"unsupported"),c.prodMshop&&n(r("unregister","prod_mshop")+"unsupported"),c.betaMshop&&n(r("unregister","beta_mshop")+"unsupported")),\nla())})({reg:{},unreg:{}});p.declare("a-fix-event-off",!1);x("pagejs:pkgExecTime",D()-za)})(window,document,Date);\n (window.AmazonUIPageJS ? AmazonUIPageJS : P).load.js('https://images-na.ssl-images-amazon.com/images/I/61-6nKPKyWL._RC|11-BZEJ8lnL.js,61GQ9IdK7HL.js,21Of0-9HPCL.js,012FVc3131L.js,119KAWlHU6L.js,51CF7BmbF2L.js,11AHlQhPRjL.js,016iHgpF74L.js,11aNYFFS5hL.js,116tgw9TSaL.js,211-p4GRUCL.js,01PoLXBDXWL.js,6131jEFdnAL.js,41FEs0XB89L.js,11BOgvnnntL.js,31UWuPgtTtL.js,01rpauTep4L.js,01iyxuSGj4L.js,01l8233efsL.js_.js?AUIClients/AmazonUI\');\n</script>\n\n <style>\n .chimera-body-container {\n width: 27em !important;\n margin-left: auto;\n margin-right: auto;\n }\n </style>\n\n

<script type="a-state" data-a-state="{"key":"a-wlab-states"}">{}</script>
\n\n\n\n\n \n\n\n
\n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n
\n\n
\n
\n\n\n\n

JavaScript Is Disabled

This site requires JavaScript to function correctly. Please enable JavaScript on your browser to continue.
\n
\n
\n
To continue, approve the notification sent to:
\n
\n\n
\n
Email address
\n
s*****@gmail.com\n
\n\n
\n\n
\n\n\n\n<input type='hidden' name='csrfToken' value='gaBl0cILhj2F32SlzoowpGj2FOmsCSUj3D' />\n
\n<style>\n\n .a-no-js .transaction-approval-js-enabled {\n display: none;\n }\n\n</style>\n\n\n
\n\n\n\nDidn't receive it?\n\n
\n\n\n\n<input type='hidden' name='csrfToken' value='gaBl0cILhj2F32SlzoowpGj2FOmsCSUj3D' />
\n\n\n
\n
\n\n
\n<style>\n\n .a-no-js .transaction-approval-js-enabled {\n display: none;\n }\n\n</style>\n\n\n\n
\nDid you already respond?\n\n
\n
Need help? Please contact Customer Service.
\n<script>\n 'use strict';\n\n P.when('A', 'ready').execute(function(A) {\n var $ = A.$;\n\n // Do polling every 5 seconds, this can be changed later if needed\n $('#pollingForm').ready(function() {\n setTimeout(polling, 5000);\n });\n\n function polling() {\n A.ajax($('#pollingForm').attr('action'), {\n method: 'GET',\n params: $('#pollingForm').serializeArray(),\n success: handlePollingResponse,\n error: handlePollingError\n });\n }\n\n function handlePollingResponse(response) {\n $('#channelDetails').html($(response).find('#updatedChannelDetails').html());\n var transactionApprovalStatus = $(response).find("input[name='transactionApprovalStatus']").val();\n\n switch (transactionApprovalStatus) {\n case 'TransactionPending':\n setTimeout(polling, 5000);\n break;\n\n case 'TransactionResponded':\n case 'TransactionExpired':\n $('#resend-transaction-approval').hide();\n setTimeout(polling, 5000);\n break;\n\n case 'TransactionCompleted':\n case 'TransactionCompletionTimeout':\n window.location.replace(decodeURIComponent(getQueryParameters(window.location.href)['openid.return_to']));\n break;\n\n default:\n window.location.reload();\n }\n }\n\n function getQueryParameters(url) {\n var paramPairs = {};\n var parameters = url.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m, key, value) {\n paramPairs[key] = value;\n });\n\n return paramPairs;\n }\n\n function handlePollingError() {\n window.location.reload();\n }\n });\n\n</script>\n<script>\n P.when('A', 'ready').execute(function(A) {\n var $ = A.$;\n\n $('#resend-approval-link').click(function() {\n $('#resend-approval-form').submit();\n });\n });\n</script>\n\n<script>\n P.when('A', 'ready').register('resendApprovalLinksTimer', function(A) {\n function updateTime(timeleft, updateMsg) {\n var resultMsg = updateMsg.split('+timeleft+');\n var endResult = resultMsg[0].split('"').join('') +timeleft+ resultMsg[1].split('"').join('');\n A.$('#timer').html(endResult);\n }\n\n function onComplete(completeMsg) {\n A.$('#timer').html(completeMsg);\n A.$("#resend-approval-link").removeClass("transaction-approval-link-disabled");\n }\n\n function Timer(time, updateMsg, completeMsg) {\n var start = Date.now();\n var interval = setInterval(function() {\n var currTime = Date.now();\n var timePassed = currTime - start;\n var timeRemaining = time - timePassed;\n\n if (timeRemaining <= 0) {\n clearInterval(interval);\n onComplete(completeMsg);\n } else {\n updateTime(Math.floor(timeRemaining / 1000), updateMsg);\n }\n }, 100);\n }\n\n function createTimer(timeInMillis, updateMsg, completeMsg) {\n return new Timer(timeInMillis, updateMsg, completeMsg);\n }\n\n return {\n createTimer: createTimer\n };\n });\n</script>\n\n<script>\n P.when('A', 'resendApprovalLinksTimer', 'ready').execute(function(A, resendApprovalLinksTimer) {\n if (true) {\n resendApprovalLinksTimer.createTimer(1599054941426 - Date.now(), 'Notification sent. This may take a minute to arrive. If needed, you may request a new notification in " +timeleft+ " second(s).', 'You may now request an additional notification, if needed.');\n A.$("#resend-approval-link").addClass("transaction-approval-link-disabled");\n }\n });\n</script>\n\n<style>\n\n .transaction-approval-word-break {\n word-break: break-word;\n }\n\n .transaction-approval-link-disabled {\n pointer-events: none;\n opacity: 0.5;\n }\n\n</style>\n
\n\n\n\n\n<style>\n .auth-footer-separator {\n display: inline-block;\n width: 20px;\n }\n</style>\n\n
\n\n\n
'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant