KevCui / soaper-dl

:tv: Soaper downloader: download TV series and movies in your terminal
Do What The F*ck You Want To Public License
69 stars 19 forks source link

Curl error message #27

Closed cyber-hunt7 closed 1 year ago

cyber-hunt7 commented 1 year ago

I am getting this error message. Does anyone know how to fix it?

curl (3) url using bad/illegal format or missing url

KevCui commented 1 year ago

Hey @cyber-hunt7, if you run command with flag -d to enable debug logs and paste logs here, I can take a look. Thanks!

cyber-hunt7 commented 1 year ago

Hi, here is the output.

Notifications

If the movie you like is not online, please find it below or manually add an update request.

The administrator will complete the processing within 3 hours.

To prevent abuse of requests, please log in before submitting!

Thank you for your support.

Related Movies
    No matches found.
Related TVs

Titles includes keyword '\''runaways'\'' :

' +++ /usr/bin/pup .thumbnail ++ t='

2017-11-21
Marvel's Runaways [2×13]

' +++ grep -c 'class="thumbnail' ++ len=1 ++ [[ -z 1 ]] ++ [[ 1 == \0 ]] ++ true +++ seq 1 1 ++ for i in $(seq 1 "$len") +++ /usr/bin/pup '.thumbnail:nth-child(1) h5 a:nth-child(1) text{}' +++ sed_remove_space +++ sed -E '/^[[:space:]]$/d;s/^[[:space:]]+//;s/[[:space:]]+$//' ++ n='Marvel's Runaways' +++ /usr/bin/pup '.thumbnail:nth-child(1) h5 a:nth-child(1) attr{href}' +++ sed_remove_space +++ sed -E '/^[[:space:]]$/d;s/^[[:space:]]+//;s/[[:space:]]+$//' ++ l=/tv_X5vgy29Gm0.html +++ /usr/bin/pup --charset UTF-8 '.thumbnail:nth-child(1) .label-info text{}' +++ sed_remove_space +++ sed -E '/^[[:space:]]*$/d;s/^[[:space:]]+//;s/[[:space:]]+$//' ++ lb=2017-11-21 ++ echo '[/tv_X5vgy29Gm0.html][2017-11-21] Marvel's Runaways' ++ tee -a /home/tremaine/soaper-dl/search.list

Location : Home >> TV Series >> Marvel'\''s Runaways

' ++ /usr/bin/pup .alert-info-ex

KevCui commented 1 year ago

Hey @cyber-hunt7, thanks! It should be fixed in the latest commit. Give it a try :)

cyber-hunt7 commented 1 year ago

Awesome thank you very much, it is working now.

cyber-hunt7 commented 1 year ago

I am getting that message again when i try to get hijack a new tv show

KevCui commented 1 year ago

@cyber-hunt7 If you got logs, share with me. I will check it later.

cyber-hunt7 commented 1 year ago

Notifications

If the movie you like is not online, please find it below or manually add an update request.

The administrator will complete the processing within 3 hours.

To prevent abuse of requests, please log in before submitting!

Thank you for your support.

Related Movies

Titles includes keyword '\''secret invasion'\'' :

Related TVs

Titles includes keyword '\''secret invasion'\'' :

2023-06-21

' +++ /usr/bin/pup .thumbnail ++ t='

1964
The Secret Invasion

2023-06-21
Secret Invasion [1×4]
' +++ grep -c 'class="thumbnail' ++ len=2 ++ [[ -z 2 ]] ++ [[ 2 == \0 ]] ++ true +++ seq 1 2 ++ for i in $(seq 1 "$len") +++ /usr/bin/pup '.thumbnail:nth-child(1) h5 a:nth-child(1) text{}' +++ sed_remove_space +++ sed -E '/^[[:space:]]*$/d;s/^[[:space:]]+//;s/[[:space:]]+$//' ++ n='The Secret Invasion' +++ /usr/bin/pup '.thumbnail:nth-child(1) h5 a:nth-child(1) attr{href}' +++ sed_remove_space +++ sed -E '/^[[:space:]]*$/d;s/^[[:space:]]+//;s/[[:space:]]+$//' ++ l=/movie_l5KDqlMkp1.html +++ /usr/bin/pup --charset UTF-8 '.thumbnail:nth-child(1) .label-info text{}' +++ sed_remove_space +++ sed -E '/^[[:space:]]*$/d;s/^[[:space:]]+//;s/[[:space:]]+$//' ++ lb=1964 ++ echo '[/movie_l5KDqlMkp1.html][1964] The Secret Invasion' ++ tee -a /home/tremaine/soaper-dl/search.list ++ for i in $(seq 1 "$len") +++ /usr/bin/pup '.thumbnail:nth-child(2) h5 a:nth-child(1) text{}' +++ sed_remove_space +++ sed -E '/^[[:space:]]*$/d;s/^[[:space:]]+//;s/[[:space:]]+$//' ++ n='Secret Invasion' +++ /usr/bin/pup '.thumbnail:nth-child(2) h5 a:nth-child(1) attr{href}' +++ sed_remove_space +++ sed -E '/^[[:space:]]*$/d;s/^[[:space:]]+//;s/[[:space:]]+$//' ++ l=/tv_538gam5gMY.html +++ /usr/bin/pup --charset UTF-8 '.thumbnail:nth-child(2) .label-info text{}' +++ sed_remove_space +++ sed -E '/^[[:space:]]*$/d;s/^[[:space:]]+//;s/[[:space:]]+$//' ++ lb=2023-06-21 ++ echo '[/tv_538gam5gMY.html][2023-06-21] Secret Invasion' ++ tee -a /home/tremaine/soaper-dl/search.list + mlist='[/movie_l5KDqlMkp1.html][1964] The Secret Invasion [/tv_538gam5gMY.html][2023-06-21] Secret Invasion' ++ /usr/bin/fzf -1 ++ awk '-F]' '{print $1}' ++ sed -E 's/^\[//' +++ sort -u + _MEDIA_PATH=/tv_538gam5gMY.html + [[ -z /tv_538gam5gMY.html ]] + [[ ! -s /home/tremaine/soaper-dl/search.list ]] ++ sort -u /home/tremaine/soaper-dl/search.list ++ grep /tv_538gam5gMY.html ++ awk -F '] ' '{print $2}' ++ sed -E 's/\//_/g' + _MEDIA_NAME='Secret Invasion' + [[ Secret Invasion == '' ]] + download_source + local d a + mkdir -p '/home/tremaine/soaper-dl/Secret Invasion' ++ /usr/bin/curl -sS https://soaper.tv/tv_538gam5gMY.html + d=' Soaper.Tv
Location : Home >> TV Series >> Secret Invasion

Creator :

Stars :

Samuel L. Jackson, Ben Mendelsohn, Cobie Smulders, Emilia Clarke, Olivia Colman

Genre :

Action, Adventure, Drama, Fantasy, Science Fiction, Thriller

Release :

2023-06-21

Rating :

0.0 from IMDb

Story :

Nick Fury and Talos discover a faction of shapeshifting Skrulls who have been infiltrating Earth for years.

Last Updated :

S1E4:Lost in Storage

Similar TV Series

' ++ /usr/bin/pup .alert-info-ex + a='

Season1 :

' + is_movie /tv_538gam5gMY.html + [[ /tv_538gam5gMY.html =~ ^/movie_.* ]] + return 1 + echo '

Season1 :

' + is_movie /tv_538gam5gMY.html + [[ /tv_538gam5gMY.html =~ ^/movie_.* ]] + return 1 + create_episode_list + local slen sf t l sn et el + sf='/home/tremaine/soaper-dl/Secret Invasion/.source.html' + el='/home/tremaine/soaper-dl/Secret Invasion/.episode.link' + et='/home/tremaine/soaper-dl/Secret Invasion/.episode.title' ++ grep 'alert alert-info-ex' -c '/home/tremaine/soaper-dl/Secret Invasion/.source.html' + slen=1 + true + true ++ seq 1 -1 1 + for i in $(seq "$slen" -1 1) + sn=1 ++ /usr/bin/pup '.alert-info-ex:nth-child(1) div text{}' ++ sed_remove_space ++ sed -E '/^[[:space:]]*$/d;s/^[[:space:]]+//;s/[[:space:]]+$//' ++ tac ++ awk '{print "[" num "." NR "] " $0}' num=1 + t='[1.1] 1.Resurrection [1.2] 2.Promises [1.3] 3.Reactor Me Once... [1.4] 4.Lost in Storage' ++ /usr/bin/pup '.alert-info-ex:nth-child(1) div a attr{href}' ++ sed_remove_space ++ sed -E '/^[[:space:]]*$/d;s/^[[:space:]]+//;s/[[:space:]]+$//' ++ tac ++ awk '{print "[" num "." NR "] " $0}' num=1 + l='[1.1] /episode_PnG6n8eG7v.html [1.2] /episode_LwD8OQ9k9a.html [1.3] /episode_lOGwWdxGV0.html [1.4] /episode_vXD2Kn8gLY.html' + echo '[1.1] 1.Resurrection [1.2] 2.Promises [1.3] 3.Reactor Me Once... [1.4] 4.Lost in Storage' + echo '[1.1] /episode_PnG6n8eG7v.html [1.2] /episode_LwD8OQ9k9a.html [1.3] /episode_lOGwWdxGV0.html [1.4] /episode_vXD2Kn8gLY.html' + [[ -z 1.3-1.4 ]] + download_episodes 1.3-1.4 + local origel el uniqel se + origel=() + [[ 1.3-1.4 == *\,* ]] + origel+=("$1") + el=() + for i in "${origel[@]}" + [[ 1.3-1.4 == *\-* ]] ++ awk -F - '{print $1}' ++ awk -F . '{print $1}' + se=1 ++ awk -F - '{print $1}' ++ awk -F . '{print $2}' + s=3 ++ awk -F - '{print $2}' ++ awk -F . '{print $2}' + e=4 ++ seq 3 4 + for n in $(seq "$s" "$e") + el+=("${se}.${n}") + for n in $(seq "$s" "$e") + el+=("${se}.${n}") + IFS=' ' + read -ra uniqel ++ printf '%s\n' 1.3 1.4 ++ sort -u -V ++ tr '\n' ' ' + [[ 2 == 0 ]] + for e in "${uniqel[@]}" + download_episode 1.3 + local l ++ grep '\[1.3\] ' '/home/tremaine/soaper-dl/Secret Invasion/.episode.link' ++ awk -F '] ' '{print $2}' + l=/episode_lOGwWdxGV0.html + [[ /episode_lOGwWdxGV0.html != *\/* ]] + download_media /episode_lOGwWdxGV0.html 1.3 + local u d el sl p + download_media_html /episode_lOGwWdxGV0.html + /usr/bin/curl -sS https://soaper.tv/episode_lOGwWdxGV0.html + is_movie /tv_538gam5gMY.html + [[ /tv_538gam5gMY.html =~ ^/movie_.* ]] + return 1 + u=GetEInfoAjax ++ sed 's/.*e_//;s/.html//' + p=lOGwWdxGV0 ++ /usr/bin/curl -sS https://soaper.tv/home/index/GetEInfoAjax -H 'referer: https://https://soaper.tv/episode_lOGwWdxGV0.html' --data-raw 'pass=lOGwWdxGV0¶m=ddd&extra=&e2=0' + d='{"key":true,"val":"https:\/\/soaper.tv\/home\/index\/TVM3U8?key=WnzvEn2RQOuWV6nB1drMT89LP83zwNCxOA8YoPeET46xbMoOrNf5nN3ZBJPQHVrPw8w8zxsXloqXxE7rtOZYo9vZa7h1ly91rWLeSAxKRYe.m3u8","vtt":"https:\/\/tv.soaper.live\/hls\/2023\/secret_invasion\/Season1\/3\/vtt\/\/thumb.vtt","val_bak":"https:\/\/soaper.tv\/home\/index\/TVM3U8?key=WnzvEn2RQOuWV6nB1drMT89LP83zwNCxOA8YoPeET46xbMoOrNf5nN3ZBJPQHVrPw8w8zxsXloqXxE7rtOZYo9vZa7h1ly91rWLeSAxKRYe.m3u8","pos":0,"type":"m3u8","subs":[{"id":114436,"movieId":null,"tvId":489,"episodeId":19696,"default":0,"IsShow":1,"name":"Chinese (Hong Kong SAR China).srt","path":"https:\/\/srt.soaper.live\/\/tv\/2023\/secret_invasion\/Season1\/3\/Chinese (Hong Kong SAR China).srt","downlink":null,"source_file_name":null,"createtime":1688549100},{"id":114437,"movieId":null,"tvId":489,"episodeId":19696,"default":0,"IsShow":1,"name":"Chinese Traditional.srt","path":"https:\/\/srt.soaper.live\/\/tv\/2023\/secret_invasion\/Season1\/3\/Chinese Traditional.srt","downlink":null,"source_file_name":null,"createtime":1688549100},{"id":114438,"movieId":null,"tvId":489,"episodeId":19696,"default":0,"IsShow":1,"name":"Czech.srt","path":"https:\/\/srt.soaper.live\/\/tv\/2023\/secret_invasion\/Season1\/3\/Czech.srt","downlink":null,"source_file_name":null,"createtime":1688549100},{"id":114439,"movieId":null,"tvId":489,"episodeId":19696,"default":0,"IsShow":1,"name":"Danish.srt","path":"https:\/\/srt.soaper.live\/\/tv\/2023\/secret_invasion\/Season1\/3\/Danish.srt","downlink":null,"source_file_name":null,"createtime":1688549100},{"id":114440,"movieId":null,"tvId":489,"episodeId":19696,"default":0,"IsShow":1,"name":"Dutch.srt","path":"https:\/\/srt.soaper.live\/\/tv\/2023\/secret_invasion\/Season1\/3\/Dutch.srt","downlink":null,"source_file_name":null,"createtime":1688549100},{"id":114435,"movieId":null,"tvId":489,"episodeId":19696,"default":0,"IsShow":1,"name":"English [SDH].srt","path":"https:\/\/srt.soaper.live\/\/tv\/2023\/secret_invasion\/Season1\/3\/English [SDH].srt","downlink":null,"source_file_name":null,"createtime":1688549100},{"id":114441,"movieId":null,"tvId":489,"episodeId":19696,"default":0,"IsShow":1,"name":"European Spanish.srt","path":"https:\/\/srt.soaper.live\/\/tv\/2023\/secret_invasion\/Season1\/3\/European Spanish.srt","downlink":null,"source_file_name":null,"createtime":1688549100},{"id":114442,"movieId":null,"tvId":489,"episodeId":19696,"default":0,"IsShow":1,"name":"Finnish.srt","path":"https:\/\/srt.soaper.live\/\/tv\/2023\/secret_invasion\/Season1\/3\/Finnish.srt","downlink":null,"source_file_name":null,"createtime":1688549100},{"id":114444,"movieId":null,"tvId":489,"episodeId":19696,"default":0,"IsShow":1,"name":"French Canadian.srt","path":"https:\/\/srt.soaper.live\/\/tv\/2023\/secret_invasion\/Season1\/3\/French Canadian.srt","downlink":null,"source_file_name":null,"createtime":1688549100},{"id":114443,"movieId":null,"tvId":489,"episodeId":19696,"default":0,"IsShow":1,"name":"French.srt","path":"https:\/\/srt.soaper.live\/\/tv\/2023\/secret_invasion\/Season1\/3\/French.srt","downlink":null,"source_file_name":null,"createtime":1688549100},{"id":114445,"movieId":null,"tvId":489,"episodeId":19696,"default":0,"IsShow":1,"name":"German.srt","path":"https:\/\/srt.soaper.live\/\/tv\/2023\/secret_invasion\/Season1\/3\/German.srt","downlink":null,"source_file_name":null,"createtime":1688549100},{"id":114446,"movieId":null,"tvId":489,"episodeId":19696,"default":0,"IsShow":1,"name":"Greek.srt","path":"https:\/\/srt.soaper.live\/\/tv\/2023\/secret_invasion\/Season1\/3\/Greek.srt","downlink":null,"source_file_name":null,"createtime":1688549100},{"id":114447,"movieId":null,"tvId":489,"episodeId":19696,"default":0,"IsShow":1,"name":"Hungarian.srt","path":"https:\/\/srt.soaper.live\/\/tv\/2023\/secret_invasion\/Season1\/3\/Hungarian.srt","downlink":null,"source_file_name":null,"createtime":1688549100},{"id":114448,"movieId":null,"tvId":489,"episodeId":19696,"default":0,"IsShow":1,"name":"Italian.srt","path":"https:\/\/srt.soaper.live\/\/tv\/2023\/secret_invasion\/Season1\/3\/Italian.srt","downlink":null,"source_file_name":null,"createtime":1688549100},{"id":114449,"movieId":null,"tvId":489,"episodeId":19696,"default":0,"IsShow":1,"name":"Japanese.srt","path":"https:\/\/srt.soaper.live\/\/tv\/2023\/secret_invasion\/Season1\/3\/Japanese.srt","downlink":null,"source_file_name":null,"createtime":1688549100},{"id":114450,"movieId":null,"tvId":489,"episodeId":19696,"default":0,"IsShow":1,"name":"Korean.srt","path":"https:\/\/srt.soaper.live\/\/tv\/2023\/secret_invasion\/Season1\/3\/Korean.srt","downlink":null,"source_file_name":null,"createtime":1688549100},{"id":114451,"movieId":null,"tvId":489,"episodeId":19696,"default":0,"IsShow":1,"name":"Latin America Spanish.srt","path":"https:\/\/srt.soaper.live\/\/tv\/2023\/secret_invasion\/Season1\/3\/Latin America Spanish.srt","downlink":null,"source_file_name":null,"createtime":1688549100},{"id":114452,"movieId":null,"tvId":489,"episodeId":19696,"default":0,"IsShow":1,"name":"Norwegian.srt","path":"https:\/\/srt.soaper.live\/\/tv\/2023\/secret_invasion\/Season1\/3\/Norwegian.srt","downlink":null,"source_file_name":null,"createtime":1688549100},{"id":114453,"movieId":null,"tvId":489,"episodeId":19696,"default":0,"IsShow":1,"name":"Polish.srt","path":"https:\/\/srt.soaper.live\/\/tv\/2023\/secret_invasion\/Season1\/3\/Polish.srt","downlink":null,"source_file_name":null,"createtime":1688549100},{"id":114455,"movieId":null,"tvId":489,"episodeId":19696,"default":0,"IsShow":1,"name":"Portuguese Brazilian.srt","path":"https:\/\/srt.soaper.live\/\/tv\/2023\/secret_invasion\/Season1\/3\/Portuguese Brazilian.srt","downlink":null,"source_file_name":null,"createtime":1688549100},{"id":114454,"movieId":null,"tvId":489,"episodeId":19696,"default":0,"IsShow":1,"name":"Portuguese.srt","path":"https:\/\/srt.soaper.live\/\/tv\/2023\/secret_invasion\/Season1\/3\/Portuguese.srt","downlink":null,"source_file_name":null,"createtime":1688549100},{"id":114456,"movieId":null,"tvId":489,"episodeId":19696,"default":0,"IsShow":1,"name":"Romanian.srt","path":"https:\/\/srt.soaper.live\/\/tv\/2023\/secret_invasion\/Season1\/3\/Romanian.srt","downlink":null,"source_file_name":null,"createtime":1688549100},{"id":114457,"movieId":null,"tvId":489,"episodeId":19696,"default":0,"IsShow":1,"name":"Slovak.srt","path":"https:\/\/srt.soaper.live\/\/tv\/2023\/secret_invasion\/Season1\/3\/Slovak.srt","downlink":null,"source_file_name":null,"createtime":1688549100},{"id":114458,"movieId":null,"tvId":489,"episodeId":19696,"default":0,"IsShow":1,"name":"Swedish.srt","path":"https:\/\/srt.soaper.live\/\/tv\/2023\/secret_invasion\/Season1\/3\/Swedish.srt","downlink":null,"source_file_name":null,"createtime":1688549100},{"id":114459,"movieId":null,"tvId":489,"episodeId":19696,"default":0,"IsShow":1,"name":"Turkish.srt","path":"https:\/\/srt.soaper.live\/\/tv\/2023\/secret_invasion\/Season1\/3\/Turkish.srt","downlink":null,"source_file_name":null,"createtime":1688549100}],"prev_epi_title":"[S1E2] Promises","prev_epi_url":"\/episode_LwD8OQ9k9a.html?ap=1","next_epi_title":"[S1E4] Lost in Storage","next_epi_url":"\/episode_vXD2Kn8gLY.html?ap=1"}' ++ /usr/bin/jq -r .val + el='https://soaper.tv/home/index/TVM3U8?key=WnzvEn2RQOuWV6nB1drMT89LP83zwNCxOA8YoPeET46xbMoOrNf5nN3ZBJPQHVrPw8w8zxsXloqXxE7rtOZYo9vZa7h1ly91rWLeSAxKRYe.m3u8' + [[ https://soaper.tv/home/index/TVM3U8?key=WnzvEn2RQOuWV6nB1drMT89LP83zwNCxOA8YoPeET46xbMoOrNf5nN3ZBJPQHVrPw8w8zxsXloqXxE7rtOZYo9vZa7h1ly91rWLeSAxKRYe.m3u8 != *\.\m\3\u\8 ]] ++ /usr/bin/jq '.subs | length' + [[ 25 -gt 0 ]] ++ /usr/bin/jq -r '.subs[]| select(.name | contains ("en")) | .path' ++ head -1 + sl='https://srt.soaper.live//tv/2023/secret_invasion/Season1/3/French Canadian.srt' + [[ -z '' ]] + [[ -n https://srt.soaper.live//tv/2023/secret_invasion/Season1/3/French Canadian.srt ]] + print_info 'Downloading subtitle 1.3...' + printf '%b\n' '\033[32m[INFO]\033[0m Downloading subtitle 1.3...' [INFO] Downloading subtitle 1.3... + /usr/bin/curl 'https://srt.soaper.live//tv/2023/secret_invasion/Season1/3/French Canadian.srt' curl: (3) URL using bad/illegal format or missing URL
cyber-hunt7 commented 1 year ago

Is there a way only downloading the file and not the subtitles

KevCui commented 1 year ago

Hey @cyber-hunt7, download error should be fixed in the last commit.

KevCui commented 1 year ago

@cyber-hunt7, there is no flag to avoid download subtitle. However, you can set SOAPER_SUBTITLE_LANG variable with an invalid language name, for example: SOAPER_SUBTITLE_LANG=xx ./soaper-dl.sh -n .... Since no language is called xx, script won't find and download subtitle.

cyber-hunt7 commented 1 year ago

Awesome thank you. Everything is working.

Sorry to bother again Iam not good with programming but is there a way for the file to be save a S01E01 rather then 1.1

KevCui commented 1 year ago

Hey @cyber-hunt7, sure there is. You can modify soaper-dl.sh https://github.com/KevCui/soaper-dl/blob/main/soaper-dl.sh#L223:

"$_FFMPEG" -i "$el" -c copy -v error -y "$_SCRIPT_PATH/${_MEDIA_NAME}/${2}.mp4"

${2}.mp4 is the file name. Try make some changes and you can get it :)