Today, tablo2go giving me an error

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… :roll_eyes:

1 Like

I just got this error this morning -

192.168.0.101 - 779027 - 2019-03-21 00:00Z - EP024345980051 - Downloading - ./TV/Riverdale/Riverdale - S03E16 - Chapter Fifty-One: BIG FUN
Traceback (most recent call last):
File “tablo2go-3.35-with-fixes_KK.py”, line 683, in
elif (get_video(QUEUE[TABLO_IP][airing_num][‘m3u8’], QUEUE[TABLO_IP][airing_num][‘build’])):
File “tablo2go-3.35-with-fixes_KK.py”, line 378, in get_video
with open(filename+’.ts’, ‘wb’) as fileObject:
OSError: [Errno 22] Invalid argument: ‘./TV/Riverdale/Riverdale - S03E16 - Chapter Fifty-One: BIG FUN.ts’
python3 tablo2go-3.35-with-fixes_KK.py -ip 192.168.0.101
[kkoceski@E4300XFCE TabloTV_1.5TB]$