Update library.py

for "resumevideos" functionality