My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 198 attachment: 0003-Add-additional-logging-for-calls-to-mDNS.patch (1.4 KB)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From c75ce844f9a1b8995b1539fd6b7cf1dd62a39a0a Mon Sep 17 00:00:00 2001
From: Drew Moseley <drew@moseleynet.net>
Date: Sun, 2 Sep 2012 20:57:17 -0400
Subject: [PATCH 3/5] Add additional logging for calls to mDNS

Signed-off-by: Drew Moseley <drew@moseleynet.net>
---
iTiVo.applescript | 3 +++
1 file changed, 3 insertions(+)

diff --git a/iTiVo.applescript b/iTiVo.applescript
index d2bb966..8cfabf2 100755
--- a/iTiVo.applescript
+++ b/iTiVo.applescript
@@ -618,6 +618,7 @@ on readSettings()
set theScript to "mDNS -L \"" & TiVo & "\" _tivo-videos._tcp local | colrm 1 42 &
sleep 2
killall mDNS"
+ my debug_log(theScript)
set hostList to paragraphs 1 thru -1 of (do shell script theScript)
repeat with j in hostList
try
@@ -722,6 +723,7 @@ killall mDNS"
repeat with i in nameList
if length of i > 1 then
make new menu item at the end of menu items of menu of popup button "MyTiVos" with properties {title:i, enabled:true}
+ my debug_log("Adding '" & i & "' to the MyTivos list")
end if
end repeat
end if
@@ -1279,6 +1281,7 @@ on choose menu item theObject
set theScript to "mDNS -L \"" & title of theObject & "\" _tivo-videos._tcp local | colrm 1 42 &
sleep 2
killall mDNS"
+ my debug_log(theScript)
set hostList to paragraphs 1 thru -1 of (do shell script theScript)
repeat with j in hostList
try
--
1.7.11.5

Powered by Google Project Hosting