Giter VIP home page Giter VIP logo

Comments (33)

KevCui avatar KevCui commented on September 22, 2024 1

Hey @FierBub-42069, yeah probably WSL issue. WSL is half-baked 🤷‍♂️. Anyway, I pushed another fix in the latest commit, hope this time it can work 🤞

from animepahe-dl.

KevCui avatar KevCui commented on September 22, 2024

Hey @FierBub-42069, could you please let me know the name of the anime? Did you try -a to see if it works?

from animepahe-dl.

FierBub-42069 avatar FierBub-42069 commented on September 22, 2024

Hey @FierBub-42069, could you please let me know the name of the anime? Did you try -a to see if it works?

Yes, I did, still the same problem.
image
But it works flawlessly in Termux on Android.

from animepahe-dl.

KevCui avatar KevCui commented on September 22, 2024

Hey @FierBub-42069, I cannot reproduce your issue. It looks like something wrong with the system. Could you run the same command with -d flag to enable debug mode? Like ./animepahe-dl.sh -a 'Fuuto Tantei' -e 1 -r '1080' -d. And then paste the logs here, I will take another look. Thanks!.

from animepahe-dl.

FierBub-42069 avatar FierBub-42069 commented on September 22, 2024

Hey @FierBub-42069, I cannot reproduce your issue. It looks like something wrong with the system. Could you run the same command with -d flag to enable debug mode? Like ./animepahe-dl.sh -a 'Fuuto Tantei' -e 1 -r '1080' -d. And then paste the logs here, I will take another look. Thanks!.

+ getopts :hlda:s:e:r:t:o: opt
+ set_var
++ command -v curl
+ _CURL=/usr/bin/curl
++ command -v jq
+ _JQ=/usr/bin/jq
++ command -v fzf
+ _FZF=/usr/bin/fzf
++ command -v node
+ _NODE=/usr/bin/node
++ command -v ffmpeg
+ _FFMPEG=/usr/bin/ffmpeg
+ [[ 1 -gt 1 ]]
+ _HOST=https://animepahe.com
+ _ANIME_URL=https://animepahe.com/anime
+ _API_URL=https://animepahe.com/api
+ _REFERER_URL=https://kwik.cx/
+++ realpath animepahe-dl.sh
++ dirname /mnt/c/Users/fierb/Videos/Anime/animepahe-dl/animepahe-dl.sh
+ _SCRIPT_PATH=/mnt/c/Users/fierb/Videos/Anime/animepahe-dl
+ _ANIME_LIST_FILE=/mnt/c/Users/fierb/Videos/Anime/animepahe-dl/anime.list
+ _SOURCE_FILE=.source.json
+ [[ -n '' ]]
+ download_anime_list
+ get https://animepahe.com/anime
+ /usr/bin/curl -sS -L https://animepahe.com/anime --compressed
+ grep /anime/
+ sed -E 's/.*anime\//[/;s/" title="/] /;s/\">.*/   /'
+ [[ -z 366ff2ae-af2b-5282-f789-9a858df623f5 ]]
+ [[ 366ff2ae-af2b-5282-f789-9a858df623f5 == '' ]]
++ grep 366ff2ae-af2b-5282-f789-9a858df623f5 /mnt/c/Users/fierb/Videos/Anime/animepahe-dl/anime.list
++ tail -1
++ remove_slug
++ awk '-F] ' '{print $2}'
++ sed -E 's/[[:space:]]+$//'
++ sed -E 's/[^[:alnum:] ,\+\-\)\(]/_/g'
+ _ANIME_NAME='Fuuto Tantei'
+ [[ Fuuto Tantei == '' ]]
+ download_source
+ local d p n
+ mkdir -p '/mnt/c/Users/fierb/Videos/Anime/animepahe-dl/Fuuto Tantei'
++ get_episode_list 366ff2ae-af2b-5282-f789-9a858df623f5 1
++ get 'https://animepahe.com/api?m=release&id=366ff2ae-af2b-5282-f789-9a858df623f5&sort=episode_asc&page=1'
++ /usr/bin/curl -sS -L 'https://animepahe.com/api?m=release&id=366ff2ae-af2b-5282-f789-9a858df623f5&sort=episode_asc&page=1' --compressed
+ d='{"total":3,"per_page":30,"current_page":1,"last_page":1,"next_page_url":null,"prev_page_url":null,"from":1,"to":3,"data":[{"id":54904,"anime_id":4833,"episode":1,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/f21d628fa583a3cf214b5b02ee30a839e35297545f7c211fc9323aec334e101d.jpg","disc":"","duration":"00:25:00","session":"ebd05a8ba154bc3933b6e0a7d6c27c121037a1538c3c4b761b820468dbb75b20","filler":0,"created_at":"2022-07-31 17:59:36"},{"id":54985,"anime_id":4833,"episode":2,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/8d7d87ab9feb1e2696b3f71070ce91d68b3e16f5c61937dddb62846ac0692646.jpg","disc":"","duration":"00:25:00","session":"f65605b89030ab5cf5557e73dc1b1f2dfc5f878e3cb01b186c7b4767be82f4fc","filler":0,"created_at":"2022-08-07 16:04:55"},{"id":55052,"anime_id":4833,"episode":3,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/75d08ad1c4c6c207b62b34ce2a6830325a7edef7fed98e7c4860599a9d1b7657.jpg","disc":"","duration":"00:25:00","session":"a93a984582b4c321238befa9d43e2d5d9a9af10e4060765eaebc196967f355a7","filler":0,"created_at":"2022-08-14 16:10:15"}]}'
++ /usr/bin/jq -r .last_page
+ p=1
+ [[ 1 -gt 1 ]]
+ echo '{"total":3,"per_page":30,"current_page":1,"last_page":1,"next_page_url":null,"prev_page_url":null,"from":1,"to":3,"data":[{"id":54904,"anime_id":4833,"episode":1,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/f21d628fa583a3cf214b5b02ee30a839e35297545f7c211fc9323aec334e101d.jpg","disc":"","duration":"00:25:00","session":"ebd05a8ba154bc3933b6e0a7d6c27c121037a1538c3c4b761b820468dbb75b20","filler":0,"created_at":"2022-07-31 17:59:36"},{"id":54985,"anime_id":4833,"episode":2,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/8d7d87ab9feb1e2696b3f71070ce91d68b3e16f5c61937dddb62846ac0692646.jpg","disc":"","duration":"00:25:00","session":"f65605b89030ab5cf5557e73dc1b1f2dfc5f878e3cb01b186c7b4767be82f4fc","filler":0,"created_at":"2022-08-07 16:04:55"},{"id":55052,"anime_id":4833,"episode":3,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/75d08ad1c4c6c207b62b34ce2a6830325a7edef7fed98e7c4860599a9d1b7657.jpg","disc":"","duration":"00:25:00","session":"a93a984582b4c321238befa9d43e2d5d9a9af10e4060765eaebc196967f355a7","filler":0,"created_at":"2022-08-14 16:10:15"}]}'
+ [[ -z * ]]
+ download_episodes '*'
+ local origel el uniqel
+ origel=()
+ [[ * == *\,* ]]
+ origel+=("$1")
+ el=()
+ for i in "${origel[@]}"
+ [[ * == *\** ]]
+ local eps fst lst
++ /usr/bin/jq -r '.data[].episode' '/mnt/c/Users/fierb/Videos/Anime/animepahe-dl/Fuuto Tantei/.source.json'
++ sort -nu
+ eps='1
2
3'
++ head -1
+ fst=1
++ tail -1
+ lst=3
+ i=1-3
+ [[ 1-3 == *\-* ]]
++ awk -F - '{print $1}'
+ s=1
++ awk -F - '{print $2}'
+ e=3
++ seq 1 3
+ for n in $(seq "$s" "$e")
+ el+=("$n")
+ for n in $(seq "$s" "$e")
+ el+=("$n")
+ for n in $(seq "$s" "$e")
+ el+=("$n")
+ IFS=' '
+ read -ra uniqel
++ printf '%s\n' 1 2 3
++ sort -n -u
++ tr '\n' ' '
+ [[ 3 == 0 ]]
+ for e in "${uniqel[@]}"
+ download_episode 1
+ local num=1 l pl erropt= v
+ v='/mnt/c/Users/fierb/Videos/Anime/animepahe-dl/Fuuto Tantei/1.mp4'
++ get_episode_link 1
++ local i s d r=
+++ /usr/bin/jq -r '.data[] | select((.episode | tonumber) == ($num | tonumber)) | .anime_id' --arg num 1
++ i=4833
+++ /usr/bin/jq -r '.data[] | select((.episode | tonumber) == ($num | tonumber)) | .session' --arg num 1
++ s=ebd05a8ba154bc3933b6e0a7d6c27c121037a1538c3c4b761b820468dbb75b20
++ [[ 4833 == '' ]]
+++ get 'https://animepahe.com/api?m=embed&id=4833&session=ebd05a8ba154bc3933b6e0a7d6c27c121037a1538c3c4b761b820468dbb75b20&p=kwik'
+++ /usr/bin/curl -sS -L 'https://animepahe.com/api?m=embed&id=4833&session=ebd05a8ba154bc3933b6e0a7d6c27c121037a1538c3c4b761b820468dbb75b20&p=kwik' --compressed
+++ /usr/bin/jq -r '.data[]'
++ d='{
  "360": {
    "filesize": 51446358,
    "crc32": "58826739",
    "revision": "",
    "fansub": "SubsPlease",
    "audio": "jpn",
    "disc": "",
    "hq": 0,
    "kwik": "https://kwik.cx/e/eGIBTkgtiIPQ",
    "kwik_pahewin": "https://pahe.win/mwUil"
  }
}
{
  "720": {
    "filesize": 122357253,
    "crc32": "aaca8657",
    "revision": "",
    "fansub": "SubsPlease",
    "audio": "jpn",
    "disc": "",
    "hq": 0,
    "kwik": "https://kwik.cx/e/oQUdImUhOIG6",
    "kwik_pahewin": "https://pahe.win/sVgag"
  }
}
{
  "1080": {
    "filesize": 184590786,
    "crc32": "5397a7a8",
    "revision": "",
    "fansub": "SubsPlease",
    "audio": "jpn",
    "disc": "",
    "hq": 0,
    "kwik": "https://kwik.cx/e/ONkmRz6RCCFa",
    "kwik_pahewin": "https://pahe.win/LtXtk"
  }
}'
++ [[ -n '' ]]
++ [[ -n '' ]]
++ /usr/bin/jq -r '.[].kwik'
++ tail -1
+ l=https://kwik.cx/e/ONkmRz6RCCFa
+ [[ https://kwik.cx/e/ONkmRz6RCCFa != *\/* ]]
++ get_playlist_link https://kwik.cx/e/ONkmRz6RCCFa
++ local s l
+++ /usr/bin/curl --compressed -sS -H 'Referer: https://kwik.cx/' https://kwik.cx/e/ONkmRz6RCCFa
+++ grep '<script>'
+++ grep 'eval(function'
+++ sed -E 's/<script>//'
++ s='eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!'\'''\''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\''\\w+'\''};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\''\\b'\''+e(c)+'\''\\b'\'','\''g'\''),k[c])}}return p}('\''f $7={H:a(2){4 B(9.7.h(y z("(?:(?:^|.*;)\\\\s*"+d(2).h(/[\\-\\.\\+\\*]/g,"\\\\$&")+"\\\\s*\\\\=\\\\s*([^;]*).*$)|^.*$"),"$1"))||G},E:a(2,q,3,6,5,t){k(!2||/^(?:8|r\\-v|o|m|p)$/i.D(2)){4 w}f b="";k(3){F(3.J){j K:b=3===P?"; 8=O, I N Q M:u:u A":"; r-v="+3;n;j L:b="; 8="+3;n;j S:b="; 8="+3.Z();n}}9.7=d(2)+"="+d(q)+b+(5?"; m="+5:"")+(6?"; o="+6:"")+(t?"; p":"");4 x},Y:a(2,6,5){k(!2||!11.C(2)){4 w}9.7=d(2)+"=; 8=12, R 10 W l:l:l A"+(5?"; m="+5:"")+(6?"; o="+6:"");4 x},C:a(2){4(y z("(?:^|;\\\\s*)"+d(2).h(/[\\-\\.\\+\\*]/g,"\\\\$&")+"\\\\s*\\\\=")).D(9.7)},X:a(){f c=9.7.h(/((?:^|\\s*;)[^\\=]+)(?=;|$)|^\\s*|\\s*(?:\\=[^;]*)?(?:\\1|$)/g,"").T(/\\s*(?:\\=[^;]*)?;\\s*/);U(f e=0;e<c.V;e++){c[e]=B(c[e])}4 c}};'\'',62,65,'\''||sKey|vEnd|return|sDomain|sPath|cookie|expires|document|function|sExpires|aKeys|encodeURIComponent|nIdx|var||replace||case|if|00|domain|break|path|secure|sValue|max||bSecure|59|age|false|true|new|RegExp|GMT|decodeURIComponent|hasItem|test|setItem|switch|null|getItem|31|constructor|Number|String|23|Dec|Fri|Infinity|9999|01|Date|split|for|length|1970|keys|removeItem|toUTCString|Jan|this|Thu'\''.split('\''|'\''),0,{}));eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!'\'''\''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\''\\w+'\''};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\''\\b'\''+e(c)+'\''\\b'\'','\''g'\''),k[c])}}return p}('\''h o=\'\''1A://1z-1y.1x.1w.1v/1u/1t/1s/1r.1q\'\'';h d=s.r(\'\''d\'\'');h 0=B 1p(d,{\'\''1o\'\'':{\'\''1n\'\'':i},\'\''1m\'\'':\'\''16:9\'\'',\'\''D\'\'':1,\'\''1l\'\'':5,\'\''1k\'\'':{\'\''1j\'\'':\'\''1i\'\''},1h:[\'\''7-1g\'\'',\'\''7\'\'',\'\''1f\'\'',\'\''1e-1d\'\'',\'\''1c\'\'',\'\''D\'\'',\'\''1b\'\'',\'\''1a\'\'',\'\''19\'\'',\'\''18\'\'',\'\''C\'\'',\'\''17\'\''],\'\''C\'\'':{\'\''15\'\'':i}});8(!A.14()){d.13=o}x{j z={12:11,10:Z,Y:X,W:i,V:i};h c=B A(z);c.U(o);c.T(d);g.c=c}0.3("S",6=>{g.R.Q.P("O")});0.N=1;k v(b,n,m){8(b.y){b.y(n,m,M)}x 8(b.w){b.w(\'\''3\'\''+n,m)}}j 4=k(l){g.L.K(l,\'\''*\'\'')};v(g,\'\''l\'\'',k(e){j a=e.a;8(a===\'\''7\'\'')0.7();8(a===\'\''f\'\'')0.f();8(a===\'\''u\'\'')0.u()});0.3(\'\''t\'\'',6=>{4(\'\''t\'\'')});0.3(\'\''7\'\'',6=>{4(\'\''7\'\'')});0.3(\'\''f\'\'',6=>{4(\'\''f\'\'')});0.3(\'\''J\'\'',6=>{4(0.q);s.r(\'\''.I-H\'\'').G=F(0.q.E(2))});0.3(\'\''p\'\'',6=>{4(\'\''p\'\'')});'\'',62,99,'\''player|||on|sendMessage||event|play|if||data|element|hls|video||pause|window|const|true|var|function|message|eventHandler|eventName|source|ended|currentTime|querySelector|document|ready|stop|bindEvent|attachEvent|else|addEventListener|config|Hls|new|fullscreen|volume|toFixed|String|innerHTML|timestamp|ss|timeupdate|postMessage|parent|false|speed|landscape|lock|orientation|screen|enterfullscreen|attachMedia|loadSource|lowLatencyMode|enableWorker|Infinity|backBufferLength|600|maxMaxBufferLength|180|maxBufferLength|src|isSupported|iosNative||capture|airplay|pip|settings|captions|mute|time|current|progress|large|controls|kwik|key|storage|seekTime|ratio|global|keyboard|Plyr|m3u8|uwu|a02ec43261036517cd9ddd89685dd14fc0dff00f770d12a7a5f4d9a3ff215573|02|stream|org|nextcdn|files|191|eu|https'\''.split('\''|'\''),0,{}))'
+++ /usr/bin/node -e 'eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!'\'''\''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\''\\w+'\''};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\''\\b'\''+e(c)+'\''\\b'\'','\''g'\''),k[c])}}return p}('\''f $7={H:a(2){4 B(9.7.h(y z("(?:(?:^|.*;)\\\\s*"+d(2).h(/[\\-\\.\\+\\*]/g,"\\\\$&")+"\\\\s*\\\\=\\\\s*([^;]*).*$)|^.*$"),"$1"))||G},E:a(2,q,3,6,5,t){k(!2||/^(?:8|r\\-v|o|m|p)$/i.D(2)){4 w}f b="";k(3){F(3.J){j K:b=3===P?"; 8=O, I N Q M:u:u A":"; r-v="+3;n;j L:b="; 8="+3;n;j S:b="; 8="+3.Z();n}}9.7=d(2)+"="+d(q)+b+(5?"; m="+5:"")+(6?"; o="+6:"")+(t?"; p":"");4 x},Y:a(2,6,5){k(!2||!11.C(2)){4 w}9.7=d(2)+"=; 8=12, R 10 W l:l:l A"+(5?"; m="+5:"")+(6?"; o="+6:"");4 x},C:a(2){4(y z("(?:^|;\\\\s*)"+d(2).h(/[\\-\\.\\+\\*]/g,"\\\\$&")+"\\\\s*\\\\=")).D(9.7)},X:a(){f c=9.7.h(/((?:^|\\s*;)[^\\=]+)(?=;|$)|^\\s*|\\s*(?:\\=[^;]*)?(?:\\1|$)/g,"").T(/\\s*(?:\\=[^;]*)?;\\s*/);U(f e=0;e<c.V;e++){c[e]=B(c[e])}4 c}};'\'',62,65,'\''||sKey|vEnd|return|sDomain|sPath|cookie|expires|document|function|sExpires|aKeys|encodeURIComponent|nIdx|var||replace||case|if|00|domain|break|path|secure|sValue|max||bSecure|59|age|false|true|new|RegExp|GMT|decodeURIComponent|hasItem|test|setItem|switch|null|getItem|31|constructor|Number|String|23|Dec|Fri|Infinity|9999|01|Date|split|for|length|1970|keys|removeItem|toUTCString|Jan|this|Thu'\''.split('\''|'\''),0,{}));eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!'\'''\''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\''\\w+'\''};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\''\\b'\''+e(c)+'\''\\b'\'','\''g'\''),k[c])}}return p}('\''h o=\'\''1A://1z-1y.1x.1w.1v/1u/1t/1s/1r.1q\'\'';h d=s.r(\'\''d\'\'');h 0=B 1p(d,{\'\''1o\'\'':{\'\''1n\'\'':i},\'\''1m\'\'':\'\''16:9\'\'',\'\''D\'\'':1,\'\''1l\'\'':5,\'\''1k\'\'':{\'\''1j\'\'':\'\''1i\'\''},1h:[\'\''7-1g\'\'',\'\''7\'\'',\'\''1f\'\'',\'\''1e-1d\'\'',\'\''1c\'\'',\'\''D\'\'',\'\''1b\'\'',\'\''1a\'\'',\'\''19\'\'',\'\''18\'\'',\'\''C\'\'',\'\''17\'\''],\'\''C\'\'':{\'\''15\'\'':i}});8(!A.14()){d.13=o}x{j z={12:11,10:Z,Y:X,W:i,V:i};h c=B A(z);c.U(o);c.T(d);g.c=c}0.3("S",6=>{g.R.Q.P("O")});0.N=1;k v(b,n,m){8(b.y){b.y(n,m,M)}x 8(b.w){b.w(\'\''3\'\''+n,m)}}j 4=k(l){g.L.K(l,\'\''*\'\'')};v(g,\'\''l\'\'',k(e){j a=e.a;8(a===\'\''7\'\'')0.7();8(a===\'\''f\'\'')0.f();8(a===\'\''u\'\'')0.u()});0.3(\'\''t\'\'',6=>{4(\'\''t\'\'')});0.3(\'\''7\'\'',6=>{4(\'\''7\'\'')});0.3(\'\''f\'\'',6=>{4(\'\''f\'\'')});0.3(\'\''J\'\'',6=>{4(0.q);s.r(\'\''.I-H\'\'').G=F(0.q.E(2))});0.3(\'\''p\'\'',6=>{4(\'\''p\'\'')});'\'',62,99,'\''player|||on|sendMessage||event|play|if||data|element|hls|video||pause|window|const|true|var|function|message|eventHandler|eventName|source|ended|currentTime|querySelector|document|ready|stop|bindEvent|attachEvent|else|addEventListener|config|Hls|new|fullscreen|volume|toFixed|String|innerHTML|timestamp|ss|timeupdate|postMessage|parent|false|speed|landscape|lock|orientation|screen|enterfullscreen|attachMedia|loadSource|lowLatencyMode|enableWorker|Infinity|backBufferLength|600|maxMaxBufferLength|180|maxBufferLength|src|isSupported|iosNative||capture|airplay|pip|settings|captions|mute|time|current|progress|large|controls|kwik|key|storage|seekTime|ratio|global|keyboard|Plyr|m3u8|uwu|a02ec43261036517cd9ddd89685dd14fc0dff00f770d12a7a5f4d9a3ff215573|02|stream|org|nextcdn|files|191|eu|https'\''.split('\''|'\''),0,{}))'
+++ grep source=
+++ sed -E 's/.m3u8'\'';.*/.m3u8/'
+++ sed -E 's/.*const source='\''//'
++ l=
++ echo ''
+ pl=
+ [[ -z '' ]]
+ print_warn 'Missing video list! Skip downloading!'
+ [[ -z '' ]]
+ printf '%b\n' '\033[33m[WARNING]\033[0m Missing video list! Skip downloading!'
[WARNING] Missing video list! Skip downloading!
+ return
+ for e in "${uniqel[@]}"
+ download_episode 2
+ local num=2 l pl erropt= v
+ v='/mnt/c/Users/fierb/Videos/Anime/animepahe-dl/Fuuto Tantei/2.mp4'
++ get_episode_link 2
++ local i s d r=
+++ /usr/bin/jq -r '.data[] | select((.episode | tonumber) == ($num | tonumber)) | .anime_id' --arg num 2
++ i=4833
+++ /usr/bin/jq -r '.data[] | select((.episode | tonumber) == ($num | tonumber)) | .session' --arg num 2
++ s=f65605b89030ab5cf5557e73dc1b1f2dfc5f878e3cb01b186c7b4767be82f4fc
++ [[ 4833 == '' ]]
+++ get 'https://animepahe.com/api?m=embed&id=4833&session=f65605b89030ab5cf5557e73dc1b1f2dfc5f878e3cb01b186c7b4767be82f4fc&p=kwik'
+++ /usr/bin/curl -sS -L 'https://animepahe.com/api?m=embed&id=4833&session=f65605b89030ab5cf5557e73dc1b1f2dfc5f878e3cb01b186c7b4767be82f4fc&p=kwik' --compressed
+++ /usr/bin/jq -r '.data[]'
++ d='{
  "360": {
    "filesize": 61960114,
    "crc32": "95e80d49",
    "revision": "",
    "fansub": "SubsPlease",
    "audio": "jpn",
    "disc": "",
    "hq": 0,
    "kwik": "https://kwik.cx/e/6b2bPC3JlRdx",
    "kwik_pahewin": "https://pahe.win/ppLbs"
  }
}
{
  "720": {
    "filesize": 145780258,
    "crc32": "7e0fe4cf",
    "revision": "",
    "fansub": "SubsPlease",
    "audio": "jpn",
    "disc": "",
    "hq": 0,
    "kwik": "https://kwik.cx/e/gVV6VBSSLwBq",
    "kwik_pahewin": "https://pahe.win/FlmdN"
  }
}
{
  "1080": {
    "filesize": 245056130,
    "crc32": "ee0c2d85",
    "revision": "",
    "fansub": "SubsPlease",
    "audio": "jpn",
    "disc": "",
    "hq": 0,
    "kwik": "https://kwik.cx/e/nwa7oAcFUr7I",
    "kwik_pahewin": "https://pahe.win/lPPFl"
  }
}'
++ [[ -n '' ]]
++ [[ -n '' ]]
++ /usr/bin/jq -r '.[].kwik'
++ tail -1
+ l=https://kwik.cx/e/nwa7oAcFUr7I
+ [[ https://kwik.cx/e/nwa7oAcFUr7I != *\/* ]]
++ get_playlist_link https://kwik.cx/e/nwa7oAcFUr7I
++ local s l
+++ /usr/bin/curl --compressed -sS -H 'Referer: https://kwik.cx/' https://kwik.cx/e/nwa7oAcFUr7I
+++ grep '<script>'
+++ grep 'eval(function'
+++ sed -E 's/<script>//'
++ s='eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!'\'''\''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\''\\w+'\''};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\''\\b'\''+e(c)+'\''\\b'\'','\''g'\''),k[c])}}return p}('\''f $7={H:a(2){4 B(9.7.h(y z("(?:(?:^|.*;)\\\\s*"+d(2).h(/[\\-\\.\\+\\*]/g,"\\\\$&")+"\\\\s*\\\\=\\\\s*([^;]*).*$)|^.*$"),"$1"))||G},E:a(2,q,3,6,5,t){k(!2||/^(?:8|r\\-v|o|m|p)$/i.D(2)){4 w}f b="";k(3){F(3.J){j K:b=3===P?"; 8=O, I N Q M:u:u A":"; r-v="+3;n;j L:b="; 8="+3;n;j S:b="; 8="+3.Z();n}}9.7=d(2)+"="+d(q)+b+(5?"; m="+5:"")+(6?"; o="+6:"")+(t?"; p":"");4 x},Y:a(2,6,5){k(!2||!11.C(2)){4 w}9.7=d(2)+"=; 8=12, R 10 W l:l:l A"+(5?"; m="+5:"")+(6?"; o="+6:"");4 x},C:a(2){4(y z("(?:^|;\\\\s*)"+d(2).h(/[\\-\\.\\+\\*]/g,"\\\\$&")+"\\\\s*\\\\=")).D(9.7)},X:a(){f c=9.7.h(/((?:^|\\s*;)[^\\=]+)(?=;|$)|^\\s*|\\s*(?:\\=[^;]*)?(?:\\1|$)/g,"").T(/\\s*(?:\\=[^;]*)?;\\s*/);U(f e=0;e<c.V;e++){c[e]=B(c[e])}4 c}};'\'',62,65,'\''||sKey|vEnd|return|sDomain|sPath|cookie|expires|document|function|sExpires|aKeys|encodeURIComponent|nIdx|var||replace||case|if|00|domain|break|path|secure|sValue|max||bSecure|59|age|false|true|new|RegExp|GMT|decodeURIComponent|hasItem|test|setItem|switch|null|getItem|31|constructor|Number|String|23|Dec|Fri|Infinity|9999|01|Date|split|for|length|1970|keys|removeItem|toUTCString|Jan|this|Thu'\''.split('\''|'\''),0,{}));eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!'\'''\''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\''\\w+'\''};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\''\\b'\''+e(c)+'\''\\b'\'','\''g'\''),k[c])}}return p}('\''h o=\'\''1A://1z-1y.1x.1w.1v/1u/1t/1s/1r.1q\'\'';h d=s.r(\'\''d\'\'');h 0=B 1p(d,{\'\''1o\'\'':{\'\''1n\'\'':i},\'\''1m\'\'':\'\''16:9\'\'',\'\''D\'\'':1,\'\''1l\'\'':5,\'\''1k\'\'':{\'\''1j\'\'':\'\''1i\'\''},1h:[\'\''7-1g\'\'',\'\''7\'\'',\'\''1f\'\'',\'\''1e-1d\'\'',\'\''1c\'\'',\'\''D\'\'',\'\''1b\'\'',\'\''1a\'\'',\'\''19\'\'',\'\''18\'\'',\'\''C\'\'',\'\''17\'\''],\'\''C\'\'':{\'\''15\'\'':i}});8(!A.14()){d.13=o}x{j z={12:11,10:Z,Y:X,W:i,V:i};h c=B A(z);c.U(o);c.T(d);g.c=c}0.3("S",6=>{g.R.Q.P("O")});0.N=1;k v(b,n,m){8(b.y){b.y(n,m,M)}x 8(b.w){b.w(\'\''3\'\''+n,m)}}j 4=k(l){g.L.K(l,\'\''*\'\'')};v(g,\'\''l\'\'',k(e){j a=e.a;8(a===\'\''7\'\'')0.7();8(a===\'\''f\'\'')0.f();8(a===\'\''u\'\'')0.u()});0.3(\'\''t\'\'',6=>{4(\'\''t\'\'')});0.3(\'\''7\'\'',6=>{4(\'\''7\'\'')});0.3(\'\''f\'\'',6=>{4(\'\''f\'\'')});0.3(\'\''J\'\'',6=>{4(0.q);s.r(\'\''.I-H\'\'').G=F(0.q.E(2))});0.3(\'\''p\'\'',6=>{4(\'\''p\'\'')});'\'',62,99,'\''player|||on|sendMessage||event|play|if||data|element|hls|video||pause|window|const|true|var|function|message|eventHandler|eventName|source|ended|currentTime|querySelector|document|ready|stop|bindEvent|attachEvent|else|addEventListener|config|Hls|new|fullscreen|volume|toFixed|String|innerHTML|timestamp|ss|timeupdate|postMessage|parent|false|speed|landscape|lock|orientation|screen|enterfullscreen|attachMedia|loadSource|lowLatencyMode|enableWorker|Infinity|backBufferLength|600|maxMaxBufferLength|180|maxBufferLength|src|isSupported|iosNative||capture|airplay|pip|settings|captions|mute|time|current|progress|large|controls|kwik|key|storage|seekTime|ratio|global|keyboard|Plyr|m3u8|uwu|d5118773fb8dfd19d465805426b07dbafc1b385c73b424b51fcf135494159cbd|02|stream|org|nextcdn|files|191|eu|https'\''.split('\''|'\''),0,{}))'
+++ /usr/bin/node -e 'eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!'\'''\''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\''\\w+'\''};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\''\\b'\''+e(c)+'\''\\b'\'','\''g'\''),k[c])}}return p}('\''f $7={H:a(2){4 B(9.7.h(y z("(?:(?:^|.*;)\\\\s*"+d(2).h(/[\\-\\.\\+\\*]/g,"\\\\$&")+"\\\\s*\\\\=\\\\s*([^;]*).*$)|^.*$"),"$1"))||G},E:a(2,q,3,6,5,t){k(!2||/^(?:8|r\\-v|o|m|p)$/i.D(2)){4 w}f b="";k(3){F(3.J){j K:b=3===P?"; 8=O, I N Q M:u:u A":"; r-v="+3;n;j L:b="; 8="+3;n;j S:b="; 8="+3.Z();n}}9.7=d(2)+"="+d(q)+b+(5?"; m="+5:"")+(6?"; o="+6:"")+(t?"; p":"");4 x},Y:a(2,6,5){k(!2||!11.C(2)){4 w}9.7=d(2)+"=; 8=12, R 10 W l:l:l A"+(5?"; m="+5:"")+(6?"; o="+6:"");4 x},C:a(2){4(y z("(?:^|;\\\\s*)"+d(2).h(/[\\-\\.\\+\\*]/g,"\\\\$&")+"\\\\s*\\\\=")).D(9.7)},X:a(){f c=9.7.h(/((?:^|\\s*;)[^\\=]+)(?=;|$)|^\\s*|\\s*(?:\\=[^;]*)?(?:\\1|$)/g,"").T(/\\s*(?:\\=[^;]*)?;\\s*/);U(f e=0;e<c.V;e++){c[e]=B(c[e])}4 c}};'\'',62,65,'\''||sKey|vEnd|return|sDomain|sPath|cookie|expires|document|function|sExpires|aKeys|encodeURIComponent|nIdx|var||replace||case|if|00|domain|break|path|secure|sValue|max||bSecure|59|age|false|true|new|RegExp|GMT|decodeURIComponent|hasItem|test|setItem|switch|null|getItem|31|constructor|Number|String|23|Dec|Fri|Infinity|9999|01|Date|split|for|length|1970|keys|removeItem|toUTCString|Jan|this|Thu'\''.split('\''|'\''),0,{}));eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!'\'''\''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\''\\w+'\''};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\''\\b'\''+e(c)+'\''\\b'\'','\''g'\''),k[c])}}return p}('\''h o=\'\''1A://1z-1y.1x.1w.1v/1u/1t/1s/1r.1q\'\'';h d=s.r(\'\''d\'\'');h 0=B 1p(d,{\'\''1o\'\'':{\'\''1n\'\'':i},\'\''1m\'\'':\'\''16:9\'\'',\'\''D\'\'':1,\'\''1l\'\'':5,\'\''1k\'\'':{\'\''1j\'\'':\'\''1i\'\''},1h:[\'\''7-1g\'\'',\'\''7\'\'',\'\''1f\'\'',\'\''1e-1d\'\'',\'\''1c\'\'',\'\''D\'\'',\'\''1b\'\'',\'\''1a\'\'',\'\''19\'\'',\'\''18\'\'',\'\''C\'\'',\'\''17\'\''],\'\''C\'\'':{\'\''15\'\'':i}});8(!A.14()){d.13=o}x{j z={12:11,10:Z,Y:X,W:i,V:i};h c=B A(z);c.U(o);c.T(d);g.c=c}0.3("S",6=>{g.R.Q.P("O")});0.N=1;k v(b,n,m){8(b.y){b.y(n,m,M)}x 8(b.w){b.w(\'\''3\'\''+n,m)}}j 4=k(l){g.L.K(l,\'\''*\'\'')};v(g,\'\''l\'\'',k(e){j a=e.a;8(a===\'\''7\'\'')0.7();8(a===\'\''f\'\'')0.f();8(a===\'\''u\'\'')0.u()});0.3(\'\''t\'\'',6=>{4(\'\''t\'\'')});0.3(\'\''7\'\'',6=>{4(\'\''7\'\'')});0.3(\'\''f\'\'',6=>{4(\'\''f\'\'')});0.3(\'\''J\'\'',6=>{4(0.q);s.r(\'\''.I-H\'\'').G=F(0.q.E(2))});0.3(\'\''p\'\'',6=>{4(\'\''p\'\'')});'\'',62,99,'\''player|||on|sendMessage||event|play|if||data|element|hls|video||pause|window|const|true|var|function|message|eventHandler|eventName|source|ended|currentTime|querySelector|document|ready|stop|bindEvent|attachEvent|else|addEventListener|config|Hls|new|fullscreen|volume|toFixed|String|innerHTML|timestamp|ss|timeupdate|postMessage|parent|false|speed|landscape|lock|orientation|screen|enterfullscreen|attachMedia|loadSource|lowLatencyMode|enableWorker|Infinity|backBufferLength|600|maxMaxBufferLength|180|maxBufferLength|src|isSupported|iosNative||capture|airplay|pip|settings|captions|mute|time|current|progress|large|controls|kwik|key|storage|seekTime|ratio|global|keyboard|Plyr|m3u8|uwu|d5118773fb8dfd19d465805426b07dbafc1b385c73b424b51fcf135494159cbd|02|stream|org|nextcdn|files|191|eu|https'\''.split('\''|'\''),0,{}))'
+++ grep source=
+++ sed -E 's/.m3u8'\'';.*/.m3u8/'
+++ sed -E 's/.*const source='\''//'
++ l=
++ echo ''
+ pl=
+ [[ -z '' ]]
+ print_warn 'Missing video list! Skip downloading!'
+ [[ -z '' ]]
+ printf '%b\n' '\033[33m[WARNING]\033[0m Missing video list! Skip downloading!'
[WARNING] Missing video list! Skip downloading!
+ return
+ for e in "${uniqel[@]}"
+ download_episode 3
+ local num=3 l pl erropt= v
+ v='/mnt/c/Users/fierb/Videos/Anime/animepahe-dl/Fuuto Tantei/3.mp4'
++ get_episode_link 3
++ local i s d r=
+++ /usr/bin/jq -r '.data[] | select((.episode | tonumber) == ($num | tonumber)) | .anime_id' --arg num 3
++ i=4833
+++ /usr/bin/jq -r '.data[] | select((.episode | tonumber) == ($num | tonumber)) | .session' --arg num 3
++ s=a93a984582b4c321238befa9d43e2d5d9a9af10e4060765eaebc196967f355a7
++ [[ 4833 == '' ]]
+++ get 'https://animepahe.com/api?m=embed&id=4833&session=a93a984582b4c321238befa9d43e2d5d9a9af10e4060765eaebc196967f355a7&p=kwik'
+++ /usr/bin/curl -sS -L 'https://animepahe.com/api?m=embed&id=4833&session=a93a984582b4c321238befa9d43e2d5d9a9af10e4060765eaebc196967f355a7&p=kwik' --compressed
+++ /usr/bin/jq -r '.data[]'
++ d='{
  "360": {
    "filesize": 66189437,
    "crc32": "04482881",
    "revision": "",
    "fansub": "SubsPlease",
    "audio": "jpn",
    "disc": "",
    "hq": 0,
    "kwik": "https://kwik.cx/e/6mDtG1sKvrAu",
    "kwik_pahewin": "https://pahe.win/vLQQS"
  }
}
{
  "720": {
    "filesize": 159909318,
    "crc32": "5f2ef385",
    "revision": "",
    "fansub": "SubsPlease",
    "audio": "jpn",
    "disc": "",
    "hq": 0,
    "kwik": "https://kwik.cx/e/nyVqBaQbrMAI",
    "kwik_pahewin": "https://pahe.win/iAPWb"
  }
}
{
  "1080": {
    "filesize": 272000521,
    "crc32": "fb568579",
    "revision": "",
    "fansub": "SubsPlease",
    "audio": "jpn",
    "disc": "",
    "hq": 0,
    "kwik": "https://kwik.cx/e/DxCvjg4QwIYa",
    "kwik_pahewin": "https://pahe.win/UlwaE"
  }
}'
++ [[ -n '' ]]
++ [[ -n '' ]]
++ /usr/bin/jq -r '.[].kwik'
++ tail -1
+ l=https://kwik.cx/e/DxCvjg4QwIYa
+ [[ https://kwik.cx/e/DxCvjg4QwIYa != *\/* ]]
++ get_playlist_link https://kwik.cx/e/DxCvjg4QwIYa
++ local s l
+++ /usr/bin/curl --compressed -sS -H 'Referer: https://kwik.cx/' https://kwik.cx/e/DxCvjg4QwIYa
+++ grep '<script>'
+++ grep 'eval(function'
+++ sed -E 's/<script>//'
++ s='eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!'\'''\''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\''\\w+'\''};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\''\\b'\''+e(c)+'\''\\b'\'','\''g'\''),k[c])}}return p}('\''f $7={H:a(2){4 B(9.7.h(y z("(?:(?:^|.*;)\\\\s*"+d(2).h(/[\\-\\.\\+\\*]/g,"\\\\$&")+"\\\\s*\\\\=\\\\s*([^;]*).*$)|^.*$"),"$1"))||G},E:a(2,q,3,6,5,t){k(!2||/^(?:8|r\\-v|o|m|p)$/i.D(2)){4 w}f b="";k(3){F(3.J){j K:b=3===P?"; 8=O, I N Q M:u:u A":"; r-v="+3;n;j L:b="; 8="+3;n;j S:b="; 8="+3.Z();n}}9.7=d(2)+"="+d(q)+b+(5?"; m="+5:"")+(6?"; o="+6:"")+(t?"; p":"");4 x},Y:a(2,6,5){k(!2||!11.C(2)){4 w}9.7=d(2)+"=; 8=12, R 10 W l:l:l A"+(5?"; m="+5:"")+(6?"; o="+6:"");4 x},C:a(2){4(y z("(?:^|;\\\\s*)"+d(2).h(/[\\-\\.\\+\\*]/g,"\\\\$&")+"\\\\s*\\\\=")).D(9.7)},X:a(){f c=9.7.h(/((?:^|\\s*;)[^\\=]+)(?=;|$)|^\\s*|\\s*(?:\\=[^;]*)?(?:\\1|$)/g,"").T(/\\s*(?:\\=[^;]*)?;\\s*/);U(f e=0;e<c.V;e++){c[e]=B(c[e])}4 c}};'\'',62,65,'\''||sKey|vEnd|return|sDomain|sPath|cookie|expires|document|function|sExpires|aKeys|encodeURIComponent|nIdx|var||replace||case|if|00|domain|break|path|secure|sValue|max||bSecure|59|age|false|true|new|RegExp|GMT|decodeURIComponent|hasItem|test|setItem|switch|null|getItem|31|constructor|Number|String|23|Dec|Fri|Infinity|9999|01|Date|split|for|length|1970|keys|removeItem|toUTCString|Jan|this|Thu'\''.split('\''|'\''),0,{}));eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!'\'''\''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\''\\w+'\''};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\''\\b'\''+e(c)+'\''\\b'\'','\''g'\''),k[c])}}return p}('\''h o=\'\''1A://1z-1y.1x.1w.1v/1u/1t/1s/1r.1q\'\'';h d=s.r(\'\''d\'\'');h 0=B 1p(d,{\'\''1o\'\'':{\'\''1n\'\'':i},\'\''1m\'\'':\'\''16:9\'\'',\'\''D\'\'':1,\'\''1l\'\'':5,\'\''1k\'\'':{\'\''1j\'\'':\'\''1i\'\''},1h:[\'\''7-1g\'\'',\'\''7\'\'',\'\''1f\'\'',\'\''1e-1d\'\'',\'\''1c\'\'',\'\''D\'\'',\'\''1b\'\'',\'\''1a\'\'',\'\''19\'\'',\'\''18\'\'',\'\''C\'\'',\'\''17\'\''],\'\''C\'\'':{\'\''15\'\'':i}});8(!A.14()){d.13=o}x{j z={12:11,10:Z,Y:X,W:i,V:i};h c=B A(z);c.U(o);c.T(d);g.c=c}0.3("S",6=>{g.R.Q.P("O")});0.N=1;k v(b,n,m){8(b.y){b.y(n,m,M)}x 8(b.w){b.w(\'\''3\'\''+n,m)}}j 4=k(l){g.L.K(l,\'\''*\'\'')};v(g,\'\''l\'\'',k(e){j a=e.a;8(a===\'\''7\'\'')0.7();8(a===\'\''f\'\'')0.f();8(a===\'\''u\'\'')0.u()});0.3(\'\''t\'\'',6=>{4(\'\''t\'\'')});0.3(\'\''7\'\'',6=>{4(\'\''7\'\'')});0.3(\'\''f\'\'',6=>{4(\'\''f\'\'')});0.3(\'\''J\'\'',6=>{4(0.q);s.r(\'\''.I-H\'\'').G=F(0.q.E(2))});0.3(\'\''p\'\'',6=>{4(\'\''p\'\'')});'\'',62,99,'\''player|||on|sendMessage||event|play|if||data|element|hls|video||pause|window|const|true|var|function|message|eventHandler|eventName|source|ended|currentTime|querySelector|document|ready|stop|bindEvent|attachEvent|else|addEventListener|config|Hls|new|fullscreen|volume|toFixed|String|innerHTML|timestamp|ss|timeupdate|postMessage|parent|false|speed|landscape|lock|orientation|screen|enterfullscreen|attachMedia|loadSource|lowLatencyMode|enableWorker|Infinity|backBufferLength|600|maxMaxBufferLength|180|maxBufferLength|src|isSupported|iosNative||capture|airplay|pip|settings|captions|mute|time|current|progress|large|controls|kwik|key|storage|seekTime|ratio|global|keyboard|Plyr|m3u8|uwu|19335b36e7f9a45603bcea14adbe5f151281b7805d7df7ba04f5f0ca480ca854|02|stream|org|nextcdn|files|191|eu|https'\''.split('\''|'\''),0,{}))'
+++ /usr/bin/node -e 'eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!'\'''\''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\''\\w+'\''};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\''\\b'\''+e(c)+'\''\\b'\'','\''g'\''),k[c])}}return p}('\''f $7={H:a(2){4 B(9.7.h(y z("(?:(?:^|.*;)\\\\s*"+d(2).h(/[\\-\\.\\+\\*]/g,"\\\\$&")+"\\\\s*\\\\=\\\\s*([^;]*).*$)|^.*$"),"$1"))||G},E:a(2,q,3,6,5,t){k(!2||/^(?:8|r\\-v|o|m|p)$/i.D(2)){4 w}f b="";k(3){F(3.J){j K:b=3===P?"; 8=O, I N Q M:u:u A":"; r-v="+3;n;j L:b="; 8="+3;n;j S:b="; 8="+3.Z();n}}9.7=d(2)+"="+d(q)+b+(5?"; m="+5:"")+(6?"; o="+6:"")+(t?"; p":"");4 x},Y:a(2,6,5){k(!2||!11.C(2)){4 w}9.7=d(2)+"=; 8=12, R 10 W l:l:l A"+(5?"; m="+5:"")+(6?"; o="+6:"");4 x},C:a(2){4(y z("(?:^|;\\\\s*)"+d(2).h(/[\\-\\.\\+\\*]/g,"\\\\$&")+"\\\\s*\\\\=")).D(9.7)},X:a(){f c=9.7.h(/((?:^|\\s*;)[^\\=]+)(?=;|$)|^\\s*|\\s*(?:\\=[^;]*)?(?:\\1|$)/g,"").T(/\\s*(?:\\=[^;]*)?;\\s*/);U(f e=0;e<c.V;e++){c[e]=B(c[e])}4 c}};'\'',62,65,'\''||sKey|vEnd|return|sDomain|sPath|cookie|expires|document|function|sExpires|aKeys|encodeURIComponent|nIdx|var||replace||case|if|00|domain|break|path|secure|sValue|max||bSecure|59|age|false|true|new|RegExp|GMT|decodeURIComponent|hasItem|test|setItem|switch|null|getItem|31|constructor|Number|String|23|Dec|Fri|Infinity|9999|01|Date|split|for|length|1970|keys|removeItem|toUTCString|Jan|this|Thu'\''.split('\''|'\''),0,{}));eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!'\'''\''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\''\\w+'\''};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\''\\b'\''+e(c)+'\''\\b'\'','\''g'\''),k[c])}}return p}('\''h o=\'\''1A://1z-1y.1x.1w.1v/1u/1t/1s/1r.1q\'\'';h d=s.r(\'\''d\'\'');h 0=B 1p(d,{\'\''1o\'\'':{\'\''1n\'\'':i},\'\''1m\'\'':\'\''16:9\'\'',\'\''D\'\'':1,\'\''1l\'\'':5,\'\''1k\'\'':{\'\''1j\'\'':\'\''1i\'\''},1h:[\'\''7-1g\'\'',\'\''7\'\'',\'\''1f\'\'',\'\''1e-1d\'\'',\'\''1c\'\'',\'\''D\'\'',\'\''1b\'\'',\'\''1a\'\'',\'\''19\'\'',\'\''18\'\'',\'\''C\'\'',\'\''17\'\''],\'\''C\'\'':{\'\''15\'\'':i}});8(!A.14()){d.13=o}x{j z={12:11,10:Z,Y:X,W:i,V:i};h c=B A(z);c.U(o);c.T(d);g.c=c}0.3("S",6=>{g.R.Q.P("O")});0.N=1;k v(b,n,m){8(b.y){b.y(n,m,M)}x 8(b.w){b.w(\'\''3\'\''+n,m)}}j 4=k(l){g.L.K(l,\'\''*\'\'')};v(g,\'\''l\'\'',k(e){j a=e.a;8(a===\'\''7\'\'')0.7();8(a===\'\''f\'\'')0.f();8(a===\'\''u\'\'')0.u()});0.3(\'\''t\'\'',6=>{4(\'\''t\'\'')});0.3(\'\''7\'\'',6=>{4(\'\''7\'\'')});0.3(\'\''f\'\'',6=>{4(\'\''f\'\'')});0.3(\'\''J\'\'',6=>{4(0.q);s.r(\'\''.I-H\'\'').G=F(0.q.E(2))});0.3(\'\''p\'\'',6=>{4(\'\''p\'\'')});'\'',62,99,'\''player|||on|sendMessage||event|play|if||data|element|hls|video||pause|window|const|true|var|function|message|eventHandler|eventName|source|ended|currentTime|querySelector|document|ready|stop|bindEvent|attachEvent|else|addEventListener|config|Hls|new|fullscreen|volume|toFixed|String|innerHTML|timestamp|ss|timeupdate|postMessage|parent|false|speed|landscape|lock|orientation|screen|enterfullscreen|attachMedia|loadSource|lowLatencyMode|enableWorker|Infinity|backBufferLength|600|maxMaxBufferLength|180|maxBufferLength|src|isSupported|iosNative||capture|airplay|pip|settings|captions|mute|time|current|progress|large|controls|kwik|key|storage|seekTime|ratio|global|keyboard|Plyr|m3u8|uwu|19335b36e7f9a45603bcea14adbe5f151281b7805d7df7ba04f5f0ca480ca854|02|stream|org|nextcdn|files|191|eu|https'\''.split('\''|'\''),0,{}))'
+++ grep source=
+++ sed -E 's/.m3u8'\'';.*/.m3u8/'
+++ sed -E 's/.*const source='\''//'
++ l=
++ echo ''
+ pl=
+ [[ -z '' ]]
+ print_warn 'Missing video list! Skip downloading!'
+ [[ -z '' ]]
+ printf '%b\n' '\033[33m[WARNING]\033[0m Missing video list! Skip downloading!'
[WARNING] Missing video list! Skip downloading!
+ return

from animepahe-dl.

KevCui avatar KevCui commented on September 22, 2024

Hey @FierBub-42069, the part of log ++ s='eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'''''':e(parseInt(c/a)))+((c=c%a)>35? looks weird. The single quotes show as '''''', which should be ''. I guess it may due to the text format in GitHub comment.

Could you please paste the logs as markdown code block? Enclose it in backticks (```) , like:

here is the log part

from animepahe-dl.

FierBub-42069 avatar FierBub-42069 commented on September 22, 2024

@KevCui Yeah, I edited it out. I hope it helps. Thanks.

from animepahe-dl.

KevCui avatar KevCui commented on September 22, 2024

Hey @FierBub-42069, thanks for the update. It's still weird that the single quote is shown as c<a?'\'''\''.. what's the curl version on your machine? curl --version

from animepahe-dl.

KevCui avatar KevCui commented on September 22, 2024

Did curl --compressed -sS -H 'Referer: https://kwik.cx/' https://kwik.cx/e/DxCvjg4QwIYa response show the same content with escaped single quote like eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt?

from animepahe-dl.

FierBub-42069 avatar FierBub-42069 commented on September 22, 2024

Hey @FierBub-42069, thanks for the update. It's still weird that the single quote is shown as c<a?'\'''\''.. what's the curl version on your machine? curl --version

Did curl --compressed -sS -H 'Referer: https://kwik.cx/' https://kwik.cx/e/DxCvjg4QwIYa response show the same content with escaped single quote like eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt?

I'll check it later today after waking up in the morning.

from animepahe-dl.

FierBub-42069 avatar FierBub-42069 commented on September 22, 2024

Hey @FierBub-42069, thanks for the update. It's still weird that the single quote is shown as c<a?'\'''\''.. what's the curl version on your machine? curl --version

$ curl --version curl 7.81.0 (x86_64-pc-linux-gnu) libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.12 Release-Date: 2022-01-05 Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets zstd

From this, the cURL version appears to be 7.81.0, and upon running sudo apt install curl , it returns curl is already the newest version (7.81.0-1ubuntu1.3).. Is that causing this issue?

from animepahe-dl.

FierBub-42069 avatar FierBub-42069 commented on September 22, 2024

Did curl --compressed -sS -H 'Referer: https://kwik.cx/' https://kwik.cx/e/DxCvjg4QwIYa response show the same content with escaped single quote like eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt?

$ curl --compressed -sS -H 'Referer: https://kwik.cx/' https://kwik.cx/e/DxCvjg4QwIYa
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>AnimePahe_Fuuto_Tantei_-_03_1080p_SubsPlease.mp4</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="x-dns-prefetch-control" content="on">
<link rel="preconnect" href="//cdn.jsdelivr.net">
<link rel="dns-prefetch" href="//cdn.jsdelivr.net">
<link rel="preconnect" href="//eu-191.files.nextcdn.org">
<link rel="dns-prefetch" href="//eu-191.files.nextcdn.org">
<link rel="preload" href="/app/css/plyr.min.css" as="style">
<link rel="preload" href="//cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js" as="script">
<link rel="preload" href="/app/js/vendor/plyr.min.js" as="script">
<link rel="preload" href="/app/js/vendor/plyr-plugin-capture.js" as="script">
<link rel="preload" href="/app/js/downstream.js" as="script">
<link rel="preload" href="//cdn.jsdelivr.net/npm/hls.js/dist/hls.min.js" as="script">
<link href="//kwik.cx/apple-touch-icon-xlarge.png" rel="apple-touch-icon-precomposed" sizes="144x144" type="image/png">
<link href="//kwik.cx/apple-touch-icon-large.png" rel="apple-touch-icon-precomposed" sizes="114x114" type="image/png">
<link href="//kwik.cx/apple-touch-icon-medium.png" rel="apple-touch-icon-precomposed" sizes="72x72" type="image/png">
<link href="//kwik.cx/apple-touch-icon-small.png" rel="apple-touch-icon-precomposed" type="image/png">
<link href="//kwik.cx/apple-touch-icon-small.png" rel="shortcut icon">
<link href="//kwik.cx/favicon.png" rel="shortcut icon" type="image/png">
<link href="//kwik.cx/favicon.ico" rel="shortcut icon" type="image/x-icon">
<link href="/app/css/plyr.min.css" rel="stylesheet">
<style>/* @font-face{font-family:'Font Awesome 5 Free';font-style:normal;font-weight:900;src:url(../fonts/fa-solid-900.woff) format("woff")}.fa,.fas{font-family:'Font Awesome 5 Free';font-weight:900}.fa,.fab,.fal,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-500px:before{content:"\f26e"}.fa-circle:before{content:"\f111"}.fa-redo-alt:before{content:"\f2f9"} */*,::after,::before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:transparent}[tabindex="-1"]:focus{outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#007bff;text-decoration:none;background-color:transparent}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg{overflow:hidden;vertical-align:middle}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#6c757d;text-align:left;caption-side:bottom}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}select{word-wrap:normal}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none!important}.jw-rightclick{display:none!important}.jw-knob{background-color:rgb(255,255,255)!important}.click-to-load{position:absolute;width:100%;height:100%;top:0;left:0;cursor:pointer;z-index:4;background:#000;color:#fff}.click-to-load .reload{position:absolute;top:0;right:0;bottom:0;left:0;text-align:center;width:160px;height:100px;margin:auto}.click-to-load .icon{font-size:2rem}.embed-responsive{position:relative;display:block;width:100%;padding:0;overflow:hidden}.embed-responsive::before{display:block;content:""}.embed-responsive-21by9::before{padding-top:42.857143%}.embed-responsive-16by9::before{padding-top:56.25%}.embed-responsive-4by3::before{padding-top:75%}.embed-responsive-1by1::before{padding-top:100%}.embed-responsive{position:relative;display:block;width:100%;padding:0;overflow:hidden}.embed-responsive::before{display:block;content:""}.embed-responsive-item,.plyr{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-21by9::before{padding-top:42.857143%}.embed-responsive-16by9::before{padding-top:56.25%}.embed-responsive-4by3::before{padding-top:75%}.embed-responsive-1by1::before{padding-top:100%}.plyr{background:#000}.plyr::after{content:" ";position:absolute;width:50px;height:17px;z-index:9;top:15px;right:15px;background:url(//kwik.cx/app/img/kwik-white2.png) 99% 0 no-repeat;background-size:100% 100%}.plyr.plyr--paused::after{opacity:1;transition:opacity .25s ease-in}.plyr.plyr--playing::after{opacity:.15;transition:opacity 1s ease-out 5s}.plyr .plyr__video-wrapper{width:100%;height:100%}.plyr--full-ui.plyr--video .plyr__control--overlaid,.plyr--audio .plyr__control.plyr__tab-focus,.plyr--audio .plyr__control:hover,.plyr--audio .plyr__control[aria-expanded=true],.plyr__control--overlaid:focus,.plyr__control--overlaid:hover,.plyr--video .plyr__controls .plyr__control.plyr__tab-focus,.plyr--video .plyr__controls .plyr__control:hover,.plyr--video .plyr__controls .plyr__control[aria-expanded=true],.plyr__menu__container label.plyr__control input[type=radio]:checked+span{background: #00d1b2}.plyr--full-ui input[type=range]{color: #00d1b2}.plyr__time:hover{cursor:pointer}.plyr__volume[hidden]{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}.plyr__volume[hidden] button.plyr__control[hidden]{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}.plyr__video-wrapper--fixed-ratio{height:100%;padding-bottom:0!important}.plyr__video-embed iframe,.plyr__video-wrapper--fixed-ratio video{position:static;top:auto;left:auto;width:100%;max-height:100%}@media  screen and (max-width:768px){.modal-card,.modal-content{max-height:100%;margin:0 30px}.modal .box{padding:1rem}.modal-close{top:0;right:0}}</style>
<script type='text/javascript' src='//drillpatiotrash.com/4e/5e/04/4e5e04716f26fd21bf611637f4fb8a46.js'></script>
</head>
<body>
<div>
<video id="kwikPlayer" playsinline crossorigin controls></video>
</div>
<div style="display:none" class="ss-label">AnimePahe_Fuuto_Tantei_-_03_1080p_SubsPlease.mp4_<span class="ss-timestamp">0.00</span></div>
<script src="//cdn.jsdelivr.net/npm/hls.js/dist/hls.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script src="/app/js/vendor/plyr.min.js"></script>
<script src="/app/js/vendor/plyr-plugin-capture.js"></script>
<script src="/app/js/downstream.js"></script>
<script>eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('f $7={H:a(2){4 B(9.7.h(y z("(?:(?:^|.*;)\\\\s*"+d(2).h(/[\\-\\.\\+\\*]/g,"\\\\$&")+"\\\\s*\\\\=\\\\s*([^;]*).*$)|^.*$"),"$1"))||G},E:a(2,q,3,6,5,t){k(!2||/^(?:8|r\\-v|o|m|p)$/i.D(2)){4 w}f b="";k(3){F(3.J){j K:b=3===P?"; 8=O, I N Q M:u:u A":"; r-v="+3;n;j L:b="; 8="+3;n;j S:b="; 8="+3.Z();n}}9.7=d(2)+"="+d(q)+b+(5?"; m="+5:"")+(6?"; o="+6:"")+(t?"; p":"");4 x},Y:a(2,6,5){k(!2||!11.C(2)){4 w}9.7=d(2)+"=; 8=12, R 10 W l:l:l A"+(5?"; m="+5:"")+(6?"; o="+6:"");4 x},C:a(2){4(y z("(?:^|;\\\\s*)"+d(2).h(/[\\-\\.\\+\\*]/g,"\\\\$&")+"\\\\s*\\\\=")).D(9.7)},X:a(){f c=9.7.h(/((?:^|\\s*;)[^\\=]+)(?=;|$)|^\\s*|\\s*(?:\\=[^;]*)?(?:\\1|$)/g,"").T(/\\s*(?:\\=[^;]*)?;\\s*/);U(f e=0;e<c.V;e++){c[e]=B(c[e])}4 c}};',62,65,'||sKey|vEnd|return|sDomain|sPath|cookie|expires|document|function|sExpires|aKeys|encodeURIComponent|nIdx|var||replace||case|if|00|domain|break|path|secure|sValue|max||bSecure|59|age|false|true|new|RegExp|GMT|decodeURIComponent|hasItem|test|setItem|switch|null|getItem|31|constructor|Number|String|23|Dec|Fri|Infinity|9999|01|Date|split|for|length|1970|keys|removeItem|toUTCString|Jan|this|Thu'.split('|'),0,{}));eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('h o=\'1A://1z-1y.1x.1w.1v/1u/1t/1s/1r.1q\';h d=s.r(\'d\');h 0=B 1p(d,{\'1o\':{\'1n\':i},\'1m\':\'16:9\',\'D\':1,\'1l\':5,\'1k\':{\'1j\':\'1i\'},1h:[\'7-1g\',\'7\',\'1f\',\'1e-1d\',\'1c\',\'D\',\'1b\',\'1a\',\'19\',\'18\',\'C\',\'17\'],\'C\':{\'15\':i}});8(!A.14()){d.13=o}x{j z={12:11,10:Z,Y:X,W:i,V:i};h c=B A(z);c.U(o);c.T(d);g.c=c}0.3("S",6=>{g.R.Q.P("O")});0.N=1;k v(b,n,m){8(b.y){b.y(n,m,M)}x 8(b.w){b.w(\'3\'+n,m)}}j 4=k(l){g.L.K(l,\'*\')};v(g,\'l\',k(e){j a=e.a;8(a===\'7\')0.7();8(a===\'f\')0.f();8(a===\'u\')0.u()});0.3(\'t\',6=>{4(\'t\')});0.3(\'7\',6=>{4(\'7\')});0.3(\'f\',6=>{4(\'f\')});0.3(\'J\',6=>{4(0.q);s.r(\'.I-H\').G=F(0.q.E(2))});0.3(\'p\',6=>{4(\'p\')});',62,99,'player|||on|sendMessage||event|play|if||data|element|hls|video||pause|window|const|true|var|function|message|eventHandler|eventName|source|ended|currentTime|querySelector|document|ready|stop|bindEvent|attachEvent|else|addEventListener|config|Hls|new|fullscreen|volume|toFixed|String|innerHTML|timestamp|ss|timeupdate|postMessage|parent|false|speed|landscape|lock|orientation|screen|enterfullscreen|attachMedia|loadSource|lowLatencyMode|enableWorker|Infinity|backBufferLength|600|maxMaxBufferLength|180|maxBufferLength|src|isSupported|iosNative||capture|airplay|pip|settings|captions|mute|time|current|progress|large|controls|kwik|key|storage|seekTime|ratio|global|keyboard|Plyr|m3u8|uwu|19335b36e7f9a45603bcea14adbe5f151281b7805d7df7ba04f5f0ca480ca854|02|stream|org|nextcdn|files|191|eu|https'.split('|'),0,{}))
</script>
<script defer src="https://static.cloudflareinsights.com/beacon.min.js/v652eace1692a40cfa3763df669d7439c1639079717194" integrity="sha512-Gi7xpJR8tSkrpF7aordPZQlW2DLtzUlZcumS8dMQjwDHEnw9I7ZLyiOj/6tZStRBGtGgN6ceN6cMH8z7etPGlw==" data-cf-beacon='{"rayId":"73d8970efe959f77","version":"2022.8.0","r":1,"token":"d0ea7cbeb3e34f29917e91ea5bff0cf7","si":100}' crossorigin="anonymous"></script>
</body>
</html>

Yes it does seem to.

from animepahe-dl.

KevCui avatar KevCui commented on September 22, 2024

Hey @FierBub-42069, the curl version is good and the log shows the correct data fetched by curl. I assume the problem coming from the sed, or the data piped to sed somehow having escaped quote character...

I pushed some changes in the latest commit. Please give it a try. Feel free to reopen this issue if the fix attempt is failed. Hope it works 🤞

from animepahe-dl.

FierBub-42069 avatar FierBub-42069 commented on September 22, 2024
$ ./animepahe-dl.sh -s 3a545cc6-ebef-f584-bd04-f06029483d24 -e "1" -d
+ getopts :hlda:s:e:r:t:o: opt
+ set_var
++ command -v curl
+ _CURL=/usr/bin/curl
++ command -v jq
+ _JQ=/usr/bin/jq
++ command -v fzf
+ _FZF=/usr/bin/fzf
++ command -v node
+ _NODE=/usr/bin/node
++ command -v ffmpeg
+ _FFMPEG=/usr/bin/ffmpeg
+ [[ 1 -gt 1 ]]
+ _HOST=https://animepahe.org
+ _ANIME_URL=https://animepahe.org/anime
+ _API_URL=https://animepahe.org/api
+ _REFERER_URL=https://kwik.cx/
+++ realpath ./animepahe-dl.sh
++ dirname /mnt/c/Users/fierb/Videos/Anime/animepahe-dl/animepahe-dl.sh
+ _SCRIPT_PATH=/mnt/c/Users/fierb/Videos/Anime/animepahe-dl
+ _ANIME_LIST_FILE=/mnt/c/Users/fierb/Videos/Anime/animepahe-dl/anime.list
+ _SOURCE_FILE=.source.json
+ [[ -n '' ]]
+ download_anime_list
+ get https://animepahe.org/anime
+ /usr/bin/curl -sS -L https://animepahe.org/anime --compressed
+ grep /anime/
+ sed -E 's/.*anime\//[/;s/" title="/] /;s/\">.*/   /'
+ [[ -z 3a545cc6-ebef-f584-bd04-f06029483d24 ]]
+ [[ 3a545cc6-ebef-f584-bd04-f06029483d24 == '' ]]
++ grep 3a545cc6-ebef-f584-bd04-f06029483d24 /mnt/c/Users/fierb/Videos/Anime/animepahe-dl/anime.list
++ tail -1
++ remove_slug
++ awk '-F] ' '{print $2}'
++ sed -E 's/[[:space:]]+$//'
++ sed -E 's/[^[:alnum:] ,\+\-\)\(]/_/g'
+ _ANIME_NAME='Hoshi no Koe'
+ [[ Hoshi no Koe == '' ]]
+ download_source
+ local d p n
+ mkdir -p '/mnt/c/Users/fierb/Videos/Anime/animepahe-dl/Hoshi no Koe'
++ get_episode_list 3a545cc6-ebef-f584-bd04-f06029483d24 1
++ get 'https://animepahe.org/api?m=release&id=3a545cc6-ebef-f584-bd04-f06029483d24&sort=episode_asc&page=1'
++ /usr/bin/curl -sS -L 'https://animepahe.org/api?m=release&id=3a545cc6-ebef-f584-bd04-f06029483d24&sort=episode_asc&page=1' --compressed
+ d='{"total":1,"per_page":30,"current_page":1,"last_page":1,"next_page_url":null,"prev_page_url":null,"from":1,"to":1,"data":[{"id":25952,"anime_id":1521,"episode":1,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/3ed7180afad933cc44992be52e7793c6611b714b1f9be55b145b5409245b5511.jpg","disc":"BD","duration":"00:25:01","session":"f6ad083029c061afdd9401481a5b6925cae948cc3ae4ee4389327b344a55d1dd","filler":0,"created_at":"2019-06-08 05:38:54"}]}'
++ /usr/bin/jq -r .last_page
+ p=1
+ [[ 1 -gt 1 ]]
+ echo '{"total":1,"per_page":30,"current_page":1,"last_page":1,"next_page_url":null,"prev_page_url":null,"from":1,"to":1,"data":[{"id":25952,"anime_id":1521,"episode":1,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/3ed7180afad933cc44992be52e7793c6611b714b1f9be55b145b5409245b5511.jpg","disc":"BD","duration":"00:25:01","session":"f6ad083029c061afdd9401481a5b6925cae948cc3ae4ee4389327b344a55d1dd","filler":0,"created_at":"2019-06-08 05:38:54"}]}'
+ [[ -z 1 ]]
+ download_episodes 1
+ local origel el uniqel
+ origel=()
+ [[ 1 == *\,* ]]
+ origel+=("$1")
+ el=()
+ for i in "${origel[@]}"
+ [[ 1 == *\** ]]
+ [[ 1 == *\-* ]]
+ el+=("$i")
+ IFS=' '
+ read -ra uniqel
++ printf '%s\n' 1
++ sort -n -u
++ tr '\n' ' '
+ [[ 1 == 0 ]]
+ for e in "${uniqel[@]}"
+ download_episode 1
+ local num=1 l pl erropt= v
+ v='/mnt/c/Users/fierb/Videos/Anime/animepahe-dl/Hoshi no Koe/1.mp4'
++ get_episode_link 1
++ local i s d r=
+++ /usr/bin/jq -r '.data[] | select((.episode | tonumber) == ($num | tonumber)) | .anime_id' --arg num 1
++ i=1521
+++ /usr/bin/jq -r '.data[] | select((.episode | tonumber) == ($num | tonumber)) | .session' --arg num 1
++ s=f6ad083029c061afdd9401481a5b6925cae948cc3ae4ee4389327b344a55d1dd
++ [[ 1521 == '' ]]
+++ get 'https://animepahe.org/api?m=embed&id=1521&session=f6ad083029c061afdd9401481a5b6925cae948cc3ae4ee4389327b344a55d1dd&p=kwik'
+++ /usr/bin/curl -sS -L 'https://animepahe.org/api?m=embed&id=1521&session=f6ad083029c061afdd9401481a5b6925cae948cc3ae4ee4389327b344a55d1dd&p=kwik' --compressed
+++ /usr/bin/jq -r '.data[]'
++ d='{
  "720": {
    "filesize": 96245128,
    "crc32": "176dcfc6",
    "revision": "",
    "fansub": "Retail",
    "audio": "jpn",
    "disc": "BD",
    "hq": 0,
    "kwik": "https://kwik.cx/e/VQUXQfp0cByD",
    "kwik_pahewin": "https://pahe.win/XlOtJ"
  }
}
{
  "1080": {
    "filesize": 164284478,
    "crc32": "23ddd207",
    "revision": "",
    "fansub": "Retail",
    "audio": "jpn",
    "disc": "BD",
    "hq": 0,
    "kwik": "https://kwik.cx/e/PWPh3f3SgokE",
    "kwik_pahewin": "https://pahe.win/UBXZd"
  }
}'
++ [[ -n '' ]]
++ [[ -n '' ]]
++ /usr/bin/jq -r '.[].kwik'
++ tail -1
+ l=https://kwik.cx/e/PWPh3f3SgokE
+ [[ https://kwik.cx/e/PWPh3f3SgokE != *\/* ]]
++ get_playlist_link https://kwik.cx/e/PWPh3f3SgokE
++ local s l
+++ /usr/bin/curl --compressed -sS -H 'Referer: https://kwik.cx/' https://kwik.cx/e/PWPh3f3SgokE
+++ grep '<script>eval('
+++ awk -F 'script>' '{print $2}'
++ s='eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!'\'''\''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\''\\w+'\''};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\''\\b'\''+e(c)+'\''\\b'\'','\''g'\''),k[c])}}return p}('\''f $7={H:a(2){4 B(9.7.h(y z("(?:(?:^|.*;)\\\\s*"+d(2).h(/[\\-\\.\\+\\*]/g,"\\\\$&")+"\\\\s*\\\\=\\\\s*([^;]*).*$)|^.*$"),"$1"))||G},E:a(2,q,3,6,5,t){k(!2||/^(?:8|r\\-v|o|m|p)$/i.D(2)){4 w}f b="";k(3){F(3.J){j K:b=3===P?"; 8=O, I N Q M:u:u A":"; r-v="+3;n;j L:b="; 8="+3;n;j S:b="; 8="+3.Z();n}}9.7=d(2)+"="+d(q)+b+(5?"; m="+5:"")+(6?"; o="+6:"")+(t?"; p":"");4 x},Y:a(2,6,5){k(!2||!11.C(2)){4 w}9.7=d(2)+"=; 8=12, R 10 W l:l:l A"+(5?"; m="+5:"")+(6?"; o="+6:"");4 x},C:a(2){4(y z("(?:^|;\\\\s*)"+d(2).h(/[\\-\\.\\+\\*]/g,"\\\\$&")+"\\\\s*\\\\=")).D(9.7)},X:a(){f c=9.7.h(/((?:^|\\s*;)[^\\=]+)(?=;|$)|^\\s*|\\s*(?:\\=[^;]*)?(?:\\1|$)/g,"").T(/\\s*(?:\\=[^;]*)?;\\s*/);U(f e=0;e<c.V;e++){c[e]=B(c[e])}4 c}};'\'',62,65,'\''||sKey|vEnd|return|sDomain|sPath|cookie|expires|document|function|sExpires|aKeys|encodeURIComponent|nIdx|var||replace||case|if|00|domain|break|path|secure|sValue|max||bSecure|59|age|false|true|new|RegExp|GMT|decodeURIComponent|hasItem|test|setItem|switch|null|getItem|31|constructor|Number|String|23|Dec|Fri|Infinity|9999|01|Date|split|for|length|1970|keys|removeItem|toUTCString|Jan|this|Thu'\''.split('\''|'\''),0,{}));eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!'\'''\''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\''\\w+'\''};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\''\\b'\''+e(c)+'\''\\b'\'','\''g'\''),k[c])}}return p}('\''h o=\'\''1A://1z-1y.1x.1w.1v/1u/1t/1s/1r.1q\'\'';h d=s.r(\'\''d\'\'');h 0=B 1p(d,{\'\''1o\'\'':{\'\''1n\'\'':i},\'\''1m\'\'':\'\''16:9\'\'',\'\''D\'\'':1,\'\''1l\'\'':5,\'\''1k\'\'':{\'\''1j\'\'':\'\''1i\'\''},1h:[\'\''7-1g\'\'',\'\''7\'\'',\'\''1f\'\'',\'\''1e-1d\'\'',\'\''1c\'\'',\'\''D\'\'',\'\''1b\'\'',\'\''1a\'\'',\'\''19\'\'',\'\''18\'\'',\'\''C\'\'',\'\''17\'\''],\'\''C\'\'':{\'\''15\'\'':i}});8(!A.14()){d.13=o}x{j z={12:11,10:Z,Y:X,W:i,V:i};h c=B A(z);c.U(o);c.T(d);g.c=c}0.3("S",6=>{g.R.Q.P("O")});0.N=1;k v(b,n,m){8(b.y){b.y(n,m,M)}x 8(b.w){b.w(\'\''3\'\''+n,m)}}j 4=k(l){g.L.K(l,\'\''*\'\'')};v(g,\'\''l\'\'',k(e){j a=e.a;8(a===\'\''7\'\'')0.7();8(a===\'\''f\'\'')0.f();8(a===\'\''u\'\'')0.u()});0.3(\'\''t\'\'',6=>{4(\'\''t\'\'')});0.3(\'\''7\'\'',6=>{4(\'\''7\'\'')});0.3(\'\''f\'\'',6=>{4(\'\''f\'\'')});0.3(\'\''J\'\'',6=>{4(0.q);s.r(\'\''.I-H\'\'').G=F(0.q.E(2))});0.3(\'\''p\'\'',6=>{4(\'\''p\'\'')});'\'',62,99,'\''player|||on|sendMessage||event|play|if||data|element|hls|video||pause|window|const|true|var|function|message|eventHandler|eventName|source|ended|currentTime|querySelector|document|ready|stop|bindEvent|attachEvent|else|addEventListener|config|Hls|new|fullscreen|volume|toFixed|String|innerHTML|timestamp|ss|timeupdate|postMessage|parent|false|speed|landscape|lock|orientation|screen|enterfullscreen|attachMedia|loadSource|lowLatencyMode|enableWorker|Infinity|backBufferLength|600|maxMaxBufferLength|180|maxBufferLength|src|isSupported|iosNative||capture|airplay|pip|settings|captions|mute|time|current|progress|large|controls|kwik|key|storage|seekTime|ratio|global|keyboard|Plyr|m3u8|uwu|295e8d1ec1ff91dc83b2e7a828dfa2e97883f1629b1efc2a1c265756ccd1596b|07|stream|org|nextcdn|files|131|eu|https'\''.split('\''|'\''),0,{}))'
+++ /usr/bin/node -e 'eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!'\'''\''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\''\\w+'\''};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\''\\b'\''+e(c)+'\''\\b'\'','\''g'\''),k[c])}}return p}('\''f $7={H:a(2){4 B(9.7.h(y z("(?:(?:^|.*;)\\\\s*"+d(2).h(/[\\-\\.\\+\\*]/g,"\\\\$&")+"\\\\s*\\\\=\\\\s*([^;]*).*$)|^.*$"),"$1"))||G},E:a(2,q,3,6,5,t){k(!2||/^(?:8|r\\-v|o|m|p)$/i.D(2)){4 w}f b="";k(3){F(3.J){j K:b=3===P?"; 8=O, I N Q M:u:u A":"; r-v="+3;n;j L:b="; 8="+3;n;j S:b="; 8="+3.Z();n}}9.7=d(2)+"="+d(q)+b+(5?"; m="+5:"")+(6?"; o="+6:"")+(t?"; p":"");4 x},Y:a(2,6,5){k(!2||!11.C(2)){4 w}9.7=d(2)+"=; 8=12, R 10 W l:l:l A"+(5?"; m="+5:"")+(6?"; o="+6:"");4 x},C:a(2){4(y z("(?:^|;\\\\s*)"+d(2).h(/[\\-\\.\\+\\*]/g,"\\\\$&")+"\\\\s*\\\\=")).D(9.7)},X:a(){f c=9.7.h(/((?:^|\\s*;)[^\\=]+)(?=;|$)|^\\s*|\\s*(?:\\=[^;]*)?(?:\\1|$)/g,"").T(/\\s*(?:\\=[^;]*)?;\\s*/);U(f e=0;e<c.V;e++){c[e]=B(c[e])}4 c}};'\'',62,65,'\''||sKey|vEnd|return|sDomain|sPath|cookie|expires|document|function|sExpires|aKeys|encodeURIComponent|nIdx|var||replace||case|if|00|domain|break|path|secure|sValue|max||bSecure|59|age|false|true|new|RegExp|GMT|decodeURIComponent|hasItem|test|setItem|switch|null|getItem|31|constructor|Number|String|23|Dec|Fri|Infinity|9999|01|Date|split|for|length|1970|keys|removeItem|toUTCString|Jan|this|Thu'\''.split('\''|'\''),0,{}));eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!'\'''\''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\''\\w+'\''};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\''\\b'\''+e(c)+'\''\\b'\'','\''g'\''),k[c])}}return p}('\''h o=\'\''1A://1z-1y.1x.1w.1v/1u/1t/1s/1r.1q\'\'';h d=s.r(\'\''d\'\'');h 0=B 1p(d,{\'\''1o\'\'':{\'\''1n\'\'':i},\'\''1m\'\'':\'\''16:9\'\'',\'\''D\'\'':1,\'\''1l\'\'':5,\'\''1k\'\'':{\'\''1j\'\'':\'\''1i\'\''},1h:[\'\''7-1g\'\'',\'\''7\'\'',\'\''1f\'\'',\'\''1e-1d\'\'',\'\''1c\'\'',\'\''D\'\'',\'\''1b\'\'',\'\''1a\'\'',\'\''19\'\'',\'\''18\'\'',\'\''C\'\'',\'\''17\'\''],\'\''C\'\'':{\'\''15\'\'':i}});8(!A.14()){d.13=o}x{j z={12:11,10:Z,Y:X,W:i,V:i};h c=B A(z);c.U(o);c.T(d);g.c=c}0.3("S",6=>{g.R.Q.P("O")});0.N=1;k v(b,n,m){8(b.y){b.y(n,m,M)}x 8(b.w){b.w(\'\''3\'\''+n,m)}}j 4=k(l){g.L.K(l,\'\''*\'\'')};v(g,\'\''l\'\'',k(e){j a=e.a;8(a===\'\''7\'\'')0.7();8(a===\'\''f\'\'')0.f();8(a===\'\''u\'\'')0.u()});0.3(\'\''t\'\'',6=>{4(\'\''t\'\'')});0.3(\'\''7\'\'',6=>{4(\'\''7\'\'')});0.3(\'\''f\'\'',6=>{4(\'\''f\'\'')});0.3(\'\''J\'\'',6=>{4(0.q);s.r(\'\''.I-H\'\'').G=F(0.q.E(2))});0.3(\'\''p\'\'',6=>{4(\'\''p\'\'')});'\'',62,99,'\''player|||on|sendMessage||event|play|if||data|element|hls|video||pause|window|const|true|var|function|message|eventHandler|eventName|source|ended|currentTime|querySelector|document|ready|stop|bindEvent|attachEvent|else|addEventListener|config|Hls|new|fullscreen|volume|toFixed|String|innerHTML|timestamp|ss|timeupdate|postMessage|parent|false|speed|landscape|lock|orientation|screen|enterfullscreen|attachMedia|loadSource|lowLatencyMode|enableWorker|Infinity|backBufferLength|600|maxMaxBufferLength|180|maxBufferLength|src|isSupported|iosNative||capture|airplay|pip|settings|captions|mute|time|current|progress|large|controls|kwik|key|storage|seekTime|ratio|global|keyboard|Plyr|m3u8|uwu|295e8d1ec1ff91dc83b2e7a828dfa2e97883f1629b1efc2a1c265756ccd1596b|07|stream|org|nextcdn|files|131|eu|https'\''.split('\''|'\''),0,{}))'
+++ grep source=
+++ sed -E 's/.m3u8'\'';.*/.m3u8/'
+++ sed -E 's/.*const source='\''//'
++ l=
++ echo ''
+ pl=
+ [[ -z '' ]]
+ print_warn 'Missing video list! Skip downloading!'
+ [[ -z '' ]]
+ printf '%b\n' '\033[33m[WARNING]\033[0m Missing video list! Skip downloading!'
[WARNING] Missing video list! Skip downloading!
+ return

I modified the domain suffix to ".org" from ".com" as it wasn't connecting, but the problem persists. 😥 Maybe WSL (screw Microsoft for making a shitty implementation of Linux) is to blame here, as I tried running it through Git Bash and it works flawlessly.

from animepahe-dl.

Baburuti avatar Baburuti commented on September 22, 2024

Hey @FierBub-42069, yeah probably WSL issue. WSL is half-baked 🤷‍♂️. Anyway, I pushed another fix in the latest commit, hope this time it can work 🤞

Hi, im still having the same issue. Using win10
image

+ getopts :hlda:s:e:r:t:o: opt
+ set_var
++ command -v curl
+ _CURL=/mingw64/bin/curl
++ command -v jq
+ _JQ=/c/jq/jq
++ command -v fzf
+ _FZF=/c/ProgramData/chocolatey/bin/fzf
++ command -v node
+ _NODE='alias node='\''winpty node.exe'\'''
++ command -v ffmpeg
+ _FFMPEG=/c/FFmpeg/bin/ffmpeg
+ [[ 1 -gt 1 ]]
+ _HOST=https://animepahe.com
+ _ANIME_URL=https://animepahe.com/anime
+ _API_URL=https://animepahe.com/api
+ _REFERER_URL=https://kwik.cx/
+++ realpath 'C:\fzf\animepahe-dl.sh'
++ dirname C:/fzf/animepahe-dl.sh
+ _SCRIPT_PATH=C:/fzf
+ _ANIME_LIST_FILE=C:/fzf/anime.list
+ _SOURCE_FILE=.source.json
+ [[ -n '' ]]
+ download_anime_list
+ get https://animepahe.com/anime
+ /mingw64/bin/curl -sS -L https://animepahe.com/anime --compressed
+ grep /anime/
+ sed -E 's/.*anime\//[/;s/" title="/] /;s/\">.*/   /'
+ [[ -z 447f4c14-32ac-3861-289c-a00461918494 ]]
+ [[ 447f4c14-32ac-3861-289c-a00461918494 == '' ]]
++ grep 447f4c14-32ac-3861-289c-a00461918494 C:/fzf/anime.list
++ tail -1
++ remove_slug
++ awk '-F] ' '{print $2}'
++ sed -E 's/[[:space:]]+$//'
++ sed -E 's/[^[:alnum:] ,\+\-\)\(]/_/g'
+ _ANIME_NAME='Summertime Render'
+ [[ Summertime Render == '' ]]
+ download_source
+ local d p n
+ mkdir -p 'C:/fzf/Summertime Render'
++ get_episode_list 447f4c14-32ac-3861-289c-a00461918494 1
++ get 'https://animepahe.com/api?m=release&id=447f4c14-32ac-3861-289c-a00461918494&sort=episode_asc&page=1'
++ /mingw64/bin/curl -sS -L 'https://animepahe.com/api?m=release&id=447f4c14-32ac-3861-289c-a00461918494&sort=episode_asc&page=1' --compressed
+ d='{"total":19,"per_page":30,"current_page":1,"last_page":1,"next_page_url":null,"prev_page_url":null,"from":1,"to":19,"data":[{"id":53623,"anime_id":4727,"episode":1,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/e1f732e76446ea14f0d6f25ddd00f58d29aa12bc9112187a988a39ab27f4af53.jpg","disc":"","duration":"00:25:12","session":"af18119b9d6694d5c5125c31b0597bdca593117b2d7193525b0df93409f0a79d","filler":0,"created_at":"2022-04-15 09:16:20"},{"id":53687,"anime_id":4727,"episode":2,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/e000d17a327ca2dfc6d2d2da756244d512f400bb355931a4e8bce586d6f53ddd.jpg","disc":"","duration":"00:23:42","session":"1dddb73e4eddc7f7f7690c03d8c5f42c10bb73d8ab91411343ce6f591203a3dd","filler":0,"created_at":"2022-04-22 01:27:01"},{"id":53746,"anime_id":4727,"episode":3,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/2fbf0129da4f5e73d0804566dd5c86af2bc0c493c3defddbb294c3c4e7b6fd95.jpg","disc":"","duration":"00:23:42","session":"3d30f73b1169d4e7521247b19e1bec65f80f58ca4820bd7fddaf1c22542f17b1","filler":0,"created_at":"2022-04-29 05:48:43"},{"id":53816,"anime_id":4727,"episode":4,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/71bba70703d8c2ffbe47a3c279f4bfdbbeaca7720270d60a6a6767cc32e4c8aa.jpg","disc":"","duration":"00:23:42","session":"58d94e377398cb17df14e51540e88e336961f6dab7956cfa1eeae9c486bc0bb5","filler":0,"created_at":"2022-05-05 21:37:43"},{"id":53884,"anime_id":4727,"episode":5,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/11bb5854ccd1ebff8352fb4ef13958a84f91ccaec26c6b0a18585006028f80d8.jpg","disc":"","duration":"00:23:42","session":"b5c0c4341204f6fd697af232d346134618b424c30b42d3ea93ba7ad492e4611d","filler":0,"created_at":"2022-05-12 22:19:51"},{"id":53962,"anime_id":4727,"episode":6,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/dd5b4a7fa543e26925d1926de60ec5bf5ac7de848426157d6c60e31106b9b212.jpg","disc":"","duration":"00:23:42","session":"328c89d9e672efb15c8f02d49e7f11f994d7fef8b2e04b0e3278be1db8612447","filler":0,"created_at":"2022-05-21 09:20:43"},{"id":54021,"anime_id":4727,"episode":7,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/bca89ea278ba9ad6aca65cfe3ee198aa8020b0c41c5094693eda8da2bf06aeb4.jpg","disc":"","duration":"00:23:42","session":"1998d6cfe47ad26a53ea3eca0c2a14c3ab9f8022df978034a265457c46543102","filler":0,"created_at":"2022-05-27 07:52:47"},{"id":54262,"anime_id":4727,"episode":8,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/9124a0a687b4c5a10138b8e9eef0318cc21e6ea160eb345a524c261e40fd5e87.jpg","disc":"","duration":"00:23:40","session":"f3f370ff6df1915cc260af9922075feabda69ac903d4a87735913b0bee402cd2","filler":0,"created_at":"2022-06-05 04:55:57"},{"id":54290,"anime_id":4727,"episode":9,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/dd335c71eb6a19042d5ce63c67767e0d06f00afa4a909dbb608b659c7e55aea1.jpg","disc":"","duration":"00:23:42","session":"968b7763283cbb97585f0c158976d36e50662503ae2a6b5aa2adbc5309bf5a16","filler":0,"created_at":"2022-06-10 06:33:44"},{"id":54369,"anime_id":4727,"episode":10,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/3e8eb65f5c8c639d6ea78b93fecb4d3b597d69db19dfd5c6dbf177cecfbfe0aa.jpg","disc":"","duration":"00:23:42","session":"d861f04401da8557a4006eefcf268a4f085f6134a2c5389c83fdd4534970e093","filler":0,"created_at":"2022-06-18 20:26:04"},{"id":54424,"anime_id":4727,"episode":11,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/f051c1fa2bbf90184426f7f71b70e0f204ef13d36eb19c9dd462769a373870a9.jpg","disc":"","duration":"00:23:42","session":"48a54b4b803b51e15b7d958ede90e4883fce1cedb5f097afe5df98bb3716065e","filler":0,"created_at":"2022-06-25 23:04:57"},{"id":54442,"anime_id":4727,"episode":12,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/3bdf0409bcf6907ecbc010121ca8fc23c1b16fda7181ab646221584223f7726c.jpg","disc":"","duration":"00:23:42","session":"856082af8eab3a41e3269f30b517a9e1556117c88362c7b3fb008463dedeaa76","filler":0,"created_at":"2022-07-01 05:01:14"},{"id":54538,"anime_id":4727,"episode":13,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/6e1d58a5bb7e770bb408960f2567453677e1fedb64fab076618bf1e394f546e1.jpg","disc":"","duration":"00:23:42","session":"59b8325e80738add194b6e1ae391238930a70a2b1a21e131abd74c72362594c2","filler":0,"created_at":"2022-07-08 06:46:59"},{"id":54666,"anime_id":4727,"episode":14,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/84326aa6f9765db4a8a7549f96217803009549ce97857faebdfb2c1efdbe6c72.jpg","disc":"","duration":"00:23:42","session":"8e76e7efc8eb8c51710a8d9c15052921fe67cf8b9aa35b4e1e30b38a6bec260a","filler":0,"created_at":"2022-07-17 12:58:34"},{"id":54770,"anime_id":4727,"episode":15,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/954331dca79ca0f8664bae27c17052539610e15f59a08987d213638e040ef816.jpg","disc":"","duration":"00:23:42","session":"9216761403e14fb214f90b1229dc809d60bd231f9f9cc2f6c3daa322ab2717db","filler":0,"created_at":"2022-07-22 05:55:38"},{"id":54863,"anime_id":4727,"episode":16,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/20a94749006395461df5ae35e7d1500aaa0b2b38075b0357e1e1e5d6132fd53d.jpg","disc":"","duration":"00:23:42","session":"6e7b0867a85282177002b3b9bc9ecc4a60d65c1f18ec8c792671cf704b79ac6c","filler":0,"created_at":"2022-07-29 05:49:28"},{"id":55014,"anime_id":4727,"episode":17,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/92155363c5d7232687cfe1308c6e86b8fb4a5f469e9c50a170b45bb06cb91776.jpg","disc":"","duration":"00:23:42","session":"d7b4a053a3beb534972b8a4216fe7352f8dfd304bfe2eb211a10a5e02deed788","filler":0,"created_at":"2022-08-12 05:04:52"},{"id":55040,"anime_id":4727,"episode":18,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/cfdf44c37eed7da47e97e47efc35bae183324143fb506ee00c3c9d11b4906723.jpg","disc":"","duration":"00:23:42","session":"8f95f724b62f8dab62c0b0c843ab79bde656ac4bea9a9f0666f5e8e3182488bf","filler":0,"created_at":"2022-08-13 19:06:04"},{"id":55140,"anime_id":4727,"episode":19,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/f3db25d79db16966ad2b4b2bfbcc01ba5661bb90ffd22f1c71e4f45272e085d6.jpg","disc":"","duration":"00:23:42","session":"59156f8b5364a2dc2a57eed8e02997ce73ae5197439161e1c30f47629cb60a21","filler":0,"created_at":"2022-08-19 20:59:37"}]}'
++ /c/jq/jq -r .last_page
+ p=1
+ [[ 1 -gt 1 ]]
+ echo '{"total":19,"per_page":30,"current_page":1,"last_page":1,"next_page_url":null,"prev_page_url":null,"from":1,"to":19,"data":[{"id":53623,"anime_id":4727,"episode":1,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/e1f732e76446ea14f0d6f25ddd00f58d29aa12bc9112187a988a39ab27f4af53.jpg","disc":"","duration":"00:25:12","session":"af18119b9d6694d5c5125c31b0597bdca593117b2d7193525b0df93409f0a79d","filler":0,"created_at":"2022-04-15 09:16:20"},{"id":53687,"anime_id":4727,"episode":2,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/e000d17a327ca2dfc6d2d2da756244d512f400bb355931a4e8bce586d6f53ddd.jpg","disc":"","duration":"00:23:42","session":"1dddb73e4eddc7f7f7690c03d8c5f42c10bb73d8ab91411343ce6f591203a3dd","filler":0,"created_at":"2022-04-22 01:27:01"},{"id":53746,"anime_id":4727,"episode":3,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/2fbf0129da4f5e73d0804566dd5c86af2bc0c493c3defddbb294c3c4e7b6fd95.jpg","disc":"","duration":"00:23:42","session":"3d30f73b1169d4e7521247b19e1bec65f80f58ca4820bd7fddaf1c22542f17b1","filler":0,"created_at":"2022-04-29 05:48:43"},{"id":53816,"anime_id":4727,"episode":4,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/71bba70703d8c2ffbe47a3c279f4bfdbbeaca7720270d60a6a6767cc32e4c8aa.jpg","disc":"","duration":"00:23:42","session":"58d94e377398cb17df14e51540e88e336961f6dab7956cfa1eeae9c486bc0bb5","filler":0,"created_at":"2022-05-05 21:37:43"},{"id":53884,"anime_id":4727,"episode":5,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/11bb5854ccd1ebff8352fb4ef13958a84f91ccaec26c6b0a18585006028f80d8.jpg","disc":"","duration":"00:23:42","session":"b5c0c4341204f6fd697af232d346134618b424c30b42d3ea93ba7ad492e4611d","filler":0,"created_at":"2022-05-12 22:19:51"},{"id":53962,"anime_id":4727,"episode":6,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/dd5b4a7fa543e26925d1926de60ec5bf5ac7de848426157d6c60e31106b9b212.jpg","disc":"","duration":"00:23:42","session":"328c89d9e672efb15c8f02d49e7f11f994d7fef8b2e04b0e3278be1db8612447","filler":0,"created_at":"2022-05-21 09:20:43"},{"id":54021,"anime_id":4727,"episode":7,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/bca89ea278ba9ad6aca65cfe3ee198aa8020b0c41c5094693eda8da2bf06aeb4.jpg","disc":"","duration":"00:23:42","session":"1998d6cfe47ad26a53ea3eca0c2a14c3ab9f8022df978034a265457c46543102","filler":0,"created_at":"2022-05-27 07:52:47"},{"id":54262,"anime_id":4727,"episode":8,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/9124a0a687b4c5a10138b8e9eef0318cc21e6ea160eb345a524c261e40fd5e87.jpg","disc":"","duration":"00:23:40","session":"f3f370ff6df1915cc260af9922075feabda69ac903d4a87735913b0bee402cd2","filler":0,"created_at":"2022-06-05 04:55:57"},{"id":54290,"anime_id":4727,"episode":9,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/dd335c71eb6a19042d5ce63c67767e0d06f00afa4a909dbb608b659c7e55aea1.jpg","disc":"","duration":"00:23:42","session":"968b7763283cbb97585f0c158976d36e50662503ae2a6b5aa2adbc5309bf5a16","filler":0,"created_at":"2022-06-10 06:33:44"},{"id":54369,"anime_id":4727,"episode":10,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/3e8eb65f5c8c639d6ea78b93fecb4d3b597d69db19dfd5c6dbf177cecfbfe0aa.jpg","disc":"","duration":"00:23:42","session":"d861f04401da8557a4006eefcf268a4f085f6134a2c5389c83fdd4534970e093","filler":0,"created_at":"2022-06-18 20:26:04"},{"id":54424,"anime_id":4727,"episode":11,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/f051c1fa2bbf90184426f7f71b70e0f204ef13d36eb19c9dd462769a373870a9.jpg","disc":"","duration":"00:23:42","session":"48a54b4b803b51e15b7d958ede90e4883fce1cedb5f097afe5df98bb3716065e","filler":0,"created_at":"2022-06-25 23:04:57"},{"id":54442,"anime_id":4727,"episode":12,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/3bdf0409bcf6907ecbc010121ca8fc23c1b16fda7181ab646221584223f7726c.jpg","disc":"","duration":"00:23:42","session":"856082af8eab3a41e3269f30b517a9e1556117c88362c7b3fb008463dedeaa76","filler":0,"created_at":"2022-07-01 05:01:14"},{"id":54538,"anime_id":4727,"episode":13,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/6e1d58a5bb7e770bb408960f2567453677e1fedb64fab076618bf1e394f546e1.jpg","disc":"","duration":"00:23:42","session":"59b8325e80738add194b6e1ae391238930a70a2b1a21e131abd74c72362594c2","filler":0,"created_at":"2022-07-08 06:46:59"},{"id":54666,"anime_id":4727,"episode":14,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/84326aa6f9765db4a8a7549f96217803009549ce97857faebdfb2c1efdbe6c72.jpg","disc":"","duration":"00:23:42","session":"8e76e7efc8eb8c51710a8d9c15052921fe67cf8b9aa35b4e1e30b38a6bec260a","filler":0,"created_at":"2022-07-17 12:58:34"},{"id":54770,"anime_id":4727,"episode":15,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/954331dca79ca0f8664bae27c17052539610e15f59a08987d213638e040ef816.jpg","disc":"","duration":"00:23:42","session":"9216761403e14fb214f90b1229dc809d60bd231f9f9cc2f6c3daa322ab2717db","filler":0,"created_at":"2022-07-22 05:55:38"},{"id":54863,"anime_id":4727,"episode":16,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/20a94749006395461df5ae35e7d1500aaa0b2b38075b0357e1e1e5d6132fd53d.jpg","disc":"","duration":"00:23:42","session":"6e7b0867a85282177002b3b9bc9ecc4a60d65c1f18ec8c792671cf704b79ac6c","filler":0,"created_at":"2022-07-29 05:49:28"},{"id":55014,"anime_id":4727,"episode":17,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/92155363c5d7232687cfe1308c6e86b8fb4a5f469e9c50a170b45bb06cb91776.jpg","disc":"","duration":"00:23:42","session":"d7b4a053a3beb534972b8a4216fe7352f8dfd304bfe2eb211a10a5e02deed788","filler":0,"created_at":"2022-08-12 05:04:52"},{"id":55040,"anime_id":4727,"episode":18,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/cfdf44c37eed7da47e97e47efc35bae183324143fb506ee00c3c9d11b4906723.jpg","disc":"","duration":"00:23:42","session":"8f95f724b62f8dab62c0b0c843ab79bde656ac4bea9a9f0666f5e8e3182488bf","filler":0,"created_at":"2022-08-13 19:06:04"},{"id":55140,"anime_id":4727,"episode":19,"episode2":0,"edition":"","title":"","snapshot":"https:\/\/i.animepahe.com\/snapshots\/f3db25d79db16966ad2b4b2bfbcc01ba5661bb90ffd22f1c71e4f45272e085d6.jpg","disc":"","duration":"00:23:42","session":"59156f8b5364a2dc2a57eed8e02997ce73ae5197439161e1c30f47629cb60a21","filler":0,"created_at":"2022-08-19 20:59:37"}]}'
+ [[ -z 1-19 ]]
+ download_episodes 1-19
+ local origel el uniqel
+ origel=()
+ [[ 1-19 == *\,* ]]
+ origel+=("$1")
+ el=()
+ for i in "${origel[@]}"
+ [[ 1-19 == *\** ]]
+ [[ 1-19 == *\-* ]]
++ awk -F - '{print $1}'
+ s=1
++ awk -F - '{print $2}'
+ e=19
++ seq 1 19
+ for n in $(seq "$s" "$e")
+ el+=("$n")
+ for n in $(seq "$s" "$e")
+ el+=("$n")
+ for n in $(seq "$s" "$e")
+ el+=("$n")
+ for n in $(seq "$s" "$e")
+ el+=("$n")
+ for n in $(seq "$s" "$e")
+ el+=("$n")
+ for n in $(seq "$s" "$e")
+ el+=("$n")
+ for n in $(seq "$s" "$e")
+ el+=("$n")
+ for n in $(seq "$s" "$e")
+ el+=("$n")
+ for n in $(seq "$s" "$e")
+ el+=("$n")
+ for n in $(seq "$s" "$e")
+ el+=("$n")
+ for n in $(seq "$s" "$e")
+ el+=("$n")
+ for n in $(seq "$s" "$e")
+ el+=("$n")
+ for n in $(seq "$s" "$e")
+ el+=("$n")
+ for n in $(seq "$s" "$e")
+ el+=("$n")
+ for n in $(seq "$s" "$e")
+ el+=("$n")
+ for n in $(seq "$s" "$e")
+ el+=("$n")
+ for n in $(seq "$s" "$e")
+ el+=("$n")
+ for n in $(seq "$s" "$e")
+ el+=("$n")
+ for n in $(seq "$s" "$e")
+ el+=("$n")
+ IFS=' '
+ read -ra uniqel
++ printf '%s\n' 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
++ sort -n -u
++ tr '\n' ' '
+ [[ 19 == 0 ]]
+ for e in "${uniqel[@]}"
+ download_episode 1
+ local num=1 l pl erropt= v
+ v='C:/fzf/Summertime Render/1.mp4'
++ get_episode_link 1
++ local i s d r=
+++ /c/jq/jq -r '.data[] | select((.episode | tonumber) == ($num | tonumber)) | .anime_id' --arg num 1
++ i=4727
+++ /c/jq/jq -r '.data[] | select((.episode | tonumber) == ($num | tonumber)) | .session' --arg num 1
++ s=af18119b9d6694d5c5125c31b0597bdca593117b2d7193525b0df93409f0a79d
++ [[ 4727 == '' ]]
+++ get 'https://animepahe.com/api?m=embed&id=4727&session=af18119b9d6694d5c5125c31b0597bdca593117b2d7193525b0df93409f0a79d&p=kwik'
+++ /mingw64/bin/curl -sS -L 'https://animepahe.com/api?m=embed&id=4727&session=af18119b9d6694d5c5125c31b0597bdca593117b2d7193525b0df93409f0a79d&p=kwik' --compressed
+++ /c/jq/jq -r '.data[]'
++ d='{
  "360": {
    "filesize": 65925253,
    "crc32": "3b2fe468",
    "revision": "",
    "fansub": "SlyFox",
    "audio": "jpn",
    "disc": "",
    "hq": 0,
    "kwik": "https://kwik.cx/e/hLWJn2mQy7tu",
    "kwik_pahewin": "https://pahe.win/gexlt"
  }
}
{
  "720": {
    "filesize": 137454934,
    "crc32": "4a8d9f24",
    "revision": "",
    "fansub": "SlyFox",
    "audio": "jpn",
    "disc": "",
    "hq": 0,
    "kwik": "https://kwik.cx/e/T6Nkf5oz6DbB",
    "kwik_pahewin": "https://pahe.win/rypjz"
  }
}
{
  "1080": {
    "filesize": 234566201,
    "crc32": "5e393f27",
    "revision": "",
    "fansub": "SlyFox",
    "audio": "jpn",
    "disc": "",
    "hq": 0,
    "kwik": "https://kwik.cx/e/mwdsDrBBlF6m",
    "kwik_pahewin": "https://pahe.win/EFagy"
  }
}'
++ [[ -n '' ]]
++ [[ -n 720 ]]
++ print_info 'Select video resolution: 720'
++ [[ -z '' ]]
++ printf '%b\n' '\033[32m[INFO]\033[0m Select video resolution: 720'
[INFO] Select video resolution: 720
+++ /c/jq/jq -r 'to_entries | .[] |= select(.key == "720") | from_entries | select(.[] != null)'
++ r='{
  "720": {
    "filesize": 137454934,
    "crc32": "4a8d9f24",
    "revision": "",
    "fansub": "SlyFox",
    "audio": "jpn",
    "disc": "",
    "hq": 0,
    "kwik": "https://kwik.cx/e/T6Nkf5oz6DbB",
    "kwik_pahewin": "https://pahe.win/rypjz"
  }
}'
++ [[ -n {
  "720": {
    "filesize": 137454934,
    "crc32": "4a8d9f24",
    "revision": "",
    "fansub": "SlyFox",
    "audio": "jpn",
    "disc": "",
    "hq": 0,
    "kwik": "https://kwik.cx/e/T6Nkf5oz6DbB",
    "kwik_pahewin": "https://pahe.win/rypjz"
  }
} ]]
++ d='{
  "720": {
    "filesize": 137454934,
    "crc32": "4a8d9f24",
    "revision": "",
    "fansub": "SlyFox",
    "audio": "jpn",
    "disc": "",
    "hq": 0,
    "kwik": "https://kwik.cx/e/T6Nkf5oz6DbB",
    "kwik_pahewin": "https://pahe.win/rypjz"
  }
}'
++ /c/jq/jq -r '.[].kwik'
++ tail -1
+ l=https://kwik.cx/e/T6Nkf5oz6DbB
+ [[ https://kwik.cx/e/T6Nkf5oz6DbB != *\/* ]]
++ get_playlist_link https://kwik.cx/e/T6Nkf5oz6DbB
++ local s l
+++ /mingw64/bin/curl --compressed -sS -H 'Referer: https://kwik.cx/' https://kwik.cx/e/T6Nkf5oz6DbB
+++ grep '<script>eval('
+++ awk -F 'script>' '{print $2}'
+++ sed -E 's/'\''\\'\''//g'
++ s='eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!'\'''\''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\''\\w+'\''};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\''\\b'\''+e(c)+'\''\\b'\'','\''g'\''),k[c])}}return p}('\''f $7={H:a(2){4 B(9.7.h(y z("(?:(?:^|.*;)\\\\s*"+d(2).h(/[\\-\\.\\+\\*]/g,"\\\\$&")+"\\\\s*\\\\=\\\\s*([^;]*).*$)|^.*$"),"$1"))||G},E:a(2,q,3,6,5,t){k(!2||/^(?:8|r\\-v|o|m|p)$/i.D(2)){4 w}f b="";k(3){F(3.J){j K:b=3===P?"; 8=O, I N Q M:u:u A":"; r-v="+3;n;j L:b="; 8="+3;n;j S:b="; 8="+3.Z();n}}9.7=d(2)+"="+d(q)+b+(5?"; m="+5:"")+(6?"; o="+6:"")+(t?"; p":"");4 x},Y:a(2,6,5){k(!2||!11.C(2)){4 w}9.7=d(2)+"=; 8=12, R 10 W l:l:l A"+(5?"; m="+5:"")+(6?"; o="+6:"");4 x},C:a(2){4(y z("(?:^|;\\\\s*)"+d(2).h(/[\\-\\.\\+\\*]/g,"\\\\$&")+"\\\\s*\\\\=")).D(9.7)},X:a(){f c=9.7.h(/((?:^|\\s*;)[^\\=]+)(?=;|$)|^\\s*|\\s*(?:\\=[^;]*)?(?:\\1|$)/g,"").T(/\\s*(?:\\=[^;]*)?;\\s*/);U(f e=0;e<c.V;e++){c[e]=B(c[e])}4 c}};'\'',62,65,'\''||sKey|vEnd|return|sDomain|sPath|cookie|expires|document|function|sExpires|aKeys|encodeURIComponent|nIdx|var||replace||case|if|00|domain|break|path|secure|sValue|max||bSecure|59|age|false|true|new|RegExp|GMT|decodeURIComponent|hasItem|test|setItem|switch|null|getItem|31|constructor|Number|String|23|Dec|Fri|Infinity|9999|01|Date|split|for|length|1970|keys|removeItem|toUTCString|Jan|this|Thu'\''.split('\''|'\''),0,{}));eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!'\'''\''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\''\\w+'\''};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\''\\b'\''+e(c)+'\''\\b'\'','\''g'\''),k[c])}}return p}('\''h o=\'\''1A://1z-1y.1x.1w.1v/1u/1t/1s/1r.1q\'\'';h d=s.r(\'\''d\'\'');h 0=B 1p(d,{\'\''1o\'\'':{\'\''1n\'\'':i},\'\''1m\'\'':\'\''16:9\'\'',\'\''D\'\'':1,\'\''1l\'\'':5,\'\''1k\'\'':{\'\''1j\'\'':\'\''1i\'\''},1h:[\'\''7-1g\'\'',\'\''7\'\'',\'\''1f\'\'',\'\''1e-1d\'\'',\'\''1c\'\'',\'\''D\'\'',\'\''1b\'\'',\'\''1a\'\'',\'\''19\'\'',\'\''18\'\'',\'\''C\'\'',\'\''17\'\''],\'\''C\'\'':{\'\''15\'\'':i}});8(!A.14()){d.13=o}x{j z={12:11,10:Z,Y:X,W:i,V:i};h c=B A(z);c.U(o);c.T(d);g.c=c}0.3("S",6=>{g.R.Q.P("O")});0.N=1;k v(b,n,m){8(b.y){b.y(n,m,M)}x 8(b.w){b.w(\'\''3\'\''+n,m)}}j 4=k(l){g.L.K(l,\'\''*\'\'')};v(g,\'\''l\'\'',k(e){j a=e.a;8(a===\'\''7\'\'')0.7();8(a===\'\''f\'\'')0.f();8(a===\'\''u\'\'')0.u()});0.3(\'\''t\'\'',6=>{4(\'\''t\'\'')});0.3(\'\''7\'\'',6=>{4(\'\''7\'\'')});0.3(\'\''f\'\'',6=>{4(\'\''f\'\'')});0.3(\'\''J\'\'',6=>{4(0.q);s.r(\'\''.I-H\'\'').G=F(0.q.E(2))});0.3(\'\''p\'\'',6=>{4(\'\''p\'\'')});'\'',62,99,'\''player|||on|sendMessage||event|play|if||data|element|hls|video||pause|window|const|true|var|function|message|eventHandler|eventName|source|ended|currentTime|querySelector|document|ready|stop|bindEvent|attachEvent|else|addEventListener|config|Hls|new|fullscreen|volume|toFixed|String|innerHTML|timestamp|ss|timeupdate|postMessage|parent|false|speed|landscape|lock|orientation|screen|enterfullscreen|attachMedia|loadSource|lowLatencyMode|enableWorker|Infinity|backBufferLength|600|maxMaxBufferLength|180|maxBufferLength|src|isSupported|iosNative||capture|airplay|pip|settings|captions|mute|time|current|progress|large|controls|kwik|key|storage|seekTime|ratio|global|keyboard|Plyr|m3u8|uwu|a9338bf071a701ab75d3092f8f635cb5bb6faf0faf4ddf0294ff7a959a3951e3|04|stream|org|nextcdn|files|161|eu|https'\''.split('\''|'\''),0,{}))'
+++ 'alias node='\''winpty node.exe'\''' -e 'eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!'\'''\''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\''\\w+'\''};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\''\\b'\''+e(c)+'\''\\b'\'','\''g'\''),k[c])}}return p}('\''f $7={H:a(2){4 B(9.7.h(y z("(?:(?:^|.*;)\\\\s*"+d(2).h(/[\\-\\.\\+\\*]/g,"\\\\$&")+"\\\\s*\\\\=\\\\s*([^;]*).*$)|^.*$"),"$1"))||G},E:a(2,q,3,6,5,t){k(!2||/^(?:8|r\\-v|o|m|p)$/i.D(2)){4 w}f b="";k(3){F(3.J){j K:b=3===P?"; 8=O, I N Q M:u:u A":"; r-v="+3;n;j L:b="; 8="+3;n;j S:b="; 8="+3.Z();n}}9.7=d(2)+"="+d(q)+b+(5?"; m="+5:"")+(6?"; o="+6:"")+(t?"; p":"");4 x},Y:a(2,6,5){k(!2||!11.C(2)){4 w}9.7=d(2)+"=; 8=12, R 10 W l:l:l A"+(5?"; m="+5:"")+(6?"; o="+6:"");4 x},C:a(2){4(y z("(?:^|;\\\\s*)"+d(2).h(/[\\-\\.\\+\\*]/g,"\\\\$&")+"\\\\s*\\\\=")).D(9.7)},X:a(){f c=9.7.h(/((?:^|\\s*;)[^\\=]+)(?=;|$)|^\\s*|\\s*(?:\\=[^;]*)?(?:\\1|$)/g,"").T(/\\s*(?:\\=[^;]*)?;\\s*/);U(f e=0;e<c.V;e++){c[e]=B(c[e])}4 c}};'\'',62,65,'\''||sKey|vEnd|return|sDomain|sPath|cookie|expires|document|function|sExpires|aKeys|encodeURIComponent|nIdx|var||replace||case|if|00|domain|break|path|secure|sValue|max||bSecure|59|age|false|true|new|RegExp|GMT|decodeURIComponent|hasItem|test|setItem|switch|null|getItem|31|constructor|Number|String|23|Dec|Fri|Infinity|9999|01|Date|split|for|length|1970|keys|removeItem|toUTCString|Jan|this|Thu'\''.split('\''|'\''),0,{}));eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!'\'''\''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\''\\w+'\''};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\''\\b'\''+e(c)+'\''\\b'\'','\''g'\''),k[c])}}return p}('\''h o=\'\''1A://1z-1y.1x.1w.1v/1u/1t/1s/1r.1q\'\'';h d=s.r(\'\''d\'\'');h 0=B 1p(d,{\'\''1o\'\'':{\'\''1n\'\'':i},\'\''1m\'\'':\'\''16:9\'\'',\'\''D\'\'':1,\'\''1l\'\'':5,\'\''1k\'\'':{\'\''1j\'\'':\'\''1i\'\''},1h:[\'\''7-1g\'\'',\'\''7\'\'',\'\''1f\'\'',\'\''1e-1d\'\'',\'\''1c\'\'',\'\''D\'\'',\'\''1b\'\'',\'\''1a\'\'',\'\''19\'\'',\'\''18\'\'',\'\''C\'\'',\'\''17\'\''],\'\''C\'\'':{\'\''15\'\'':i}});8(!A.14()){d.13=o}x{j z={12:11,10:Z,Y:X,W:i,V:i};h c=B A(z);c.U(o);c.T(d);g.c=c}0.3("S",6=>{g.R.Q.P("O")});0.N=1;k v(b,n,m){8(b.y){b.y(n,m,M)}x 8(b.w){b.w(\'\''3\'\''+n,m)}}j 4=k(l){g.L.K(l,\'\''*\'\'')};v(g,\'\''l\'\'',k(e){j a=e.a;8(a===\'\''7\'\'')0.7();8(a===\'\''f\'\'')0.f();8(a===\'\''u\'\'')0.u()});0.3(\'\''t\'\'',6=>{4(\'\''t\'\'')});0.3(\'\''7\'\'',6=>{4(\'\''7\'\'')});0.3(\'\''f\'\'',6=>{4(\'\''f\'\'')});0.3(\'\''J\'\'',6=>{4(0.q);s.r(\'\''.I-H\'\'').G=F(0.q.E(2))});0.3(\'\''p\'\'',6=>{4(\'\''p\'\'')});'\'',62,99,'\''player|||on|sendMessage||event|play|if||data|element|hls|video||pause|window|const|true|var|function|message|eventHandler|eventName|source|ended|currentTime|querySelector|document|ready|stop|bindEvent|attachEvent|else|addEventListener|config|Hls|new|fullscreen|volume|toFixed|String|innerHTML|timestamp|ss|timeupdate|postMessage|parent|false|speed|landscape|lock|orientation|screen|enterfullscreen|attachMedia|loadSource|lowLatencyMode|enableWorker|Infinity|backBufferLength|600|maxMaxBufferLength|180|maxBufferLength|src|isSupported|iosNative||capture|airplay|pip|settings|captions|mute|time|current|progress|large|controls|kwik|key|storage|seekTime|ratio|global|keyboard|Plyr|m3u8|uwu|a9338bf071a701ab75d3092f8f635cb5bb6faf0faf4ddf0294ff7a959a3951e3|04|stream|org|nextcdn|files|161|eu|https'\''.split('\''|'\''),0,{}))'
+++ grep source=
+++ sed -E 's/.m3u8'\'';.*/.m3u8/'
+++ sed -E 's/.*const source='\''//'
++ l=
++ echo ''
+ pl=
+ [[ -z '' ]]
+ print_warn 'Missing video list! Skip downloading!'
+ [[ -z '' ]]
+ printf '%b\n' '\033[33m[WARNING]\033[0m Missing video list! Skip downloading!'

from animepahe-dl.

KevCui avatar KevCui commented on September 22, 2024

Hey @Baburuti, from the log _NODE='alias node='\''winpty node.exe'\''', the node command is an alias on your machine. I don't know how it's configured. It seems causing the problem. Is it possible to properly install nodejs?

You could check if node command works or not by running command:

node -e 'eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!'\'''\''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\''\\w+'\''};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\''\\b'\''+e(c)+'\''\\b'\'','\''g'\''),k[c])}}return p}('\''f $7={H:a(2){4 B(9.7.h(y z("(?:(?:^|.*;)\\\\s*"+d(2).h(/[\\-\\.\\+\\*]/g,"\\\\$&")+"\\\\s*\\\\=\\\\s*([^;]*).*$)|^.*$"),"$1"))||G},E:a(2,q,3,6,5,t){k(!2||/^(?:8|r\\-v|o|m|p)$/i.D(2)){4 w}f b="";k(3){F(3.J){j K:b=3===P?"; 8=O, I N Q M:u:u A":"; r-v="+3;n;j L:b="; 8="+3;n;j S:b="; 8="+3.Z();n}}9.7=d(2)+"="+d(q)+b+(5?"; m="+5:"")+(6?"; o="+6:"")+(t?"; p":"");4 x},Y:a(2,6,5){k(!2||!11.C(2)){4 w}9.7=d(2)+"=; 8=12, R 10 W l:l:l A"+(5?"; m="+5:"")+(6?"; o="+6:"");4 x},C:a(2){4(y z("(?:^|;\\\\s*)"+d(2).h(/[\\-\\.\\+\\*]/g,"\\\\$&")+"\\\\s*\\\\=")).D(9.7)},X:a(){f c=9.7.h(/((?:^|\\s*;)[^\\=]+)(?=;|$)|^\\s*|\\s*(?:\\=[^;]*)?(?:\\1|$)/g,"").T(/\\s*(?:\\=[^;]*)?;\\s*/);U(f e=0;e<c.V;e++){c[e]=B(c[e])}4 c}};'\'',62,65,'\''||sKey|vEnd|return|sDomain|sPath|cookie|expires|document|function|sExpires|aKeys|encodeURIComponent|nIdx|var||replace||case|if|00|domain|break|path|secure|sValue|max||bSecure|59|age|false|true|new|RegExp|GMT|decodeURIComponent|hasItem|test|setItem|switch|null|getItem|31|constructor|Number|String|23|Dec|Fri|Infinity|9999|01|Date|split|for|length|1970|keys|removeItem|toUTCString|Jan|this|Thu'\''.split('\''|'\''),0,{}));eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!'\'''\''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\''\\w+'\''};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\''\\b'\''+e(c)+'\''\\b'\'','\''g'\''),k[c])}}return p}('\''h o=\'\''1A://1z-1y.1x.1w.1v/1u/1t/1s/1r.1q\'\'';h d=s.r(\'\''d\'\'');h 0=B 1p(d,{\'\''1o\'\'':{\'\''1n\'\'':i},\'\''1m\'\'':\'\''16:9\'\'',\'\''D\'\'':1,\'\''1l\'\'':5,\'\''1k\'\'':{\'\''1j\'\'':\'\''1i\'\''},1h:[\'\''7-1g\'\'',\'\''7\'\'',\'\''1f\'\'',\'\''1e-1d\'\'',\'\''1c\'\'',\'\''D\'\'',\'\''1b\'\'',\'\''1a\'\'',\'\''19\'\'',\'\''18\'\'',\'\''C\'\'',\'\''17\'\''],\'\''C\'\'':{\'\''15\'\'':i}});8(!A.14()){d.13=o}x{j z={12:11,10:Z,Y:X,W:i,V:i};h c=B A(z);c.U(o);c.T(d);g.c=c}0.3("S",6=>{g.R.Q.P("O")});0.N=1;k v(b,n,m){8(b.y){b.y(n,m,M)}x 8(b.w){b.w(\'\''3\'\''+n,m)}}j 4=k(l){g.L.K(l,\'\''*\'\'')};v(g,\'\''l\'\'',k(e){j a=e.a;8(a===\'\''7\'\'')0.7();8(a===\'\''f\'\'')0.f();8(a===\'\''u\'\'')0.u()});0.3(\'\''t\'\'',6=>{4(\'\''t\'\'')});0.3(\'\''7\'\'',6=>{4(\'\''7\'\'')});0.3(\'\''f\'\'',6=>{4(\'\''f\'\'')});0.3(\'\''J\'\'',6=>{4(0.q);s.r(\'\''.I-H\'\'').G=F(0.q.E(2))});0.3(\'\''p\'\'',6=>{4(\'\''p\'\'')});'\'',62,99,'\''player|||on|sendMessage||event|play|if||data|element|hls|video||pause|window|const|true|var|function|message|eventHandler|eventName|source|ended|currentTime|querySelector|document|ready|stop|bindEvent|attachEvent|else|addEventListener|config|Hls|new|fullscreen|volume|toFixed|String|innerHTML|timestamp|ss|timeupdate|postMessage|parent|false|speed|landscape|lock|orientation|screen|enterfullscreen|attachMedia|loadSource|lowLatencyMode|enableWorker|Infinity|backBufferLength|600|maxMaxBufferLength|180|maxBufferLength|src|isSupported|iosNative||capture|airplay|pip|settings|captions|mute|time|current|progress|large|controls|kwik|key|storage|seekTime|ratio|global|keyboard|Plyr|m3u8|uwu|a9338bf071a701ab75d3092f8f635cb5bb6faf0faf4ddf0294ff7a959a3951e3|04|stream|org|nextcdn|files|161|eu|https'\''.split('\''|'\''),0,{}))'

If you see the const source='https://... in the output, then it works.

from animepahe-dl.

KevCui avatar KevCui commented on September 22, 2024

Hey @FierBub-42069, I was wrong and the previous fix shouldn't work. Sorry about that.

Now I'm suspecting the node command doesn't work. Could you please try to run the command:

node -e 'eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!'\'''\''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\''\\w+'\''};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\''\\b'\''+e(c)+'\''\\b'\'','\''g'\''),k[c])}}return p}('\''f $7={H:a(2){4 B(9.7.h(y z("(?:(?:^|.*;)\\\\s*"+d(2).h(/[\\-\\.\\+\\*]/g,"\\\\$&")+"\\\\s*\\\\=\\\\s*([^;]*).*$)|^.*$"),"$1"))||G},E:a(2,q,3,6,5,t){k(!2||/^(?:8|r\\-v|o|m|p)$/i.D(2)){4 w}f b="";k(3){F(3.J){j K:b=3===P?"; 8=O, I N Q M:u:u A":"; r-v="+3;n;j L:b="; 8="+3;n;j S:b="; 8="+3.Z();n}}9.7=d(2)+"="+d(q)+b+(5?"; m="+5:"")+(6?"; o="+6:"")+(t?"; p":"");4 x},Y:a(2,6,5){k(!2||!11.C(2)){4 w}9.7=d(2)+"=; 8=12, R 10 W l:l:l A"+(5?"; m="+5:"")+(6?"; o="+6:"");4 x},C:a(2){4(y z("(?:^|;\\\\s*)"+d(2).h(/[\\-\\.\\+\\*]/g,"\\\\$&")+"\\\\s*\\\\=")).D(9.7)},X:a(){f c=9.7.h(/((?:^|\\s*;)[^\\=]+)(?=;|$)|^\\s*|\\s*(?:\\=[^;]*)?(?:\\1|$)/g,"").T(/\\s*(?:\\=[^;]*)?;\\s*/);U(f e=0;e<c.V;e++){c[e]=B(c[e])}4 c}};'\'',62,65,'\''||sKey|vEnd|return|sDomain|sPath|cookie|expires|document|function|sExpires|aKeys|encodeURIComponent|nIdx|var||replace||case|if|00|domain|break|path|secure|sValue|max||bSecure|59|age|false|true|new|RegExp|GMT|decodeURIComponent|hasItem|test|setItem|switch|null|getItem|31|constructor|Number|String|23|Dec|Fri|Infinity|9999|01|Date|split|for|length|1970|keys|removeItem|toUTCString|Jan|this|Thu'\''.split('\''|'\''),0,{}));eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!'\'''\''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\''\\w+'\''};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\''\\b'\''+e(c)+'\''\\b'\'','\''g'\''),k[c])}}return p}('\''h o=\'\''1A://1z-1y.1x.1w.1v/1u/1t/1s/1r.1q\'\'';h d=s.r(\'\''d\'\'');h 0=B 1p(d,{\'\''1o\'\'':{\'\''1n\'\'':i},\'\''1m\'\'':\'\''16:9\'\'',\'\''D\'\'':1,\'\''1l\'\'':5,\'\''1k\'\'':{\'\''1j\'\'':\'\''1i\'\''},1h:[\'\''7-1g\'\'',\'\''7\'\'',\'\''1f\'\'',\'\''1e-1d\'\'',\'\''1c\'\'',\'\''D\'\'',\'\''1b\'\'',\'\''1a\'\'',\'\''19\'\'',\'\''18\'\'',\'\''C\'\'',\'\''17\'\''],\'\''C\'\'':{\'\''15\'\'':i}});8(!A.14()){d.13=o}x{j z={12:11,10:Z,Y:X,W:i,V:i};h c=B A(z);c.U(o);c.T(d);g.c=c}0.3("S",6=>{g.R.Q.P("O")});0.N=1;k v(b,n,m){8(b.y){b.y(n,m,M)}x 8(b.w){b.w(\'\''3\'\''+n,m)}}j 4=k(l){g.L.K(l,\'\''*\'\'')};v(g,\'\''l\'\'',k(e){j a=e.a;8(a===\'\''7\'\'')0.7();8(a===\'\''f\'\'')0.f();8(a===\'\''u\'\'')0.u()});0.3(\'\''t\'\'',6=>{4(\'\''t\'\'')});0.3(\'\''7\'\'',6=>{4(\'\''7\'\'')});0.3(\'\''f\'\'',6=>{4(\'\''f\'\'')});0.3(\'\''J\'\'',6=>{4(0.q);s.r(\'\''.I-H\'\'').G=F(0.q.E(2))});0.3(\'\''p\'\'',6=>{4(\'\''p\'\'')});'\'',62,99,'\''player|||on|sendMessage||event|play|if||data|element|hls|video||pause|window|const|true|var|function|message|eventHandler|eventName|source|ended|currentTime|querySelector|document|ready|stop|bindEvent|attachEvent|else|addEventListener|config|Hls|new|fullscreen|volume|toFixed|String|innerHTML|timestamp|ss|timeupdate|postMessage|parent|false|speed|landscape|lock|orientation|screen|enterfullscreen|attachMedia|loadSource|lowLatencyMode|enableWorker|Infinity|backBufferLength|600|maxMaxBufferLength|180|maxBufferLength|src|isSupported|iosNative||capture|airplay|pip|settings|captions|mute|time|current|progress|large|controls|kwik|key|storage|seekTime|ratio|global|keyboard|Plyr|m3u8|uwu|a9338bf071a701ab75d3092f8f635cb5bb6faf0faf4ddf0294ff7a959a3951e3|04|stream|org|nextcdn|files|161|eu|https'\''.split('\''|'\''),0,{}))'

Did you see the const source='https://... in the output?

from animepahe-dl.

Baburuti avatar Baburuti commented on September 22, 2024

Hey @Baburuti, from the log _NODE='alias node='\''winpty node.exe'\''', the node command is an alias on your machine. I don't know how it's configured. It seems causing the problem. Is it possible to properly install nodejs?

You could check if node command works or not by running command:

node -e 'eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!'\'''\''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\''\\w+'\''};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\''\\b'\''+e(c)+'\''\\b'\'','\''g'\''),k[c])}}return p}('\''f $7={H:a(2){4 B(9.7.h(y z("(?:(?:^|.*;)\\\\s*"+d(2).h(/[\\-\\.\\+\\*]/g,"\\\\$&")+"\\\\s*\\\\=\\\\s*([^;]*).*$)|^.*$"),"$1"))||G},E:a(2,q,3,6,5,t){k(!2||/^(?:8|r\\-v|o|m|p)$/i.D(2)){4 w}f b="";k(3){F(3.J){j K:b=3===P?"; 8=O, I N Q M:u:u A":"; r-v="+3;n;j L:b="; 8="+3;n;j S:b="; 8="+3.Z();n}}9.7=d(2)+"="+d(q)+b+(5?"; m="+5:"")+(6?"; o="+6:"")+(t?"; p":"");4 x},Y:a(2,6,5){k(!2||!11.C(2)){4 w}9.7=d(2)+"=; 8=12, R 10 W l:l:l A"+(5?"; m="+5:"")+(6?"; o="+6:"");4 x},C:a(2){4(y z("(?:^|;\\\\s*)"+d(2).h(/[\\-\\.\\+\\*]/g,"\\\\$&")+"\\\\s*\\\\=")).D(9.7)},X:a(){f c=9.7.h(/((?:^|\\s*;)[^\\=]+)(?=;|$)|^\\s*|\\s*(?:\\=[^;]*)?(?:\\1|$)/g,"").T(/\\s*(?:\\=[^;]*)?;\\s*/);U(f e=0;e<c.V;e++){c[e]=B(c[e])}4 c}};'\'',62,65,'\''||sKey|vEnd|return|sDomain|sPath|cookie|expires|document|function|sExpires|aKeys|encodeURIComponent|nIdx|var||replace||case|if|00|domain|break|path|secure|sValue|max||bSecure|59|age|false|true|new|RegExp|GMT|decodeURIComponent|hasItem|test|setItem|switch|null|getItem|31|constructor|Number|String|23|Dec|Fri|Infinity|9999|01|Date|split|for|length|1970|keys|removeItem|toUTCString|Jan|this|Thu'\''.split('\''|'\''),0,{}));eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'\'''\'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!'\'''\''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\''\\w+'\''};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\''\\b'\''+e(c)+'\''\\b'\'','\''g'\''),k[c])}}return p}('\''h o=\'\''1A://1z-1y.1x.1w.1v/1u/1t/1s/1r.1q\'\'';h d=s.r(\'\''d\'\'');h 0=B 1p(d,{\'\''1o\'\'':{\'\''1n\'\'':i},\'\''1m\'\'':\'\''16:9\'\'',\'\''D\'\'':1,\'\''1l\'\'':5,\'\''1k\'\'':{\'\''1j\'\'':\'\''1i\'\''},1h:[\'\''7-1g\'\'',\'\''7\'\'',\'\''1f\'\'',\'\''1e-1d\'\'',\'\''1c\'\'',\'\''D\'\'',\'\''1b\'\'',\'\''1a\'\'',\'\''19\'\'',\'\''18\'\'',\'\''C\'\'',\'\''17\'\''],\'\''C\'\'':{\'\''15\'\'':i}});8(!A.14()){d.13=o}x{j z={12:11,10:Z,Y:X,W:i,V:i};h c=B A(z);c.U(o);c.T(d);g.c=c}0.3("S",6=>{g.R.Q.P("O")});0.N=1;k v(b,n,m){8(b.y){b.y(n,m,M)}x 8(b.w){b.w(\'\''3\'\''+n,m)}}j 4=k(l){g.L.K(l,\'\''*\'\'')};v(g,\'\''l\'\'',k(e){j a=e.a;8(a===\'\''7\'\'')0.7();8(a===\'\''f\'\'')0.f();8(a===\'\''u\'\'')0.u()});0.3(\'\''t\'\'',6=>{4(\'\''t\'\'')});0.3(\'\''7\'\'',6=>{4(\'\''7\'\'')});0.3(\'\''f\'\'',6=>{4(\'\''f\'\'')});0.3(\'\''J\'\'',6=>{4(0.q);s.r(\'\''.I-H\'\'').G=F(0.q.E(2))});0.3(\'\''p\'\'',6=>{4(\'\''p\'\'')});'\'',62,99,'\''player|||on|sendMessage||event|play|if||data|element|hls|video||pause|window|const|true|var|function|message|eventHandler|eventName|source|ended|currentTime|querySelector|document|ready|stop|bindEvent|attachEvent|else|addEventListener|config|Hls|new|fullscreen|volume|toFixed|String|innerHTML|timestamp|ss|timeupdate|postMessage|parent|false|speed|landscape|lock|orientation|screen|enterfullscreen|attachMedia|loadSource|lowLatencyMode|enableWorker|Infinity|backBufferLength|600|maxMaxBufferLength|180|maxBufferLength|src|isSupported|iosNative||capture|airplay|pip|settings|captions|mute|time|current|progress|large|controls|kwik|key|storage|seekTime|ratio|global|keyboard|Plyr|m3u8|uwu|a9338bf071a701ab75d3092f8f635cb5bb6faf0faf4ddf0294ff7a959a3951e3|04|stream|org|nextcdn|files|161|eu|https'\''.split('\''|'\''),0,{}))'

If you see the const source='https://... in the output, then it works.

Getting

Uncaught SyntaxError: Unexpected string

Happens even after reinstalling nodejs(v18.7.0)

from animepahe-dl.

KevCui avatar KevCui commented on September 22, 2024

Hey @Baburuti, ok thanks, I will check.

from animepahe-dl.

KevCui avatar KevCui commented on September 22, 2024

Hey @Baburuti, you got only one line of error Uncaught SyntaxError: Unexpected string, and there is no stack traces or other info? Would you mind sharing a screenshot?

from animepahe-dl.

Baburuti avatar Baburuti commented on September 22, 2024

@KevCui i forgot 😂 my bad there you go

At line:1 char:394
+ ... +'\''\\b'\'','\''g'\''),k[c])}}return p}('\''f $7={H:a(2){4 B(9.7.h(y ...
+                                                                 ~
Unexpected token 'B' in expression or statement.
At line:1 char:402
+ ... b'\'','\''g'\''),k[c])}}return p}('\''f $7={H:a(2){4 B(9.7.h(y z("(?: ...
+                                                                  ~
Missing ')' in method call.
At line:1 char:402
+ ... '\'','\''g'\''),k[c])}}return p}('\''f $7={H:a(2){4 B(9.7.h(y z("(?:( ...
+                                                                 ~
Unexpected token 'y' in expression or statement.
At line:1 char:402
+ ... b'\'','\''g'\''),k[c])}}return p}('\''f $7={H:a(2){4 B(9.7.h(y z("(?: ...
+                                                                  ~
Missing closing ')' in expression.
At line:1 char:427
+ ... eturn p}('\''f $7={H:a(2){4 B(9.7.h(y z("(?:(?:^|.*;)\\\\s*"+d(2).h(/ ...
+                                                                  ~
You must provide a value expression following the '+' operator.
At line:1 char:427
+ ... turn p}('\''f $7={H:a(2){4 B(9.7.h(y z("(?:(?:^|.*;)\\\\s*"+d(2).h(/[ ...
+                                                                 ~
Unexpected token 'd' in expression or statement.
At line:1 char:427
+ ... eturn p}('\''f $7={H:a(2){4 B(9.7.h(y z("(?:(?:^|.*;)\\\\s*"+d(2).h(/ ...
+                                                                  ~
Missing closing ')' in expression.
At line:1 char:434
+ ... }('\''f $7={H:a(2){4 B(9.7.h(y z("(?:(?:^|.*;)\\\\s*"+d(2).h(/[\\-\\. ...
+                                                                  ~
Missing ')' in method call.
At line:1 char:391
+ ... (c)+'\''\\b'\'','\''g'\''),k[c])}}return p}('\''f $7={H:a(2){4 B(9.7. ...
+                                                                 ~
Missing closing '}' in statement block or type definition.
At line:1 char:384
+ ... b'\''+e(c)+'\''\\b'\'','\''g'\''),k[c])}}return p}('\''f $7={H:a(2){4 ...
+                                                                 ~
Missing closing '}' in statement block or type definition.
Not all parse errors were reported.  Correct the reported errors and try again.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnexpectedToken

from animepahe-dl.

KevCui avatar KevCui commented on September 22, 2024

Hey @Baburuti, thanks for the logs. I don't have any ideas what's wrong with node. Could you please try to run node -e 'console.log(1)' and see if you can get any result?

By the way, I pushed some changes to clean up related code. It shouldn't fix the issue you are facing. But anyway, give it a try, we may have different error 😄.

from animepahe-dl.

Baburuti avatar Baburuti commented on September 22, 2024

Hey @Baburuti, thanks for the logs. I don't have any ideas what's wrong with node. Could you please try to run node -e 'console.log(1)' and see if you can get any result?

By the way, I pushed some changes to clean up related code. It shouldn't fix the issue you are facing. But anyway, give it a try, we may have different error 😄.

Hi, here's the node
image

And as for the update
image

from animepahe-dl.

KevCui avatar KevCui commented on September 22, 2024

Hey @Baburuti, from the screenshot, it looks like your node command is an alias to winpty node.exe. I didn't expect this. I did some change in the latest comment and it should fix the command not found issue.

from animepahe-dl.

Baburuti avatar Baburuti commented on September 22, 2024

Hi @KevCui im still having the same issue with command not found

from animepahe-dl.

KevCui avatar KevCui commented on September 22, 2024

Hey @Baburuti, sad it's not working. I reverted previous change.

Unfortunately, I don't have the exact system/environment to reproduce the issue you are facing. Would you do me a favor to pull the latest commit, which contains the reverted change, and then modify the script animepahe-dl.sh, line 204:

From "$_NODE" -e "$s" to node -e "$s"

If the above change is not working, then try to change to this:

From "$_NODE" -e "$s" to /<path>/winpty node.exe -e "$s"

If it's not working either, please share logs, thanks!

from animepahe-dl.

KevCui avatar KevCui commented on September 22, 2024

@Baburuti, may I ask if it's possible to install and use nodejs directly on your system, without using winpty?

from animepahe-dl.

Baburuti avatar Baburuti commented on September 22, 2024

hi @KevCui

Here is the error upon changing to node -e "$s"
image

The only winpty file i could find is just in git bash. I tried using it after uninstalling git but fzf just closes after executing any command in PSfzf

And as for changing path (With git installed)
image

I asked some friends to check if they have the same issue. Will post later when they check it

from animepahe-dl.

KevCui avatar KevCui commented on September 22, 2024

Hey @Baburuti, could you try once more by changing the line 204 from "$_NODE" -e "$s" to node.exe -e "$s"? Curious what will happen. Thanks!

from animepahe-dl.

Baburuti avatar Baburuti commented on September 22, 2024

Hey @Baburuti, could you try once more by changing the line 204 from "$_NODE" -e "$s" to node.exe -e "$s"? Curious what will happen. Thanks!

It's working!!
image

I think i edited the old script before revert changes :D
Thank you for the help!

Although im getting a different error. But anime is still downloading and the downloaded episodes work without any issues

[INFO] Downloading Episode 1...
[tcp @ 000001eac411b540] Connection to tcp://eu-161.files.nextcdn.org:443 failed: Error number -138 occurred
[crypto @ 000001eac4cb2f40] Unable to open resource: https://eu-161.files.nextcdn.org/stream/08/661d7e6bee5cc4bbb13ae85c41eeca2711b81b620e4ef917a384e400314f261d/segment-148-v1-a1.ts
[INFO] Downloading Episode 2...
[tls @ 000002240f49d180] Error in the pull function.
[tls @ 000002240f49d180] IO error: Error number -10054 occurred
[crypto @ 000002240f4b6500] Unable to open resource: https://eu-181.files.nextcdn.org/stream/06/953afaa12d05f0c5f89dda9488f2ca164c71170c5a3b977da50427001e4ef901/segment-47-v1-a1.ts
[tcp @ 000002240fe9ae40] Connection to tcp://eu-181.files.nextcdn.org:443 failed: Error number -138 occurred
[crypto @ 000002240fe58740] Unable to open resource: https://eu-181.files.nextcdn.org/stream/06/953afaa12d05f0c5f89dda9488f2ca164c71170c5a3b977da50427001e4ef901/segment-129-v1-a1.ts
[INFO] Downloading Episode 3...
[tls @ 000002333a4ddbc0] Error in the pull function.
[tls @ 000002333a4ddbc0] IO error: Error number -10054 occurred
[crypto @ 000002333a51f500] Unable to open resource: https://eu-181.files.nextcdn.org/stream/04/148be9ca1a1e0673725c0a94430519e6457b05593ef040ae33ecbcc31c0c54c4/segment-44-v1-a1.ts

from animepahe-dl.

KevCui avatar KevCui commented on September 22, 2024

Hey @Baburuti, thanks for the information. According to your confirmation that works, I pushed another changes to allow using the non-default node binary in the script.

You could try the latest commit with the command ANIMEPAHE_DL_NODE=node.exe ./animepahe-dl.sh .... This will tell the script to use node.exe, not the alias one. You could also put ANIMEPAHE_DL_NODE=node.exe in .bashrc, then use the script normally without setting this environment variable.

from animepahe-dl.

Baburuti avatar Baburuti commented on September 22, 2024

Hey @Baburuti, thanks for the information. According to your confirmation that works, I pushed another changes to allow using the non-default node binary in the script.

You could try the latest commit with the command ANIMEPAHE_DL_NODE=node.exe ./animepahe-dl.sh .... This will tell the script to use node.exe, not the alias one. You could also put ANIMEPAHE_DL_NODE=node.exe in .bashrc, then use the script normally without setting this environment variable.

The command works without any issues, It's downloading ^^

from animepahe-dl.

KevCui avatar KevCui commented on September 22, 2024

@Baburuti Awesome 👍

I'll then close this issue. @FierBub-42069 if you are still having troubles with the above solution, feel free to let me know.

from animepahe-dl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.