EDIT: One moment please. I think this may be due to a manual recording. (It’s eclipse day, after all)
Solved it. Question and answer to myself below. Might help someone else.
Things were working well, right up to today. But when I run tablo2go, it is telling me this:
Percent: [#########-] 87.5% Loading Series Metadata Traceback (most recent call last):
File "./tablo2go-3.35.py", line 560, in <module>
QUEUE[TABLO_IP][airing_num]['build'] = disp_build
NameError: name 'disp_build' is not defined
(Months ago, I did make some slight modifications to my copy of this script, but I don’t think it would affect this)
Did the API change?
No. This was a new category of recording for me. (Maybe other version of the script work without error, I have modified mine)
I added this, a little bit prior to the line causing the error, where similar elif sections exist for other recording types:
elif airing_type == 'programs':
disp_build = squish(fillin(NAME_PROGRAMS, QUEUE[TABLO_IP][airing_num]))
if disp_id == '' or disp_id.find('SH') == 0:
disp_id = clean(disp_build, {' ':'.'})
(I also created a NAME_PROGRAMS string where the other similar strings are stored using start time and duration)
I also needed to add this clause where similar clauses are located:
elif QUEUE[TABLO_IP][airing_num]['type'] == 'programs':
playlist = post_api(TABLO_IP, '8885', '/recordings/programs/airings/'+str(airing_num)+'/watch', COMMENT='Retrieve program playlist')
Working great now. Never mind me…