From: Jason Michalski Date: Mon, 7 Apr 2008 22:25:46 +0000 (-0500) Subject: Lets get the body id before using it. X-Git-Url: https://repo.or.cz/w/pyTivo.git/commitdiff_plain/0b5554584f8f91075dedc0252c2448e3322342c5 Lets get the body id before using it. --- 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)