From 0b5554584f8f91075dedc0252c2448e3322342c5 Mon Sep 17 00:00:00 2001 From: Jason Michalski Date: Mon, 7 Apr 2008 17:25:46 -0500 Subject: [PATCH] Lets get the body id before using it. --- mind.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mind.py b/mind.py index 761b963..9463de5 100644 --- a/mind.py +++ b/mind.py @@ -40,6 +40,9 @@ else: self.__pcBodyStore('pyTivo', True) def pushVideo(self, tsn, url, description, duration, size, title, subtitle): + # It looks like tivo only supports one pc per house + pc_body_id = self.__pcBodySearch()[0] + data = { 'bodyId' : 'tsn:' + tsn, 'description' : description, @@ -56,8 +59,6 @@ else: 'url' : url, } - # It looks like tivo only supports one pc per house - pc_body_id = self.__pcBodySearch()[0] offer_id, content_id = self.__bodyOfferModify(data) self.__subscribe(offer_id, content_id, tsn) -- 2.11.4.GIT