KevCui / soaper-dl

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

parse error: Invalid numeric literal at line 2, column 6 #3

Closed jeffwrusso closed 3 years ago

jeffwrusso commented 3 years ago

I noticed that script seems to be broken now. It could be they changed something at the site because direct browsing still works for me.

It looks like the following line is throwing the "parse error: Invalid numeric literal at line 2, column 6"

el="$($_JQ -r '.val' <<< "$d")"

The HTML code below is what it is trying to parse.

`

    <div class="content">
        <div class="container">
            <br>
            <div class="row">

                <div  style="width:50%;margin:0 auto">

                    <div class="panel panel-default">

                        <div class="panel-heading">Sorry, An unexpected error has occurred. Please try again. <a href ="\">Go back home</a></div>

                    </div>
                </div>
            </div>
        </div>

    </div>

    <footer>
        <div class="container">
        <div class="row">
        <div class="col-sm-12 text-center">
        <h5>copyright @ SOAP2DAY.com</h5>
        </div>
        </div>
        </div>
    </footer>

</body>

`

KevCui commented 3 years ago

@jeffwrusso Right, something is changed on the sever side. The latest commit should work.