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 187 attachment: curl-stdout.patch (2.9 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Index: GetExtraInfo.pl
===================================================================
--- GetExtraInfo.pl (revision 268)
+++ GetExtraInfo.pl (working copy)
@@ -7,7 +7,7 @@

$anchor = 0;

-$shellScript = "curl -s 'https://" . $IP . ":443/TiVoConnect?Command=QueryContainer&Container=%2FNowPlaying&Recurse=Yes&AnchorOffset=" . $anchor . "' -k --digest -u tivo:" . $MAK;
+$shellScript = "curl -s 'https://" . $IP . ":443/TiVoConnect?Command=QueryContainer&Container=%2FNowPlaying&Recurse=Yes&AnchorOffset=" . $anchor . "' -k --digest -u tivo:" . $MAK . " -o -";
$file = `$shellScript`;

$file =~ m/<TotalItems>(.*?)<\/TotalItems>/g;
@@ -63,7 +63,7 @@
}
$anchor += $count;
if ($anchor < $TotalItems) {
- $shellScript = "curl -s 'https://" . $IP . ":443/TiVoConnect?Command=QueryContainer&Container=%2FNowPlaying&Recurse=Yes&AnchorOffset=" . $anchor . "' -k --digest -u tivo:" . $MAK;
+ $shellScript = "curl -s 'https://" . $IP . ":443/TiVoConnect?Command=QueryContainer&Container=%2FNowPlaying&Recurse=Yes&AnchorOffset=" . $anchor . "' -k --digest -u tivo:" . $MAK . " -o -";
$file = `$shellScript`;
$count = 0;
}
Index: ParseDetail.pl
===================================================================
--- ParseDetail.pl (revision 268)
+++ ParseDetail.pl (working copy)
@@ -5,7 +5,7 @@
$ID = $ARGV[2];
$anchor = 0;

-$shellScript = "curl -s 'https://" . $IP . ":443/TiVoVideoDetails?id=" . $ID . "' -k --digest -u tivo:" . $MAK;
+$shellScript = "curl -s 'https://" . $IP . ":443/TiVoVideoDetails?id=" . $ID . "' -k --digest -u tivo:" . $MAK . " -o -";
#$shellScript = "cat ~/Desktop/detail.xml";

$show = `$shellScript`;
Index: ParseXML.pl
===================================================================
--- ParseXML.pl (revision 268)
+++ ParseXML.pl (working copy)
@@ -12,7 +12,7 @@
# Make sure we have a place to cache the results
`mkdir -p $CacheDir`;

-$fetchScript = "curl -s 'https://" . $IP . ":443/TiVoConnect?Command=QueryContainer&Container=%2FNowPlaying&Recurse=Yes&AnchorOffset=" . $anchor . "' -k --digest -u tivo:" . $MAK;
+$fetchScript = "curl -s 'https://" . $IP . ":443/TiVoConnect?Command=QueryContainer&Container=%2FNowPlaying&Recurse=Yes&AnchorOffset=" . $anchor . "' -k --digest -u tivo:" . $MAK . " -o -";

if ((-e $CacheFile) && (((-M $CacheFile) * 24 * 60) < 5)) {
# We have already fetched the list from this tivo within the last five minutes, so just use the cached value
@@ -170,7 +170,7 @@
}
$anchor += $count;
if ($anchor < $TotalItems) {
- $shellScript = "curl -s 'https://" . $IP . ":443/TiVoConnect?Command=QueryContainer&Container=%2FNowPlaying&Recurse=Yes&AnchorOffset=" . $anchor . "' -k --digest -u tivo:" . $MAK;
+ $shellScript = "curl -s 'https://" . $IP . ":443/TiVoConnect?Command=QueryContainer&Container=%2FNowPlaying&Recurse=Yes&AnchorOffset=" . $anchor . "' -k --digest -u tivo:" . $MAK . " -o -";
$file = `$shellScript`;
$count = 0;
}
Powered by Google Project Hosting