set TiVoList to do shell script ShellScriptCommand
end tell
- if TiVoList = "" then
+ if TiVoList = "connect-error" then
+ display dialog "iTiVo could not communicate with your TiVo. Please make sure your IP address and Media Access Key are correct (check your Prefs) and try again." buttons {"OK"} default button "OK" attached to window "iTiVo"
+ set contents of text field "status" of window "iTiVo" to "Failed to connect to tivo!"
+ return
+ else
if (MAK < 1) then
display dialog "Your Media Access Key is not set correctly. (Select *Help* from the menu if you don't know how) " buttons {"OK"} default button "OK" attached to window "iTiVo"
my displayPrefs()
- else
- display dialog "iTiVo could not communicate with your TiVo. Please make sure your IP address and Media Access Key are correct (check your Prefs) and try again." buttons {"OK"} default button "OK" attached to window "iTiVo"
end if
- set contents of text field "status" of window "iTiVo" to "Failed to connect to tivo!"
- return
end if
tell window "iTiVo"
if TiVoList ≠ "" then
@@ -2313,8 +2313,8 @@ on ConnectTiVo()
set DLHistoryTemp to items (DLHistoryCount - showcount) thru -1 of DLHistory
set DLHistory to DLHistoryTemp
end if
- set title of button "ConnectButton" to "Update from TiVo"
end if
+ set title of button "ConnectButton" to "Update from TiVo"
set myShowCount to (count data rows of data source of table view "ShowListTable" of scroll view "ShowList" of box "topBox" of split view "splitView1")
set myQueueCount to (count data rows of data source of table view "QueueListTable" of scroll view "QueueList" of view "bottomLeftView" of split view "splitView2" of box "bottomBox" of split view "splitView1")