Endless loop with no Internet access
Endless loop with no Internet access
With AMC 4.1.0, if there's no Internet access (in my case the firewall was blocking it) and I try and e.g. run the Update All script it gives a socket error but then keeps trying repeatedly every time I click the error box with no way to quit out of it.
Should happen only if you accidentally selected more than one movie when you run the script. Technically the update script wouldn't need a movie to be selected, as it doesn't access movie data in any way, but you cannot run scripts without selecting one. That's why I warned about not selecting more than one movie in the license window which comes up on the first run 
I think holding down the ESC button might speed up finishing the loop if that happens to you (though it still runs through all movies).

I think holding down the ESC button might speed up finishing the loop if that happens to you (though it still runs through all movies).
We should modify this script to run update only if it is the first iteration (first selected movie).
For this you can use this test in main:
The problem is that GetIteration function only exists since AMC 4.1.0.
Soulsnake.
For this you can use this test in main:
Code: Select all
if GetIteration = 0 then ... else do nothing
Soulsnake.