Skip to content

Commit ec67964

Browse files
authored
fix: gracenote.com local URLs throughout code (#17)
Further URL edits for gracenote.com switchover.
1 parent d0be355 commit ec67964

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

zap2xml.pl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -430,11 +430,11 @@ sub stationToChannel {
430430
if (defined($options{z})) {
431431
return sprintf("I%s.%s.tvguide.com", $stations{$s}{number},$stations{$s}{stnNum});
432432
} elsif (defined($options{O})) {
433-
return sprintf("C%s%s.zap2it.com",$stations{$s}{number},lc($stations{$s}{name}));
433+
return sprintf("C%s%s.gracenote.com",$stations{$s}{number},lc($stations{$s}{name}));
434434
} elsif (defined($options{9})) {
435-
return sprintf("I%s.labs.zap2it.com",$stations{$s}{stnNum});
435+
return sprintf("I%s.labs.gracenote.com",$stations{$s}{stnNum});
436436
}
437-
return sprintf("I%s.%s.zap2it.com", $stations{$s}{number},$stations{$s}{stnNum});
437+
return sprintf("I%s.%s.gracenote.com", $stations{$s}{number},$stations{$s}{stnNum});
438438
}
439439

440440
sub sortChan {
@@ -468,7 +468,7 @@ sub printHeader {
468468
if (defined($options{z})) {
469469
print $FH "<tv source-info-url=\"http://tvguide.com/\" source-info-name=\"tvguide.com\"";
470470
} else {
471-
print $FH "<tv source-info-url=\"http://tvlistings.zap2it.com/\" source-info-name=\"zap2it.com\"";
471+
print $FH "<tv source-info-url=\"http://tvlistings.gracenote.com/\" source-info-name=\"gracenote.com\"";
472472
}
473473
print $FH " generator-info-name=\"zap2xml\" generator-info-url=\"zap2xml\@gmail.com\">\n";
474474
}
@@ -1343,7 +1343,7 @@ sub parseJSON {
13431343
$programs{$cp}{imageUrl} = $turl;
13441344
}
13451345
if ($program->{'seriesId'} ne '' && $program->{'tmsId'} ne '') {
1346-
$programs{$cp}{url} = $urlRoot . "/overview.html?programSeriesId="
1346+
$programs{$cp}{url} = $urlRoot . "overview-affiliates.html?programSeriesId="
13471347
. $program->{seriesId} . "&tmsId=" . $program->{tmsId};
13481348
}
13491349

@@ -1571,7 +1571,7 @@ sub HELP_MESSAGE {
15711571
-e = hex encode entities (html special characters like accents)
15721572
-E "amp apos quot lt gt" = selectively encode standard XML entities
15731573
-F = output channel names first (rather than "number name")
1574-
-O = use old tv_grab_na style channel ids (C###nnnn.zap2it.com)
1574+
-O = use old tv_grab_na style channel ids (C###nnnn.gracenote.com)
15751575
-A "new live" = append " *" to program titles that are "new" and/or "live"
15761576
-M = copy movie_year to empty movie sub-title tags
15771577
-U = UTF-8 encoding (default = "ISO-8859-1")
@@ -1585,7 +1585,7 @@ sub HELP_MESSAGE {
15851585
-J <xmltv> = include xmltv file in output
15861586
-Y <lineupId> (if not using username/password)
15871587
-Z <zipcode> (if not using username/password)
1588-
-z = use tvguide.com instead of zap2it.com
1588+
-z = use tvguide.com instead of gracenote.com
15891589
-a = output all channels (not just favorites)
15901590
-j = add "series" category to all non-movie programs
15911591
END

0 commit comments

Comments
 (0)