Deprecated PseudoLibrary - Strm Generator w/ Library Integration: AMAZON/HULU/NETFLIX
#86
I did some manual testing, and everything was fine, but when I setup the auto update I got a script error indicating that the datetime ' ' wasn't a valid format. Sure enough, if you look at service.py, it's trying to read a non-existent setting (Update_Timer_NextRun). I unremarked the try/except block so that if there is no setting it will assume the last update was now, and then it runs fine. Why did you remark out the try/except? Here's what worked for me:

Code:
try:
    Update_Timer_LastRun = REAL_SETTINGS.getSetting('Update_Timer_NextRun')
    Update_Timer_LastRun = Update_Timer_LastRun.split('.')[0]
    Update_Timer_LastRun = datetime.datetime.strptime(Update_Timer_LastRun, '%Y-%m-%d %H:%M:%S')
except:
    Update_Timer_LastRun = now

P.S. it would probably be a good idea to catch the datetime exception rather than just catch every exception. But you probably know that. Wink


Messages In This Thread
RE: [Beta] "PseudoLibrary" Strm Generator w/ Library Integration: AMAZON/HULU/NETFLIX - by pkscout - 2014-10-20, 03:48
CrackleR - by TheIrreverend - 2015-06-13, 17:15
Logout Mark Read Team Forum Stats Members Help
PseudoLibrary - Strm Generator w/ Library Integration: AMAZON/HULU/NETFLIX5