Comments (9)
Hey @Anas-Mughal, could you run the script with -d
to enable debug mode? If you don't mind, please paste the debug logs here and I will take a look. Thx!
from animepahe-dl.
@Anas-Mughal by the way, -t 1000000000000000000000000000000000000000000000000000000000
is too crazy, it won't be effective anyway with such a large number.
from animepahe-dl.
Hey @Anas-Mughal, could you run the script with
-d
to enable debug mode? If you don't mind, please paste the debug logs here and I will take a look. Thx!
~/animepahe-dl $ ./animepahe-dl.sh -a "Fire force" -e "1-24" -r "1080" -t "1000000000000000000000000000000000000000000000000000000000" -o "jpn"
~/animepahe-dl $ ls
LICENSE README.md 'Tokyo Revengers' anime.list animepahe-dl.sh
~/animepahe-dl $ rm -r -f 'Tokyo Revengers'/
~/animepahe-dl $ ls
LICENSE README.md anime.list animepahe-dl.sh
~/animepahe-dl $ ./animepahe-dl.sh -a "Fire force" -e "1-24" -r "1080" -t "1000000000000000000000000000000000000000000000000000000000" -o "jpn" -d
- getopts :hlda:s:e:r:t⭕ opt
- set_var
++ command -v curl - _CURL=/data/data/com.termux/files/usr/bin/curl
++ command -v jq - _JQ=/data/data/com.termux/files/usr/bin/jq
++ command -v fzf - _FZF=/data/data/com.termux/files/usr/bin/fzf
- [[ -z '' ]]
++ command -v node - _NODE=/data/data/com.termux/files/usr/bin/node
++ command -v ffmpeg - _FFMPEG=/data/data/com.termux/files/usr/bin/ffmpeg
- [[ 1000000000000000000000000000000000000000000000000000000000 -gt 1 ]]
++ command -v openssl - _OPENSSL=/data/data/com.termux/files/usr/bin/openssl
- _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 /data/data/com.termux/files/home/animepahe-dl/animepahe-dl.sh - _SCRIPT_PATH=/data/data/com.termux/files/home/animepahe-dl
- _ANIME_LIST_FILE=/data/data/com.termux/files/home/animepahe-dl/anime.list
- _SOURCE_FILE=.source.json
- [[ -n Fire force ]]
++ /data/data/com.termux/files/usr/bin/fzf -1
+++ search_anime_by_name 'Fire force'
+++ local d n
++++ get 'https://animepahe.com/api?m=search&q=Fire%20force'
++++ /data/data/com.termux/files/usr/bin/curl -sS -L 'https://animepahe.com/api?m=search&q=Fire%20force' --compressed
+++ d='{"total":16,"per_page":8,"current_page":1,"last_page":2,"from":1,"to":8,"data":[{"id":3335,"title":"Enen no Shouboutai","type":"TV","episodes":24,"status":"Finished Airing","season":"Summer","year":2019,"score":7.71,"poster":"https://i.animepahe.com/posters/a2c9a6d6914af5997f7f2fef88798a59f149487396ebf0061bdd3d373c2be8df.jpg","session":"3c90041e-2a44-92a5-fa70-8b52c83a23dc"},{"id":4024,"title":"Enen no Shouboutai: Ni no Shou","type":"TV","episodes":24,"status":"Finished Airing","season":"Summer","year":2020,"score":7.8,"poster":"https://i.animepahe.com/posters/cc7d32084dd07638901c1938b7cee1d243b2233e9d5dfa271354e76b7d13d596.jpg","session":"f69708f3-409c-e5bb-8784-5b014810ce0c"},{"id":604,"title":"Kaze no Tani no Nausica\u00e4","type":"Movie","episodes":1,"status":"Finished Airing","season":"Spring","year":1984,"score":8.36,"poster":"https://i.animepahe.com/posters/b058f733c0db1093bccacfc34eb2cb1fe0ee947bccb2e8609c22dbdfa9265e81.jpg","session":"99fe24c2-5426-a382-f36f-344f3bd964a5"},{"id":4079,"title":"Hanyou no Yashahime: Sengoku Otogizoushi","type":"TV","episodes":24,"status":"Finished Airing","season":"Fall","year":2020,"score":6.71,"poster":"https://i.animepahe.com/posters/961272a09a35e4f2479503e8ce438cacaf5efe9f2e0b3c0640a5668936c3eb57.jpg","session":"3da05128-9e78-f84a-3f11-8ee10b108869"},{"id":5104,"title":"Goodbye, Don Glees!","type":"Movie","episodes":1,"status":"Finished Airing","season":"Winter","year":2022,"score":7.32,"poster":"https://i.animepahe.com/posters/58a13ee940901ffe649a9c0eff120ad30c1b1f3894eaa38fa98015804cf07d7d.jpg","session":"846fe56a-cb03-04f2-9f06-79b8169f7d94"},{"id":5083,"title":"Hikari no Ou","type":"TV","episodes":10,"status":"Finished Airing","season":"Winter","year":2023,"score":6.43,"poster":"https://i.animepahe.com/posters/2ddf4b1cb10663a38a7985c538b6e692b8a60cf5a432bb08026c23eac50ea0d7.jpg","session":"7e421fc1-9384-bebe-7b73-b0b474dda0f6"},{"id":541,"title":"Naruto: Shippuuden Movie 3 - Hi no Ishi wo Tsugu Mono","type":"Movie","episodes":1,"status":"Finished Airing","season":"Summer","year":2009,"score":7.33,"poster":"https://i.animepahe.com/posters/748947c1a877bc77871355f7a3819f6d9a8fb8f70bc17eee910f8f2ba7ec0799.jpg","session":"2cb469c0-1b44-9889-7a36-43f552272283"},{"id":2192,"title":"Koukaku Kidoutai Arise: Ghost in the Shell - Border:4 Ghost Stands Alone","type":"Movie","episodes":1,"status":"Finished Airing","season":"Fall","year":2014,"score":7.43,"poster":"https://i.animepahe.com/posters/fe007f97ffb3f70dfbaaf167ce714fa62f7abb6093a5b335c6bfe72190169473.jpg","session":"4ec8f113-fce6-802a-4134-69748ce2da51"}]}'
++++ /data/data/com.termux/files/usr/bin/jq -r .total
+++ n=16
+++ [[ 16 -eq 0 ]]
+++ /data/data/com.termux/files/usr/bin/jq -r '.data[] | "[(.session)] (.title) "'
+++ tee -a /data/data/com.termux/files/home/animepahe-dl/anime.list
+++ remove_slug
+++ awk '-F] ' '{print $2}' - _ANIME_NAME='Enen no Shouboutai '
++ get_slug_from_name 'Enen no Shouboutai '
++ grep '] Enen no Shouboutai ' /data/data/com.termux/files/home/animepahe-dl/anime.list
++ tail -1
++ remove_brackets
++ awk '-F]' '{print $1}'
++ sed -E 's/^[//' - _ANIME_SLUG=3c90041e-2a44-92a5-fa70-8b52c83a23dc
- [[ 3c90041e-2a44-92a5-fa70-8b52c83a23dc == '' ]]
++ grep 3c90041e-2a44-92a5-fa70-8b52c83a23dc /data/data/com.termux/files/home/animepahe-dl/anime.list
++ tail -1
++ remove_slug
++ awk '-F] ' '{print $2}'
++ sed -E 's/[[:space:]]+$//'
++ sed -E 's/[^[:alnum:] ,\+\-\)\(]/_/g' - _ANIME_NAME='Enen no Shouboutai'
- [[ Enen no Shouboutai == '' ]]
- download_source
- local d p n
- mkdir -p '/data/data/com.termux/files/home/animepahe-dl/Enen no Shouboutai'
++ get_episode_list 3c90041e-2a44-92a5-fa70-8b52c83a23dc 1
++ get 'https://animepahe.com/api?m=release&id=3c90041e-2a44-92a5-fa70-8b52c83a23dc&sort=episode_asc&page=1'
++ /data/data/com.termux/files/usr/bin/curl -sS -L 'https://animepahe.com/api?m=release&id=3c90041e-2a44-92a5-fa70-8b52c83a23dc&sort=episode_asc&page=1' --compressed - d='{"total":24,"per_page":30,"current_page":1,"last_page":1,"next_page_url":null,"prev_page_url":null,"from":1,"to":24,"data":[{"id":27101,"anime_id":3335,"episode":1,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/ab4ee586b2775130b82f277b1c8b32b7c921f218f3cd11640470dbe2959dd9c6.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"33a4d1782f990652ded02e2f59b25968ae5daef710c8389a68e777f355818c11","filler":0,"created_at":"2019-07-05 17:39:47"},{"id":27472,"anime_id":3335,"episode":2,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/636e93fdea7fbb752103585e1f184734addb8f5417e1d9de8252dab1708c42b6.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"5e8f9c369caca241ff8082765e7fedd93ae48b5eee94f96c493bb0bcaf28e821","filler":0,"created_at":"2019-07-12 17:37:41"},{"id":28289,"anime_id":3335,"episode":3,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/7852b9005a771f2b7468e7261d727ceb57c76fadfa9e7b6a8bb658b3d62ea599.jpg","disc":"","audio":"jpn","duration":"00:23:34","session":"86f8b0635eaadc57b5e74cc8a95f244063618f35f2be551450abd57cf5eb76e4","filler":0,"created_at":"2019-07-26 17:39:07"},{"id":28745,"anime_id":3335,"episode":4,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/3ea92228fb4b79721aafeefbc8a14c671f06565adcfd086c227998b910082bc0.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"cd41d1d60a18fb47738c7fe0cda440f3ece2184584d77d2a1329c821c32528be","filler":0,"created_at":"2019-08-02 17:39:34"},{"id":29135,"anime_id":3335,"episode":5,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/ce7c6dcce2c33b3fdef73c9bd1f1188afde46ad6a029d84e7d2b814f200fd2d8.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"8a8c1027685dc07279d479024c5fa194efb02a9f053140cfe92a1ac34e2f6c9c","filler":0,"created_at":"2019-08-09 17:39:41"},{"id":29631,"anime_id":3335,"episode":6,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/b51110a5af2d28bce58120c0ef4c059d83dc69fb87366df8c1a615981a6d677b.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"7744c37c93d4500015173dcbb70b37d659a3ba3a9d6274484c1ab879208a45fc","filler":0,"created_at":"2019-08-16 17:56:22"},{"id":30129,"anime_id":3335,"episode":7,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/323376d8e64600a465940857d79874d6d487a70157e9f20f0813ab624509250f.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"99f84bf5590e415a176f7746a6169307f1caf1f96d223a32c4a792628a09f7e6","filler":0,"created_at":"2019-08-23 17:40:02"},{"id":30538,"anime_id":3335,"episode":8,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/11382920aae4dd3236529635d1f579b43e45c2876f5b0b802f9fa0d2c01ef662.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"d7eb1512dfd71de5ffb5fc31935bf7b062e21a892c86a8cc060b203518e5686c","filler":0,"created_at":"2019-08-30 17:38:53"},{"id":30762,"anime_id":3335,"episode":9,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/42d4ff92d8553989baee8d99e221c74d4bc0314b6461f3ccba8c89f5391ce7b7.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"9939fa0e1d74f916c0e7ad3c0bbad0377c8d00e01f5ccb8d8aa285b51ac5a6a5","filler":0,"created_at":"2019-09-06 17:39:54"},{"id":31073,"anime_id":3335,"episode":10,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/17b2b0fe22dd09d4e2382957726621e7d151a635ace18d13ded3c27ce505ba0f.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"2f44f4dc15b7533ecba3434e75485d1e6fe473d899e574b6d349077a7eda6ae1","filler":0,"created_at":"2019-09-13 17:50:06"},{"id":31398,"anime_id":3335,"episode":11,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/b1577c56dd83cc02a436a4fd5940039252779b4e68d5ca1b9658829a8ea8feef.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"23f7a0271c20a24a6d4e874890a70bab9c00164eaf46e98c4904255ae76f9d1c","filler":0,"created_at":"2019-09-20 17:58:16"},{"id":32603,"anime_id":3335,"episode":12,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/bd616b16446a13717c70b57d549c3e7990c07609548df261734f7697c8959cf5.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"50458c9c37fdbef8d72cd64e0d684e7d8980f535c609b6df4c94ac622e8a6d12","filler":0,"created_at":"2019-10-11 17:53:42"},{"id":33008,"anime_id":3335,"episode":13,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/2ea3448c21ca9a24a49c76751ee23099500a6839de219128209a2010bb163f2a.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"e654be5890717813bc7e7ba80c6f6f01779f551a37caecd589de8b5663714bf7","filler":0,"created_at":"2019-10-18 17:39:47"},{"id":33309,"anime_id":3335,"episode":14,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/324b813098abc74248c0552f19089d01e4c4f8636d27cafa37ee35a6968c2340.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"0f8085b12d01a3dff77a068775be6fb91637038f1a9c2c0bcc7ab75b7d9c2059","filler":0,"created_at":"2019-10-25 17:40:41"},{"id":33705,"anime_id":3335,"episode":15,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/81b9cf70f30ea59bd16cf13479b57970bc5af705e5bf1f0d9365458cfb2f6576.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"9b1065004d0c236b7cbe8a7c7014a3bc2fd46f10874fd788fe1fc0341d50d400","filler":0,"created_at":"2019-11-01 17:42:53"},{"id":34205,"anime_id":3335,"episode":16,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/cb313e583e8dd6034821bd4716244238ffaecfbbd31c92d43ad898aa377d1747.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"e280dfd07321ac44f81d7093086ccf8fb174ecc530816e4efee0808065523ce2","filler":0,"created_at":"2019-11-08 18:37:54"},{"id":34645,"anime_id":3335,"episode":17,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/bb50d203fe48fc01ed59bee86a39debb8574a9960a9b263eb2caa8db2250f005.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"55e6db1d12e0fcde46878b665a1e39ae62db75e45ee81b3a96a2eaad88254d59","filler":0,"created_at":"2019-11-15 18:38:02"},{"id":35249,"anime_id":3335,"episode":18,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/68ce08dba701e7f5fae181a3cf25bff2fe2aea1f77ffda33c9c5e9e3857db08f.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"4f19a262d1c11c6e1216845c7b69433e4f7b183af631707017d5c6c81bf491f5","filler":0,"created_at":"2019-11-22 18:36:17"},{"id":35911,"anime_id":3335,"episode":19,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/c01323b244b84a26c052790c456b4ed9e0410fd49d9cbbf9eaa620a2105972cc.jpg","disc":"","audio":"jpn","duration":"00:23:42","session":"75200e42fad4b957ebee12c6f9b467a5eae5e7fedb0a927827c940a10803d85c","filler":0,"created_at":"2019-11-29 18:37:45"},{"id":36413,"anime_id":3335,"episode":20,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/99e74a1c7f8557c6e9f2565622da05c28369f3c13b555a4176287fac29277328.jpg","disc":"","audio":"jpn","duration":"00:23:42","session":"abf97238f1f9068f002d839d118abcecd482b48b6ae9f54f5e4b6a0578d8568b","filler":0,"created_at":"2019-12-06 17:46:00"},{"id":37415,"anime_id":3335,"episode":21,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/28324e63337f7373d623b451d54870bf2be2174e7c2a2c30cdcc213a6bd565e1.jpg","disc":"","audio":"jpn","duration":"00:23:42","session":"97aebfce393a74d212b6961d87571a9b8bac3e653201db5a94717dca9fae6622","filler":0,"created_at":"2019-12-13 17:38:42"},{"id":37784,"anime_id":3335,"episode":22,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/b83616839d73c6552e6619ef682f02dc0faaa744c3bd9a60ac612a90e52516b7.jpg","disc":"","audio":"jpn","duration":"00:23:42","session":"2454945ccd6998e3493410297d850a1d95ea956e2b6042836bea9a6ad30acea0","filler":0,"created_at":"2019-12-20 17:38:23"},{"id":38207,"anime_id":3335,"episode":23,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/b3fd8d70bd4470e9a5e84ef7797c0bb980b984481d2556155f265657ef954610.jpg","disc":"","audio":"jpn","duration":"00:23:42","session":"b1165708236911dbde3a15b8aecfe0b4a9b5dc525a7f195777aa32c3b5233e29","filler":0,"created_at":"2019-12-27 17:37:05"},{"id":38210,"anime_id":3335,"episode":24,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/230ef84c605670206e4328615c9359734895a1b82387f4e8cdbfb54e808eaf3a.jpg","disc":"","audio":"jpn","duration":"00:23:42","session":"b22c1fbc5ddc221fbe2f3896a86af1edee018fb490ae3ddee79b092a689646d3","filler":0,"created_at":"2019-12-27 19:42:00"}]}'
++ /data/data/com.termux/files/usr/bin/jq -r .last_page - p=1
- [[ 1 -gt 1 ]]
- echo '{"total":24,"per_page":30,"current_page":1,"last_page":1,"next_page_url":null,"prev_page_url":null,"from":1,"to":24,"data":[{"id":27101,"anime_id":3335,"episode":1,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/ab4ee586b2775130b82f277b1c8b32b7c921f218f3cd11640470dbe2959dd9c6.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"33a4d1782f990652ded02e2f59b25968ae5daef710c8389a68e777f355818c11","filler":0,"created_at":"2019-07-05 17:39:47"},{"id":27472,"anime_id":3335,"episode":2,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/636e93fdea7fbb752103585e1f184734addb8f5417e1d9de8252dab1708c42b6.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"5e8f9c369caca241ff8082765e7fedd93ae48b5eee94f96c493bb0bcaf28e821","filler":0,"created_at":"2019-07-12 17:37:41"},{"id":28289,"anime_id":3335,"episode":3,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/7852b9005a771f2b7468e7261d727ceb57c76fadfa9e7b6a8bb658b3d62ea599.jpg","disc":"","audio":"jpn","duration":"00:23:34","session":"86f8b0635eaadc57b5e74cc8a95f244063618f35f2be551450abd57cf5eb76e4","filler":0,"created_at":"2019-07-26 17:39:07"},{"id":28745,"anime_id":3335,"episode":4,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/3ea92228fb4b79721aafeefbc8a14c671f06565adcfd086c227998b910082bc0.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"cd41d1d60a18fb47738c7fe0cda440f3ece2184584d77d2a1329c821c32528be","filler":0,"created_at":"2019-08-02 17:39:34"},{"id":29135,"anime_id":3335,"episode":5,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/ce7c6dcce2c33b3fdef73c9bd1f1188afde46ad6a029d84e7d2b814f200fd2d8.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"8a8c1027685dc07279d479024c5fa194efb02a9f053140cfe92a1ac34e2f6c9c","filler":0,"created_at":"2019-08-09 17:39:41"},{"id":29631,"anime_id":3335,"episode":6,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/b51110a5af2d28bce58120c0ef4c059d83dc69fb87366df8c1a615981a6d677b.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"7744c37c93d4500015173dcbb70b37d659a3ba3a9d6274484c1ab879208a45fc","filler":0,"created_at":"2019-08-16 17:56:22"},{"id":30129,"anime_id":3335,"episode":7,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/323376d8e64600a465940857d79874d6d487a70157e9f20f0813ab624509250f.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"99f84bf5590e415a176f7746a6169307f1caf1f96d223a32c4a792628a09f7e6","filler":0,"created_at":"2019-08-23 17:40:02"},{"id":30538,"anime_id":3335,"episode":8,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/11382920aae4dd3236529635d1f579b43e45c2876f5b0b802f9fa0d2c01ef662.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"d7eb1512dfd71de5ffb5fc31935bf7b062e21a892c86a8cc060b203518e5686c","filler":0,"created_at":"2019-08-30 17:38:53"},{"id":30762,"anime_id":3335,"episode":9,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/42d4ff92d8553989baee8d99e221c74d4bc0314b6461f3ccba8c89f5391ce7b7.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"9939fa0e1d74f916c0e7ad3c0bbad0377c8d00e01f5ccb8d8aa285b51ac5a6a5","filler":0,"created_at":"2019-09-06 17:39:54"},{"id":31073,"anime_id":3335,"episode":10,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/17b2b0fe22dd09d4e2382957726621e7d151a635ace18d13ded3c27ce505ba0f.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"2f44f4dc15b7533ecba3434e75485d1e6fe473d899e574b6d349077a7eda6ae1","filler":0,"created_at":"2019-09-13 17:50:06"},{"id":31398,"anime_id":3335,"episode":11,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/b1577c56dd83cc02a436a4fd5940039252779b4e68d5ca1b9658829a8ea8feef.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"23f7a0271c20a24a6d4e874890a70bab9c00164eaf46e98c4904255ae76f9d1c","filler":0,"created_at":"2019-09-20 17:58:16"},{"id":32603,"anime_id":3335,"episode":12,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/bd616b16446a13717c70b57d549c3e7990c07609548df261734f7697c8959cf5.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"50458c9c37fdbef8d72cd64e0d684e7d8980f535c609b6df4c94ac622e8a6d12","filler":0,"created_at":"2019-10-11 17:53:42"},{"id":33008,"anime_id":3335,"episode":13,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/2ea3448c21ca9a24a49c76751ee23099500a6839de219128209a2010bb163f2a.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"e654be5890717813bc7e7ba80c6f6f01779f551a37caecd589de8b5663714bf7","filler":0,"created_at":"2019-10-18 17:39:47"},{"id":33309,"anime_id":3335,"episode":14,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/324b813098abc74248c0552f19089d01e4c4f8636d27cafa37ee35a6968c2340.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"0f8085b12d01a3dff77a068775be6fb91637038f1a9c2c0bcc7ab75b7d9c2059","filler":0,"created_at":"2019-10-25 17:40:41"},{"id":33705,"anime_id":3335,"episode":15,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/81b9cf70f30ea59bd16cf13479b57970bc5af705e5bf1f0d9365458cfb2f6576.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"9b1065004d0c236b7cbe8a7c7014a3bc2fd46f10874fd788fe1fc0341d50d400","filler":0,"created_at":"2019-11-01 17:42:53"},{"id":34205,"anime_id":3335,"episode":16,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/cb313e583e8dd6034821bd4716244238ffaecfbbd31c92d43ad898aa377d1747.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"e280dfd07321ac44f81d7093086ccf8fb174ecc530816e4efee0808065523ce2","filler":0,"created_at":"2019-11-08 18:37:54"},{"id":34645,"anime_id":3335,"episode":17,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/bb50d203fe48fc01ed59bee86a39debb8574a9960a9b263eb2caa8db2250f005.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"55e6db1d12e0fcde46878b665a1e39ae62db75e45ee81b3a96a2eaad88254d59","filler":0,"created_at":"2019-11-15 18:38:02"},{"id":35249,"anime_id":3335,"episode":18,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/68ce08dba701e7f5fae181a3cf25bff2fe2aea1f77ffda33c9c5e9e3857db08f.jpg","disc":"","audio":"jpn","duration":"00:23:57","session":"4f19a262d1c11c6e1216845c7b69433e4f7b183af631707017d5c6c81bf491f5","filler":0,"created_at":"2019-11-22 18:36:17"},{"id":35911,"anime_id":3335,"episode":19,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/c01323b244b84a26c052790c456b4ed9e0410fd49d9cbbf9eaa620a2105972cc.jpg","disc":"","audio":"jpn","duration":"00:23:42","session":"75200e42fad4b957ebee12c6f9b467a5eae5e7fedb0a927827c940a10803d85c","filler":0,"created_at":"2019-11-29 18:37:45"},{"id":36413,"anime_id":3335,"episode":20,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/99e74a1c7f8557c6e9f2565622da05c28369f3c13b555a4176287fac29277328.jpg","disc":"","audio":"jpn","duration":"00:23:42","session":"abf97238f1f9068f002d839d118abcecd482b48b6ae9f54f5e4b6a0578d8568b","filler":0,"created_at":"2019-12-06 17:46:00"},{"id":37415,"anime_id":3335,"episode":21,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/28324e63337f7373d623b451d54870bf2be2174e7c2a2c30cdcc213a6bd565e1.jpg","disc":"","audio":"jpn","duration":"00:23:42","session":"97aebfce393a74d212b6961d87571a9b8bac3e653201db5a94717dca9fae6622","filler":0,"created_at":"2019-12-13 17:38:42"},{"id":37784,"anime_id":3335,"episode":22,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/b83616839d73c6552e6619ef682f02dc0faaa744c3bd9a60ac612a90e52516b7.jpg","disc":"","audio":"jpn","duration":"00:23:42","session":"2454945ccd6998e3493410297d850a1d95ea956e2b6042836bea9a6ad30acea0","filler":0,"created_at":"2019-12-20 17:38:23"},{"id":38207,"anime_id":3335,"episode":23,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/b3fd8d70bd4470e9a5e84ef7797c0bb980b984481d2556155f265657ef954610.jpg","disc":"","audio":"jpn","duration":"00:23:42","session":"b1165708236911dbde3a15b8aecfe0b4a9b5dc525a7f195777aa32c3b5233e29","filler":0,"created_at":"2019-12-27 17:37:05"},{"id":38210,"anime_id":3335,"episode":24,"episode2":0,"edition":"","title":"","snapshot":"https://i.animepahe.com/snapshots/230ef84c605670206e4328615c9359734895a1b82387f4e8cdbfb54e808eaf3a.jpg","disc":"","audio":"jpn","duration":"00:23:42","session":"b22c1fbc5ddc221fbe2f3896a86af1edee018fb490ae3ddee79b092a689646d3","filler":0,"created_at":"2019-12-27 19:42:00"}]}'
- [[ -z 1-24 ]]
- download_episodes 1-24
- local origel el uniqel
- origel=()
- [[ 1-24 == , ]]
- origel+=("$1")
- el=()
- for i in "${origel[@]}"
- [[ 1-24 == * ]]
- [[ 1-24 == - ]]
++ awk -F - '{print $1}' - s=1
++ awk -F - '{print $2}' - e=24
++ seq 1 24 - 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")
- 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 20 21 22 23 24
++ sort -n -u
++ tr '\n' ' ' - [[ 24 == 0 ]]
- for e in "${uniqel[@]}"
- download_episode 1
- local num=1 l pl erropt= v
- v='/data/data/com.termux/files/home/animepahe-dl/Enen no Shouboutai/1.mp4'
++ get_episode_link 1
++ local s o l r=
+++ /data/data/com.termux/files/usr/bin/jq -r '.data[] | select((.episode | tonumber) == ($num | tonumber)) | .session' --arg num 1
++ s=33a4d1782f990652ded02e2f59b25968ae5daef710c8389a68e777f355818c11
++ [[ 33a4d1782f990652ded02e2f59b25968ae5daef710c8389a68e777f355818c11 == '' ]]
+++ /data/data/com.termux/files/usr/bin/curl --compressed -sSL https://animepahe.com/play/3c90041e-2a44-92a5-fa70-8b52c83a23dc/33a4d1782f990652ded02e2f59b25968ae5daef710c8389a68e777f355818c11
++ o='
Click to load
[Process completed (signal 9) - press Enter]
from animepahe-dl.
Hey @Anas-Mughal, from the logs, it looks like a network issue. Are you able to watch this anime on animepahe site? If yes, then are you able to download it without -t
parameter?
from animepahe-dl.
Hey @Anas-Mughal, from the logs, it looks like a network issue. Are you able to watch this anime on animepahe site? If yes, then are you able to download it without
-t
parameter?
Yeah I'm able todownload it without -t parameter but network speed is
Too slow. And I'm able to watch anime on animepahe.
from animepahe-dl.
Hey @Anas-Mughal, from the logs, it looks like a network issue. Are you able to watch this anime on animepahe site? If yes, then are you able to download it without
-t
parameter?
Yeah I'm able todownload it without -t parameter but network speed is
Too slow. And I'm able to watch anime on animepahe.
from animepahe-dl.
Hey @Anas-Mughal, try with a smaller number with -t
parameter, say -t 10
to see if it can help. Otherwise, it's apparently a network issue and I don't think we can do anything in this script to address this issue... sorry
from animepahe-dl.
Hey @Anas-Mughal, try with a smaller number with
-t
parameter, say-t 10
to see if it can help. Otherwise, it's apparently a network issue and I don't think we can do anything in this script to address this issue...
What could be a possible problem with my network that is causing this problem?
&
Reducing the value of parameter -t to 10 shows the same error.
from animepahe-dl.
@Anas-Mughal I don't know what's the exact problem. As you said network speed is too slow
, it could be either your network is actually slow, or it may be caused by the network throttling configured on the server side. You can see the error in your log: curl: (28) SSL connection timeout
that shows the timeout caused by the network issue.
from animepahe-dl.
Related Issues (20)
- unsupported audio HOT 5
- [ERROR] jq command not found! HOT 2
- is there a similar repo but for movies and tvshows HOT 2
- Missing video list HOT 6
- doesn't use any command HOT 1
- Getting error: Failed to connect to eu-02.files.nextcdn.org HOT 4
- Idk bruh
- synthax error HOT 7
- Error connecting HOT 14
- When dowloading using batch downloader chapters are missing. HOT 4
- Error. While downloading HOT 8
- EPISODES DOWNLOADED IN DUB INSTEAD OF USUAL SUB. OVERLORD II 6-13. OVERLORD III and OVERLORD IV HOT 2
- Issue with certificate revocation status HOT 4
- when it fetches the list it does not fetch the slugs or names HOT 14
- jq: parse error HOT 6
- issuses again HOT 3
- Episode names HOT 2
- Parse error HOT 4
- jq: parse error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from animepahe-dl.