Coder Social home page Coder Social logo

Comments (10)

jaycedk avatar jaycedk commented on May 19, 2024 1

Yes you are right.
Sorry for the inconvenience 😁
Have a great weekend 😃

from arr-scripts.

jaycedk avatar jaycedk commented on May 19, 2024 1

Well is look like you script continues when the API is up.
We can close this, as ¯_(ツ)_/¯ remote dependencies not acting nice.

from arr-scripts.

RandomNinjaAtk avatar RandomNinjaAtk commented on May 19, 2024 1

@jaycedk I think the latest updates greatly improves the processes and prevents the issues that were previously seen. It will need more testing but update when you have a chance.

It also makes the logging more clear to show the problems with connectivity...

from arr-scripts.

jaycedk avatar jaycedk commented on May 19, 2024 1

Will test it now 😀
Thanks for looking into this.
And report back my findings.

from arr-scripts.

jaycedk avatar jaycedk commented on May 19, 2024 1

First test run.
All good, and we can now see all the errors 😎

Connecting to imvdb.com (162.243.167.202:443)
wget: server returned error: HTTP/1.1 502 Bad Gateway 🤬

I really like that I see that in the log file, that way I know what up, and why 😀

And like that you have implemented a retry limit.
That way it does not keep trying, the same thing, over and over, until end of time.

Good job, and thank you for making this possible 🤓

from arr-scripts.

RandomNinjaAtk avatar RandomNinjaAtk commented on May 19, 2024

Seems like your having connectivity problems with IMVDB's website. Nothing I can really do to solve that...

Edit:
After reviewing my own logs, I can also see the same thing happening on my side... I can look into it but no promises... We're completely reliant on web services...

from arr-scripts.

jaycedk avatar jaycedk commented on May 19, 2024

That my first guess, restarted router, restarted lidarr docker and somewhere in between changed dns servers.
pinged imvdb.com all good.
But trying there api it looks to be down.
https://imvdb.com/developers/api

from arr-scripts.

jaycedk avatar jaycedk commented on May 19, 2024

Ok hmm there API is flacky down, then up, then down, up, down.
🙈🙉🙊
Will try again on monday 🙄

from arr-scripts.

RandomNinjaAtk avatar RandomNinjaAtk commented on May 19, 2024

Well if the API is down, that would cause it.... Again that is a scenario that I can not fix. Maybe a workaroud would be to scrape the page instead...

Relevant lines of code for anyone's reference:

if [ ! -f "$imvdbVideoData" ]; then
count=0
until false; do
count=$(( $count + 1 ))
#echo "$count"
if [ ! -f "$imvdbVideoData" ]; then
imvdbVideoId=$(curl -s "$imvdbVideoUrl" | grep "<p>ID:" | grep -o "[[:digit:]]*")
imvdbVideoJsonUrl="https://imvdb.com/api/v1/video/$imvdbVideoId?include=sources,countries,featured,credits,bts,popularity"
log "$processCount of $lidarrArtistIdsCount :: IMVDB :: $lidarrArtistName :: $imvdbProcessCount of $artistImvdbVideoUrlsCount :: Downloading Video data"
curl -s "$imvdbVideoJsonUrl" -o "$imvdbVideoData"
sleep 0.5
fi
if [ -f "$imvdbVideoData" ]; then
if [ ! -s "$imvdbVideoData" ]; then
rm "$imvdbVideoData"
if [ $count = 2 ]; then
log "$processCount of $lidarrArtistIdsCount :: IMVDB :: $lidarrArtistName :: $imvdbProcessCount of $artistImvdbVideoUrlsCount :: Download Failed, skipping..."
break
fi
elif jq -e . >/dev/null 2>&1 <<<"$(cat "$imvdbVideoData")"; then
log "$processCount of $lidarrArtistIdsCount :: IMVDB :: $lidarrArtistName :: $imvdbProcessCount of $artistImvdbVideoUrlsCount :: Download Complete"
break
else
rm "$imvdbVideoData"
fi
fi
done
fi

from arr-scripts.

RandomNinjaAtk avatar RandomNinjaAtk commented on May 19, 2024

@jaycedk Try the latest script update 2.7. I think I improved the existing process to hopefully have less hangups...

Keep in mind, its had very little testing at this point...

from arr-scripts.

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.