I am... confused. I'll try testing it later to pinpoint the exact problem.
Edit: Well I found the problem for the gif comics. Sunday comics have "sunday" in the filename and a unique ID for some stupid reason. JPGs were a simple fix in comparison, I forgot the "s" : "d" part. For GIFs I need to compute another ID difference.
Ok, I think it should actually work uninterrupted, now.
*master of shitty hacks*
Edit: Well I found the problem for the gif comics. Sunday comics have "sunday" in the filename and a unique ID for some stupid reason. JPGs were a simple fix in comparison, I forgot the "s" : "d" part. For GIFs I need to compute another ID difference.
Ok, I think it should actually work uninterrupted, now.
Code:
// Thank you for arbitrarily using a different index and filename for Sunday. God fucking dammit. Now I feel like Dilbert.
if($isSunday)
{
$baseIndex = 196050; // SUNDAY BASE ASSUMING DIRECT CONTROL.
$indexDiff = ($indexDiff % 7) - 1; // THIS HURTS YOU, DILBERT.
$sunday = ".sunday"; // YOU HAVE BECOME AN ANNOYANCE, DILBERT.
}
*master of shitty hacks*