Is the above legit? I guess I have to do it this way since beforehand in some feeds there are private and deleted videos that must be deleted from the list, so I fetch all videos in the playlist feed, then immediately remove all videos components whose title equals Private video or Deleted Video, then iterate the code above throughout remaining video IDs. I do it this way because the code breaks if it encounters a private or deleted video element thats exists within the list (no data.data.duration to return?).
Problem is, the above code doesn't loop through all dynamically set .videoID. Console.log only prints the duration of first .videoID displayed. I also tried setTimeout in order to wait a few to make sure the playlist feed had completely displayed and that didn't help either.
Is there a better and more efficient way to do the above? Am kinda newbie to all this ajax jsonc thingy, any pointers leading to an efficient solution would be mighty helpful! ~ dan