Comments (11)
Is the issue still there? I can't reproduce it atm.
from crunchy-cli.
I am having the same problem.
I was to able to get around it by setting the powershell locale to the same as the one I'm downloading from (I'm using a VPN and downloading in a dubbed language).
See here on how to change the locale: https://stackoverflow.com/questions/59909992/temporarily-change-powershell-language-to-english (I used the Use-Culture cmdlet)
I think the solution here is to allow for a cmd line argument to override the locale used to call the API.
from crunchy-cli.
That's for sure an interesting read. Unfortunately I'm not running it in Powershell as I'm a Ubuntu user. I know in yt-dlp there is an option for geo-location-bypass so I guess I need something similar for this.
from crunchy-cli.
@pete2583 try setting the locale of your pc to the targeted cr region. For example, I'm in north america but wanted to download content in french, so the fix in my case was to set my locale to fr-FR. The powershell script was just a way to accomplish this without doing a global change in the entire computer.
from crunchy-cli.
You are able to overwrite your locale which gets used by crunchy-cli with the (root) --lang
flag. This should have the same impact as changing your system locale.
from crunchy-cli.
That's interesting. I didn't know that.
So if I wanted the UK would I set the lang to:
--lang to en/GB
Cheers
from crunchy-cli.
@bytedream I am passing the --lang flag, and yet it won't work unless I set my system locale using the powershell script
from crunchy-cli.
Okay that's a bit weird. I'll look into it when I have sufficient time
from crunchy-cli.
Could (one of) you paste the full error output @pete2583 @matheus2740? In the first screenshot provided is more text after a unexpected error occurred: expected value at line 1 column 1 at 1:1 (https://www.crunchyroll.com/content/v2/cms/series/G6JQVM3ER/seasons?locale=en-US&preferred_audio_language=ja-JP): :
which got cut out.
from crunchy-cli.
Hey.
So the full error is as below:
crunchy-cli download -a ja-JP -o "{series_name} - S{season_number}E{relative_episode_number} - {episode_number} - {title} - [{resolution}]
- [{audio}]-[Crunchy Roll].mkv" https://www.crunchyroll.com/series/G6JQVM3ER/case-closed-detective-conan[S1E39]
:: ✔ Logging in
:: expected value at line 1 column 1 at 1:1 (https://www.crunchyroll.com/auth/v1/token): : <!DOCTYPE html>
<html lang="en-US">
<head>
<title>Just a moment...</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="robots" content="noindex,nofollow">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href="/cdn-cgi/styles/challenges.css" rel="stylesheet">
</head>
<body class="no-js">
<div class="main-wrapper" role="main">
<div class="main-content">
<noscript>
<div id="challenge-error-title">
<div class="h2">
<span class="icon-wrapper">
<div class="heading-icon warning-icon"></div>
</span>
<span id="challenge-error-text">
Enable JavaScript and cookies to continue
</span>
</div>
</div>
</noscript>
<div id="trk_jschal_js" style="display:none;background-image:url('/cdn-cgi/images/trace/captcha/nojs/transparent.gif?ray=7e1f39effbfb3aa2')"></div>
<form id="challenge-form" action="/auth/v1/token?__cf_chl_f_tk=JpQkAzTE.Q79kDoP7pUX1oY7pyKw55bXFYg_knhmLh4-1688556106-0-gaNycGzNCjs" method="POST" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="md" value="4JSeWzQbHIaF77zgDVHeKznF513hE1I47E4YszR8MdU-1688556106-0-AbbJYjQXbHVl_Y2KOPAUwKzOcK0RQMxNcbjt84oO0Ar8BiovD56uINGZHC2bUtnkYRlHew4q4Wkwq4WhXtupLfxWDERSYqyovNV4dgngDrU-avwQWQ900DpsKNsjZcFGcpqitlU3Akr2IUeqqo-Ir6IcNNs_d3pP9mEulpNFrbIDQY8n8VwJxvPc95M0UzKtSbmdxZZrwofwKF4q4Tlnuyklekyaxqeg_IpOFY6eJCbBL1jfAz2BFTtYvpx5aRoC4imvi9GxZ4JhavCdDGW6XuQAx_I5ghgOH9u83jrEZkrZJCR1ln0vhCvTVJ4370sdQRYhMPjm8HODbb5mx9xPYEoFY457MCaeIpeESKBg_p21OkBizcXNkNSJyUSY91stYDpetGlops2RiH5HPvqP2fq73SyNzThZ1DIpOGTe-TRBs8Jy-rpOxsaaFgQv_Lfggzuhs_rPSZvnOi_iBHjtqFma4vn2jrSlxovV531GLCWEj8lvJCUFKav6JuwlYMau8Wys6misRMZv0bgSlG_gJde0mNPPLe5lcltdCKMqyrir6lHsXYRyXW9LSAmbC5b8TRms7m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6vylKx3U6GrSW_uS4gwJ0S6eurJO1uKpo8dbXkfNdbawbvApxGv5tCMdTCIAVb43ztJd8IKbUSeZn5RxZ6RzBy0s0Uu__PTAVifw-zGSciFfioVWaP0MemARu2XsT2xdDUF8VlMQAgq-LZ-8K1jtH1N9t4X5QED_6F3DUuTBi7RncF47eWPpsOyzKfZRd8sCxY2Xk4fzF8R1OtyshpNghJzEl1qqNrJNKb3faMxjPqPEGgqN-VodtuJqpWxmr31OoQo6O8Nj4XlFI6BRnNPGMjBlTFjwR5OlyyyjjYSN4BQBzeO-bZkkChJRnJIN77DSq8m9VTl4mB0Zkvh-Rhe0o6pbWoquBD5rlbUO4hOs7exbGfOSFpnzCN3c12_Nk3gyOYJtlhQjlFDjgbEaxSfV2GptUz_JU6ohT0UcU03tgTVgYhKyGpyfqFxuVfighT8NEzRkqKAMeW99F6RKX7N_cKtokBdI8Y4OvvTQc1slGP_mH-HLpGsDmbZ0sopxnhFw5A5NxWL6TT86Yrf5YR2ZvAlXvQLnbEMBNBnD_Z0Mg-VIFlpQ9GW-eZlLsn-HLAOk6C3b7tgjYk3UYobIJ2snM_mv5yUVjzpRQWsfvbIrt-iRBJeLRwUSu_WW3I-k7Pq6Y3BAS3T957ysXlfpuAEwOzjlXSkZvCBEoJXlCUZD_DZJxcffT6a9I8SbF-9yQu9ARdvatfFYqTY6PMfU8_iTJ1HsY4xwxqt-i7NhyA1rFT2E9wcu7yLv7vtiWo1-O0tsxAkzVgHEwikDidY32eWJvr44cx35ysbpkGz5fz2NJUBY63XrLbB-0wjVjHgutfsMxhUL6A8nnP97RRDzAz_6ocYSfcAyOR9uQ084q2TY6oZ2DieRvGyLpcRcy_ahXGktA">
</form>
</div>
</div>
<script>
(function(){
window._cf_chl_opt={
cvId: '2',
cZone: 'www.crunchyroll.com',
cType: 'interactive',
cNounce: '2066',
cRay: '7e1f39effbfb3aa2',
cHash: '9ab5b27e8eab734',
cUPMDTk: "\/auth\/v1\/token?__cf_chl_tk=JpQkAz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0GdZgHVGQR6KuEiaos=',
i1: 'N1Uhk31mt17Pt6vc7+WvzA==',
i2: 'dRXoPoYsZ91U5oZFg1TwVA==',
zh: 'qQz4tblgEgtOKuLwUaA7NrEUXyzFHvjAH4jkpQCn35I=',
uh: '2t+rFn8KEzvjNbeHViAPFROowHq9NJ6WRekpBQcGr2w=',
hh: 'X/ui56Hpfhv5vN0FUDU58Tk8kOdH4hwp+B7yjRL1zVA=',
}
};
var trkjs = document.createElement('img');
trkjs.setAttribute('src', '/cdn-cgi/images/trace/captcha/js/transparent.gif?ray=7e1f39effbfb3aa2');
trkjs.setAttribute('alt', '');
trkjs.setAttribute('style', 'display: none');
document.body.appendChild(trkjs);
var cpo = document.createElement('script');
cpo.src = '/cdn-cgi/challenge-platform/h/g/orchestrate/captcha/v1?ray=7e1f39effbfb3aa2';
window._cf_chl_opt.cOgUHash = location.hash === '' && location.href.indexOf('#') !== -1 ? '#' : location.hash;
window._cf_chl_opt.cOgUQuery = location.search === '' && location.href.slice(0, location.href.length - window._cf_chl_opt.cOgUHash.length).indexOf('?')
!== -1 ? '?' : location.search;
if (window.history && window.history.replaceState) {
var ogU = location.pathname + window._cf_chl_opt.cOgUQuery + window._cf_chl_opt.cOgUHash;
history.replaceState(null, null, "\/auth\/v1\/token?__cf_chl_rt_tk=JpQkAzTE.Q79kDoP7pUX1oY7pyKw55bXFYg_knhmLh4-1688556106-0-gaNycGzNCjs" + window._cf_chl_opt.cOgUHash);
cpo.onload = function() {
history.replaceState(null, null, ogU);
};
}
document.getElementsByTagName('head')[0].appendChild(cpo);
}());
</script>
</body>
</html>
from crunchy-cli.
Ty. This error is triggered by cloudflare which already has its dedicated issue #104, I should've asked earlier for the full error output. But I still don't know how the system locale can decide if the error shows up or not.
from crunchy-cli.
Related Issues (20)
- InvalidDigit in En-US audio HOT 1
- Unable to build from Git HOT 2
- Download archive command not updating files HOT 4
- Output Template Options remove special characters HOT 1
- Linux: Anime title not being sanitized HOT 4
- Subtitles are not fitting their usual format HOT 4
- Subtitle only option HOT 7
- An error occurred: JWT HOT 11
- error at line 7: Parse("invalid float literal") HOT 1
- Too many active streams error HOT 6
- add season_sequence_number to a episode output HOT 11
- To many active/parallel streams HOT 2
- Add custom download directory for output file HOT 2
- To extract audio HOT 1
- The other Competitor HOT 1
- how to download in es-LA or es-MX HOT 3
- Unknown TLS backend passed to `use_preconfigured_tls` HOT 4
- Video result in green or gray screen / DRM encrypted HOT 51
- Switch endpoint is now OMA encrypted HOT 2
- Version 3.6.7 bugs searching some animes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crunchy-cli.