Gah, sorry guys I need your help again and I'm posting it here because it's actually related.
Short version of the story is I needed to change the URL I was using and now it's laid out different. I modified the variable to match what I thought you explained but when I get to the last team, this time the log says (in today's case);
21,
"name" : "Colorado Avalanche",
"link" : "/api/v1/teams/21"
}
}
},
"linescore" : {
"currentPeriod" : 0,
"periods" : [ ],
"shootoutInfo" : {
"away" : {
"scores" : 0,
"attempts" : 0
},
"home" : {
"scores" : 0,
"attempts" : 0
}
},
It's supposed to only grab the "21" and stop, and it does that for every other team, but the last one it doesn't. I should mention that this also ONLY happens when I have more variables than games. For example today there are 5 games but I need enough variables for 15 as there can be up to 15 games/day. If I only have 5, it works fine. 6 or more I get this.
New URL (json maybe?)
Code: Select all
{
"copyright" : "NHL and the NHL Shield are registered trademarks of the National Hockey League. NHL and NHL team marks are the property of the NHL and its teams. © NHL 2018. All Rights Reserved.",
"totalItems" : 5,
"totalEvents" : 0,
"totalGames" : 5,
"totalMatches" : 0,
"wait" : 10,
"dates" : [ {
"date" : "2018-11-28",
"totalItems" : 5,
"totalEvents" : 0,
"totalGames" : 5,
"totalMatches" : 0,
"games" : [ {
"gamePk" : 2018020377,
"link" : "/api/v1/game/2018020377/feed/live",
"gameType" : "R",
"season" : "20182019",
"gameDate" : "2018-11-29T00:00:00Z",
"status" : {
"abstractGameState" : "Live",
"codedGameState" : "3",
"detailedState" : "In Progress",
"statusCode" : "3",
"startTimeTBD" : false
},
"teams" : {
"away" : {
"leagueRecord" : {
"wins" : 8,
"losses" : 11,
"ot" : 3,
"type" : "league"
},
"score" : 0,
"team" : {
"id" : 19,
"name" : "St. Louis Blues",
"link" : "/api/v1/teams/19"
}
},
"home" : {
"leagueRecord" : {
"wins" : 10,
"losses" : 11,
"ot" : 3,
"type" : "league"
},
"score" : 0,
"team" : {
"id" : 17,
"name" : "Detroit Red Wings",
"link" : "/api/v1/teams/17"
}
}
},
"linescore" : {
"currentPeriod" : 1,
"currentPeriodOrdinal" : "1st",
"currentPeriodTimeRemaining" : "09:42",
"periods" : [ {
"periodType" : "REGULAR",
"startTime" : "2018-11-29T00:10:18Z",
"num" : 1,
"ordinalNum" : "1st",
"home" : {
"goals" : 0,
"shotsOnGoal" : 9,
"rinkSide" : "right"
},
"away" : {
"goals" : 0,
"shotsOnGoal" : 4,
"rinkSide" : "left"
}
} ],
"shootoutInfo" : {
"away" : {
"scores" : 0,
"attempts" : 0
},
"home" : {
"scores" : 0,
"attempts" : 0
}
},
"teams" : {
"home" : {
"team" : {
"id" : 17,
"name" : "Detroit Red Wings",
"link" : "/api/v1/teams/17"
},
"goals" : 0,
"shotsOnGoal" : 9,
"goaliePulled" : false,
"numSkaters" : 5,
"powerPlay" : true
},
"away" : {
"team" : {
"id" : 19,
"name" : "St. Louis Blues",
"link" : "/api/v1/teams/19"
},
"goals" : 0,
"shotsOnGoal" : 4,
"goaliePulled" : false,
"numSkaters" : 4,
"powerPlay" : false
}
},
"powerPlayStrength" : "5-on-4",
"hasShootout" : false,
"intermissionInfo" : {
"intermissionTimeRemaining" : 0,
"intermissionTimeElapsed" : 0,
"inIntermission" : false
},
"powerPlayInfo" : {
"situationTimeRemaining" : 120,
"situationTimeElapsed" : 0,
"inSituation" : true
}
},
"venue" : {
"id" : 5145,
"name" : "Little Caesars Arena",
"link" : "/api/v1/venues/5145"
},
"content" : {
"link" : "/api/v1/game/2018020377/content"
}
}, {
"gamePk" : 2018020378,
"link" : "/api/v1/game/2018020378/feed/live",
"gameType" : "R",
"season" : "20182019",
"gameDate" : "2018-11-29T00:00:00Z",
"status" : {
"abstractGameState" : "Live",
"codedGameState" : "3",
"detailedState" : "In Progress",
"statusCode" : "3",
"startTimeTBD" : false
},
"teams" : {
"away" : {
"leagueRecord" : {
"wins" : 11,
"losses" : 10,
"ot" : 5,
"type" : "league"
},
"score" : 1,
"team" : {
"id" : 24,
"name" : "Anaheim Ducks",
"link" : "/api/v1/teams/24"
}
},
"home" : {
"leagueRecord" : {
"wins" : 9,
"losses" : 9,
"ot" : 4,
"type" : "league"
},
"score" : 0,
"team" : {
"id" : 13,
"name" : "Florida Panthers",
"link" : "/api/v1/teams/13"
}
}
},
"linescore" : {
"currentPeriod" : 1,
"currentPeriodOrdinal" : "1st",
"currentPeriodTimeRemaining" : "08:31",
"periods" : [ {
"periodType" : "REGULAR",
"startTime" : "2018-11-29T00:09:08Z",
"num" : 1,
"ordinalNum" : "1st",
"home" : {
"goals" : 0,
"shotsOnGoal" : 8,
"rinkSide" : "right"
},
"away" : {
"goals" : 1,
"shotsOnGoal" : 7,
"rinkSide" : "left"
}
} ],
"shootoutInfo" : {
"away" : {
"scores" : 0,
"attempts" : 0
},
"home" : {
"scores" : 0,
"attempts" : 0
}
},
"teams" : {
"home" : {
"team" : {
"id" : 13,
"name" : "Florida Panthers",
"link" : "/api/v1/teams/13"
},
"goals" : 0,
"shotsOnGoal" : 8,
"goaliePulled" : false,
"numSkaters" : 5,
"powerPlay" : false
},
"away" : {
"team" : {
"id" : 24,
"name" : "Anaheim Ducks",
"link" : "/api/v1/teams/24"
},
"goals" : 1,
"shotsOnGoal" : 7,
"goaliePulled" : false,
"numSkaters" : 5,
"powerPlay" : false
}
},
"powerPlayStrength" : "Even",
"hasShootout" : false,
"intermissionInfo" : {
"intermissionTimeRemaining" : 0,
"intermissionTimeElapsed" : 0,
"inIntermission" : false
},
"powerPlayInfo" : {
"situationTimeRemaining" : 511,
"situationTimeElapsed" : 59,
"inSituation" : false
}
},
"venue" : {
"id" : 5027,
"name" : "BB&T Center",
"link" : "/api/v1/venues/5027"
},
"content" : {
"link" : "/api/v1/game/2018020378/content"
}
}, {
"gamePk" : 2018020379,
"link" : "/api/v1/game/2018020379/feed/live",
"gameType" : "R",
"season" : "20182019",
"gameDate" : "2018-11-29T00:30:00Z",
"status" : {
"abstractGameState" : "Preview",
"codedGameState" : "2",
"detailedState" : "Pre-Game",
"statusCode" : "2",
"startTimeTBD" : false
},
"teams" : {
"away" : {
"leagueRecord" : {
"wins" : 12,
"losses" : 8,
"ot" : 5,
"type" : "league"
},
"score" : 0,
"team" : {
"id" : 28,
"name" : "San Jose Sharks",
"link" : "/api/v1/teams/28"
}
},
"home" : {
"leagueRecord" : {
"wins" : 17,
"losses" : 8,
"ot" : 0,
"type" : "league"
},
"score" : 0,
"team" : {
"id" : 10,
"name" : "Toronto Maple Leafs",
"link" : "/api/v1/teams/10"
}
}
},
"linescore" : {
"currentPeriod" : 0,
"periods" : [ ],
"shootoutInfo" : {
"away" : {
"scores" : 0,
"attempts" : 0
},
"home" : {
"scores" : 0,
"attempts" : 0
}
},
"teams" : {
"home" : {
"team" : {
"id" : 10,
"name" : "Toronto Maple Leafs",
"link" : "/api/v1/teams/10"
},
"goals" : 0,
"shotsOnGoal" : 0,
"goaliePulled" : false,
"numSkaters" : 0,
"powerPlay" : false
},
"away" : {
"team" : {
"id" : 28,
"name" : "San Jose Sharks",
"link" : "/api/v1/teams/28"
},
"goals" : 0,
"shotsOnGoal" : 0,
"goaliePulled" : false,
"numSkaters" : 0,
"powerPlay" : false
}
},
"powerPlayStrength" : "Even",
"hasShootout" : false,
"intermissionInfo" : {
"intermissionTimeRemaining" : 0,
"intermissionTimeElapsed" : 0,
"inIntermission" : false
}
},
"venue" : {
"name" : "Scotiabank Arena",
"link" : "/api/v1/venues/null"
},
"content" : {
"link" : "/api/v1/game/2018020379/content"
}
}, {
"gamePk" : 2018020380,
"link" : "/api/v1/game/2018020380/feed/live",
"gameType" : "R",
"season" : "20182019",
"gameDate" : "2018-11-29T02:00:00Z",
"status" : {
"abstractGameState" : "Preview",
"codedGameState" : "1",
"detailedState" : "Scheduled",
"statusCode" : "1",
"startTimeTBD" : false
},
"teams" : {
"away" : {
"leagueRecord" : {
"wins" : 12,
"losses" : 10,
"ot" : 3,
"type" : "league"
},
"score" : 0,
"team" : {
"id" : 25,
"name" : "Dallas Stars",
"link" : "/api/v1/teams/25"
}
},
"home" : {
"leagueRecord" : {
"wins" : 14,
"losses" : 9,
"ot" : 1,
"type" : "league"
},
"score" : 0,
"team" : {
"id" : 20,
"name" : "Calgary Flames",
"link" : "/api/v1/teams/20"
}
}
},
"linescore" : {
"currentPeriod" : 0,
"periods" : [ ],
"shootoutInfo" : {
"away" : {
"scores" : 0,
"attempts" : 0
},
"home" : {
"scores" : 0,
"attempts" : 0
}
},
"teams" : {
"home" : {
"team" : {
"id" : 20,
"name" : "Calgary Flames",
"link" : "/api/v1/teams/20"
},
"goals" : 0,
"shotsOnGoal" : 0,
"goaliePulled" : false,
"numSkaters" : 0,
"powerPlay" : false
},
"away" : {
"team" : {
"id" : 25,
"name" : "Dallas Stars",
"link" : "/api/v1/teams/25"
},
"goals" : 0,
"shotsOnGoal" : 0,
"goaliePulled" : false,
"numSkaters" : 0,
"powerPlay" : false
}
},
"powerPlayStrength" : "Even",
"hasShootout" : false,
"intermissionInfo" : {
"intermissionTimeRemaining" : 0,
"intermissionTimeElapsed" : 0,
"inIntermission" : false
}
},
"venue" : {
"id" : 5075,
"name" : "Scotiabank Saddledome",
"link" : "/api/v1/venues/5075"
},
"content" : {
"link" : "/api/v1/game/2018020380/content"
}
}, {
"gamePk" : 2018020381,
"link" : "/api/v1/game/2018020381/feed/live",
"gameType" : "R",
"season" : "20182019",
"gameDate" : "2018-11-29T02:30:00Z",
"status" : {
"abstractGameState" : "Preview",
"codedGameState" : "1",
"detailedState" : "Scheduled",
"statusCode" : "1",
"startTimeTBD" : false
},
"teams" : {
"away" : {
"leagueRecord" : {
"wins" : 10,
"losses" : 8,
"ot" : 5,
"type" : "league"
},
"score" : 0,
"team" : {
"id" : 5,
"name" : "Pittsburgh Penguins",
"link" : "/api/v1/teams/5"
}
},
"home" : {
"leagueRecord" : {
"wins" : 14,
"losses" : 6,
"ot" : 4,
"type" : "league"
},
"score" : 0,
"team" : {
"id" : 21,
"name" : "Colorado Avalanche",
"link" : "/api/v1/teams/21"
}
}
},
"linescore" : {
"currentPeriod" : 0,
"periods" : [ ],
"shootoutInfo" : {
"away" : {
"scores" : 0,
"attempts" : 0
},
"home" : {
"scores" : 0,
"attempts" : 0
}
},
"teams" : {
"home" : {
"team" : {
"id" : 21,
"name" : "Colorado Avalanche",
"link" : "/api/v1/teams/21"
},
"goals" : 0,
"shotsOnGoal" : 0,
"goaliePulled" : false,
"numSkaters" : 0,
"powerPlay" : false
},
"away" : {
"team" : {
"id" : 5,
"name" : "Pittsburgh Penguins",
"link" : "/api/v1/teams/5"
},
"goals" : 0,
"shotsOnGoal" : 0,
"goaliePulled" : false,
"numSkaters" : 0,
"powerPlay" : false
}
},
"powerPlayStrength" : "Even",
"hasShootout" : false,
"intermissionInfo" : {
"intermissionTimeRemaining" : 0,
"intermissionTimeElapsed" : 0,
"inIntermission" : false
}
},
"venue" : {
"id" : 5064,
"name" : "Pepsi Center",
"link" : "/api/v1/venues/5064"
},
"content" : {
"link" : "/api/v1/game/2018020381/content"
}
} ],
"events" : [ ],
"matches" : [ ]
} ]
}
ini:
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
BackgroundMode=2
SolidColor=0,0,0,1
[Metadata]
Name=
Author=
Information=
Version=
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0
[Variables]
Away=(?(?=.*"teams").*"score" : (.*),.*"id" : (.*),.*"score" : (.*),.*"id" : (.*),)
;Home=(?(?=.*"teams").*"score" : (.*),.*"id" : (.*),)
;Score=(?(?=.*<score>).*<awayScoreTotal>(.*)</awayScoreTotal>.*<homeScoreTotal>(.*)</homeScoreTotal>)
[MeasureNHL]
Measure=WebParser
URL=https://statsapi.web.nhl.com/api/v1/schedule?expand=schedule.linescore
RegExp=(?siU)#Away##Away##Away##Away##Away##Away##Away##Away##Away##Away#
;#Away##Home##Away##Home##Away##Home##Away##Home##Away##Home##Away##Home##Away##Home##Away##Home##Away##Home##Away##Home##Away##Home##Away##Home##Away##Home##Away##Home##Away##Home#
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 1;;;;;;;;;;;;;;;;;;
[MeasureGame1AwayScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=1
[MeterGame1AwayScore]
Meter=String
MeasureName=MeasureGame1AwayScore
x=325
y=25
w=500
h=25
FontSize=25
FontColor=255,255,255,255
StringAlign=Right
antialias=1
[MeasureGame1HomeScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=3
[MeterGame1HomeScore]
Meter=String
MeasureName=MeasureGame1HomeScore
x=r
y=40r
w=500
h=25
FontSize=25
FontColor=255,255,255,255
StringAlign=Right
antialias=1
[MeasureGame1AwayTeam]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=2
[MeterGame1AwayTeam]
Meter=Image
MeasureName=MeasureGame1AwayTeam
x=250
y=25
w=40
h=40
[MeasureGame1HomeTeam]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=4
[MeterGame1HomeTeam]
Meter=Image
MeasureName=MeasureGame1HomeTeam
x=r
y=40r
w=40
h=40
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 2;;;;;;;;;;;;;;;;;;
[MeasureGame2AwayScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=5
[MeterGame2AwayScore]
Meter=String
MeasureName=MeasureGame2AwayScore
x=325
y=125
w=500
h=25
FontSize=25
FontColor=255,255,255,255
StringAlign=Right
antialias=1
[MeasureGame2HomeScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=7
[MeterGame2HomeScore]
Meter=String
MeasureName=MeasureGame2HomeScore
x=r
y=40r
w=500
h=25
FontSize=25
FontColor=255,255,255,255
StringAlign=Right
antialias=1
[MeasureGame2AwayTeam]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=6
[MeterGame2AwayTeam]
Meter=Image
MeasureName=MeasureGame2AwayTeam
x=250
y=125
w=40
h=40
[MeasureGame2HomeTeam]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=8
[MeterGame2HomeTeam]
Meter=Image
MeasureName=MeasureGame2HomeTeam
x=r
y=40r
w=40
h=40
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 3;;;;;;;;;;;;;;;;;;
[MeasureGame3AwayScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=9
[MeterGame3AwayScore]
Meter=String
MeasureName=MeasureGame3AwayScore
x=325
y=225
w=500
h=25
FontSize=25
FontColor=255,255,255,255
StringAlign=Right
antialias=1
[MeasureGame3HomeScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=11
[MeterGame3HomeScore]
Meter=String
MeasureName=MeasureGame3HomeScore
x=r
y=40r
w=500
h=25
FontSize=25
FontColor=255,255,255,255
StringAlign=Right
antialias=1
[MeasureGame3AwayTeam]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=10
[MeterGame3AwayTeam]
Meter=Image
MeasureName=MeasureGame3AwayTeam
x=250
y=225
w=40
h=40
[MeasureGame3HomeTeam]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=12
[MeterGame3HomeTeam]
Meter=Image
MeasureName=MeasureGame3HomeTeam
x=r
y=40r
w=40
h=40
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 4;;;;;;;;;;;;;;;;;;
[MeasureGame4AwayScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=13
[MeterGame4AwayScore]
Meter=String
MeasureName=MeasureGame4AwayScore
x=325
y=325
w=500
h=25
FontSize=25
FontColor=255,255,255,255
StringAlign=Right
antialias=1
[MeasureGame4HomeScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=15
[MeterGame4HomeScore]
Meter=String
MeasureName=MeasureGame4HomeScore
x=r
y=40r
w=500
h=25
FontSize=25
FontColor=255,255,255,255
StringAlign=Right
antialias=1
[MeasureGame4AwayTeam]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=14
[MeterGame4AwayTeam]
Meter=Image
MeasureName=MeasureGame4AwayTeam
x=250
y=325
w=40
h=40
[MeasureGame4HomeTeam]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=16
[MeterGame4HomeTeam]
Meter=Image
MeasureName=MeasureGame4HomeTeam
x=r
y=40r
w=40
h=40
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 5;;;;;;;;;;;;;;;;;;
[MeasureGame5AwayScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=17
[MeterGame5AwayScore]
Meter=String
MeasureName=MeasureGame5AwayScore
x=325
y=425
w=500
h=25
FontSize=25
FontColor=255,255,255,255
StringAlign=Right
antialias=1
[MeasureGame5HomeScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=19
[MeterGame5HomeScore]
Meter=String
MeasureName=MeasureGame5HomeScore
x=r
y=40r
w=500
h=25
FontSize=25
FontColor=255,255,255,255
StringAlign=Right
antialias=1
[MeasureGame5AwayTeam]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=18
[MeterGame5AwayTeam]
Meter=Image
MeasureName=MeasureGame5AwayTeam
x=250
y=425
w=40
h=40
[MeasureGame5HomeTeam]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=20
[MeterGame5HomeTeam]
Meter=Image
MeasureName=MeasureGame5HomeTeam
x=r
y=40r
w=40
h=40
;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 6;;;;;;;;;;;;;;;;;;
[MeasureGame6AwayScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=21
[MeterGame6AwayScore]
Meter=String
MeasureName=MeasureGame6AwayScore
x=325
y=525
w=500
h=25
FontSize=25
FontColor=255,255,255,255
StringAlign=Right
antialias=1
[MeasureGame6HomeScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=23
[MeterGame6HomeScore]
Meter=String
MeasureName=MeasureGame6HomeScore
x=r
y=40r
w=25
h=25
FontSize=25
FontColor=255,255,255,255
StringAlign=Right
antialias=1
[MeasureGame6AwayTeam]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=22
[MeterGame6AwayTeam]
Meter=Image
MeasureName=MeasureGame6AwayTeam
x=250
y=525
w=40
h=40
FontSize=20
FontColor=255,255,255,255
StringAlign=Right
antialias=1
[MeasureGame6HomeTeam]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=24
[MeterGame6HomeTeam]
Meter=Image
MeasureName=MeasureGame6HomeTeam
x=r
y=40r
w=40
h=40
FontSize=20
FontColor=255,255,255,255
StringAlign=Right
antialias=1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 7;;;;;;;;;;;;;;;;;;
[MeasureGame7AwayScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=25
[MeterGame7AwayScore]
Meter=String
MeasureName=MeasureGame7AwayScore
x=325
y=625
w=500
h=25
FontSize=25
FontColor=255,255,255,255
StringAlign=Right
antialias=1
[MeasureGame7HomeScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=27
[MeterGame7HomeScore]
Meter=String
MeasureName=MeasureGame7HomeScore
x=r
y=40r
w=25
h=25
FontSize=25
FontColor=255,255,255,255
StringAlign=Right
antialias=1
[MeasureGame7AwayTeam]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=26
[MeterGame7AwayTeam]
Meter=Image
MeasureName=MeasureGame7AwayTeam
x=250
y=625
w=40
h=40
FontSize=20
FontColor=255,255,255,255
StringAlign=Right
antialias=1
[MeasureGame7HomeTeam]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=28
[MeterGame7HomeTeam]
Meter=Image
MeasureName=MeasureGame7HomeTeam
x=r
y=40r
w=40
h=40
FontSize=20
FontColor=255,255,255,255
StringAlign=Right
antialias=1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 8;;;;;;;;;;;;;;;;;;
[MeasureGame8AwayScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=29
[MeterGame8AwayScore]
Meter=String
MeasureName=MeasureGame8AwayScore
x=325
y=725
w=500
h=25
FontSize=25
FontColor=255,255,255,255
StringAlign=Right
antialias=1
[MeasureGame8HomeScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=31
[MeterGame8HomeScore]
Meter=String
MeasureName=MeasureGame8HomeScore
x=r
y=40r
w=25
h=25
FontSize=25
FontColor=255,255,255,255
StringAlign=Right
antialias=1
[MeasureGame8AwayTeam]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=30
[MeterGame8AwayTeam]
Meter=Image
MeasureName=MeasureGame8AwayTeam
x=250
y=725
w=40
h=40
FontSize=20
FontColor=255,255,255,255
StringAlign=Right
antialias=1
[MeasureGame8HomeTeam]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=32
[MeterGame8HomeTeam]
Meter=Image
MeasureName=MeasureGame8HomeTeam
x=r
y=40r
w=40
h=40
FontSize=20
FontColor=255,255,255,255
StringAlign=Right
antialias=1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 9;;;;;;;;;;;;;;;;;;
[MeasureGame9AwayScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=33
[MeterGame9AwayScore]
Meter=String
MeasureName=MeasureGame9AwayScore
x=325
y=825
w=500
h=25
FontSize=25
FontColor=255,255,255,255
StringAlign=Right
antialias=1
[MeasureGame9HomeScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=35
[MeterGame9HomeScore]
Meter=String
MeasureName=MeasureGame9HomeScore
x=r
y=40r
w=25
h=25
FontSize=25
FontColor=255,255,255,255
StringAlign=Right
antialias=1
[MeasureGame9AwayTeam]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=34
[MeterGame9AwayTeam]
Meter=Image
MeasureName=MeasureGame9AwayTeam
x=250
y=825
w=40
h=40
FontSize=20
FontColor=255,255,255,255
StringAlign=Right
antialias=1
[MeasureGame9HomeTeam]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=36
[MeterGame9HomeTeam]
Meter=Image
MeasureName=MeasureGame9HomeTeam
x=r
y=40r
w=40
h=40
FontSize=20
FontColor=255,255,255,255
StringAlign=Right
antialias=1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 10;;;;;;;;;;;;;;;;;;
[MeasureGame10AwayScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=37
[MeterGame10AwayScore]
Meter=String
MeasureName=MeasureGame10AwayScore
x=325
y=925
w=500
h=25
FontSize=25
FontColor=255,255,255,255
StringAlign=Right
antialias=1
[MeasureGame10HomeScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=39
[MeterGame10HomeScore]
Meter=String
MeasureName=MeasureGame10HomeScore
x=r
y=40r
w=25
h=25
FontSize=25
FontColor=255,255,255,255
StringAlign=Right
antialias=1
[MeasureGame10AwayTeam]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=38
[MeterGame10AwayTeam]
Meter=Image
MeasureName=MeasureGame10AwayTeam
x=250
y=925
w=40
h=40
FontSize=20
FontColor=255,255,255,255
StringAlign=Right
antialias=1
[MeasureGame10HomeTeam]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=40
[MeterGame10HomeTeam]
Meter=Image
MeasureName=MeasureGame10HomeTeam
x=r
y=40r
w=40
h=40
FontSize=20
FontColor=255,255,255,255
StringAlign=Right
antialias=1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 11;;;;;;;;;;;;;;;;;;
[MeasureGame11AwayTeam]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=41
[MeterGame11AwayTeam]
Meter=String
MeasureName=MeasureGame11AwayTeam
x=325
y=1025
w=25
h=25
FontSize=20
FontColor=255,255,255,255
StringAlign=Center
antialias=1
[MeasureGame11HomeTeam]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=42
[MeterGame11HomeTeam]
Meter=String
MeasureName=MeasureGame11HomeTeam
x=r
y=25r
w=25
h=25
FontSize=20
FontColor=255,255,255,255
StringAlign=Center
antialias=1
[MeasureGame11AwayScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=43
[MeterGame11AwayScore]
Meter=String
MeasureName=MeasureGame11AwayScore
x=75r
y=1025
w=25
h=25
FontSize=20
FontColor=255,255,255,255
StringAlign=Center
antialias=1
[MeasureGame11HomeScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=44
[MeterGame11HomeScore]
Meter=String
MeasureName=MeasureGame11HomeScore
x=r
y=25r
w=25
h=25
FontSize=20
FontColor=255,255,255,255
StringAlign=Center
antialias=1
;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 12;;;;;;;;;;;;;;;;;;
; [MeasureGame12AwayTeam]
; Measure=WebParser
; URL=[MeasureNHL]
; StringIndex=45
; [MeterGame12AwayTeam]
; Meter=String
; MeasureName=MeasureGame12AwayTeam
; x=325
; y=1125
; w=25
; h=25
; FontSize=20
; FontColor=255,255,255,255
; StringAlign=Center
; antialias=1
; [MeasureGame12HomeTeam]
; Measure=WebParser
; URL=[MeasureNHL]
; StringIndex=46
; [MeterGame12HomeTeam]
; Meter=String
; MeasureName=MeasureGame12HomeTeam
; x=r
; y=25r
; w=25
; h=25
; FontSize=20
; FontColor=255,255,255,255
; StringAlign=Center
; antialias=1
; [MeasureGame12AwayScore]
; Measure=WebParser
; URL=[MeasureNHL]
; StringIndex=47
; [MeterGame12AwayScore]
; Meter=String
; MeasureName=MeasureGame12AwayScore
; x=75r
; y=1125
; w=25
; h=25
; FontSize=20
; FontColor=255,255,255,255
; StringAlign=Center
; antialias=1
; [MeasureGame12HomeScore]
; Measure=WebParser
; URL=[MeasureNHL]
; StringIndex=48
; [MeterGame12HomeScore]
; Meter=String
; MeasureName=MeasureGame12HomeScore
; x=r
; y=25r
; w=25
; h=25
; FontSize=20
; FontColor=255,255,255,255
; StringAlign=Center
; antialias=1
;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 13;;;;;;;;;;;;;;;;;;
; [MeasureGame13AwayTeam]
; Measure=WebParser
; URL=[MeasureNHL]
; StringIndex=49
; [MeterGame13AwayTeam]
; Meter=String
; MeasureName=MeasureGame13AwayTeam
; x=325
; y=1225
; w=25
; h=25
; FontSize=20
; FontColor=255,255,255,255
; StringAlign=Center
; antialias=1
; [MeasureGame13HomeTeam]
; Measure=WebParser
; URL=[MeasureNHL]
; StringIndex=50
; [MeterGame13HomeTeam]
; Meter=String
; MeasureName=MeasureGame13HomeTeam
; x=r
; y=25r
; w=25
; h=25
; FontSize=20
; FontColor=255,255,255,255
; StringAlign=Center
; antialias=1
; [MeasureGame13AwayScore]
; Measure=WebParser
; URL=[MeasureNHL]
; StringIndex=51
; [MeterGame13AwayScore]
; Meter=String
; MeasureName=MeasureGame13AwayScore
; x=75r
; y=1225
; w=25
; h=25
; FontSize=20
; FontColor=255,255,255,255
; StringAlign=Center
; antialias=1
; [MeasureGame13HomeScore]
; Measure=WebParser
; URL=[MeasureNHL]
; StringIndex=52
; [MeterGame13HomeScore]
; Meter=String
; MeasureName=MeasureGame13HomeScore
; x=r
; y=25r
; w=25
; h=25
; FontSize=20
; FontColor=255,255,255,255
; StringAlign=Center
; antialias=1
;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 14;;;;;;;;;;;;;;;;;;
; [MeasureGame14AwayTeam]
; Measure=WebParser
; URL=[MeasureNHL]
; StringIndex=53
; [MeterGame14AwayTeam]
; Meter=String
; MeasureName=MeasureGame14AwayTeam
; x=325
; y=1325
; w=25
; h=25
; FontSize=20
; FontColor=255,255,255,255
; StringAlign=Center
; antialias=1
; [MeasureGame14HomeTeam]
; Measure=WebParser
; URL=[MeasureNHL]
; StringIndex=54
; [MeterGame14HomeTeam]
; Meter=String
; MeasureName=MeasureGame14HomeTeam
; x=r
; y=25r
; w=25
; h=25
; FontSize=20
; FontColor=255,255,255,255
; StringAlign=Center
; antialias=1
; [MeasureGame14AwayScore]
; Measure=WebParser
; URL=[MeasureNHL]
; StringIndex=55
; [MeterGame14AwayScore]
; Meter=String
; MeasureName=MeasureGame14AwayScore
; x=75r
; y=1325
; w=25
; h=25
; FontSize=20
; FontColor=255,255,255,255
; StringAlign=Center
; antialias=1
; [MeasureGame14HomeScore]
; Measure=WebParser
; URL=[MeasureNHL]
; StringIndex=56
; [MeterGame14HomeScore]
; Meter=String
; MeasureName=MeasureGame14HomeScore
; x=r
; y=25r
; w=25
; h=25
; FontSize=20
; FontColor=255,255,255,255
; StringAlign=Center
; antialias=1
;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 15;;;;;;;;;;;;;;;;;;
; [MeasureGame15AwayTeam]
; Measure=WebParser
; URL=[MeasureNHL]
; StringIndex=57
; [MeterGame15AwayTeam]
; Meter=String
; MeasureName=MeasureGame15AwayTeam
; x=325
; y=1425
; w=25
; h=25
; FontSize=20
; FontColor=255,255,255,255
; StringAlign=Center
; antialias=1
; [MeasureGame15HomeTeam]
; Measure=WebParser
; URL=[MeasureNHL]
; StringIndex=58
; [MeterGame15HomeTeam]
; Meter=String
; MeasureName=MeasureGame15HomeTeam
; x=r
; y=25r
; w=25
; h=25
; FontSize=20
; FontColor=255,255,255,255
; StringAlign=Center
; antialias=1
; [MeasureGame15AwayScore]
; Measure=WebParser
; URL=[MeasureNHL]
; StringIndex=59
; [MeterGame15AwayScore]
; Meter=String
; MeasureName=MeasureGame15AwayScore
; x=75r
; y=1425
; w=25
; h=25
; FontSize=20
; FontColor=255,255,255,255
; StringAlign=Center
; antialias=1
; [MeasureGame15HomeScore]
; Measure=WebParser
; URL=[MeasureNHL]
; StringIndex=60
; [MeterGame15HomeScore]
; Meter=String
; MeasureName=MeasureGame15HomeScore
; x=r
; y=25r
; w=25
; h=25
; FontSize=20
; FontColor=255,255,255,255
; StringAlign=Center
; antialias=1
You can tell I was playing around with a couple variable options but haven't found the right combination yet so ignore that mess. I think my problem is I don't know exactly what I should tell it to look for. Since "teams" shows up twice for each game but doesn't grab it twice like I thought it should (even though I don't want it to), then the last game it grabs a bunch more than I ask it to.
"teams" shows this info:
Code: Select all
"teams" : {
"away" : {
"leagueRecord" : {
"wins" : 8,
"losses" : 11,
"ot" : 3,
"type" : "league"
},
"score" : 0,
"team" : {
"id" : 19,
"name" : "St. Louis Blues",
"link" : "/api/v1/teams/19"
}
},
"home" : {
"leagueRecord" : {
"wins" : 10,
"losses" : 11,
"ot" : 3,
"type" : "league"
},
"score" : 0,
"team" : {
"id" : 17,
"name" : "Detroit Red Wings",
"link" : "/api/v1/teams/17"
}
}
},
But also this right after it for the same game
Code: Select all
"teams" : {
"home" : {
"team" : {
"id" : 17,
"name" : "Detroit Red Wings",
"link" : "/api/v1/teams/17"
},
"goals" : 0,
"shotsOnGoal" : 0,
"goaliePulled" : false,
"numSkaters" : 0,
"powerPlay" : false
},
"away" : {
"team" : {
"id" : 19,
"name" : "St. Louis Blues",
"link" : "/api/v1/teams/19"
},
"goals" : 0,
"shotsOnGoal" : 0,
"goaliePulled" : false,
"numSkaters" : 0,
"powerPlay" : false
}
},
Also as a side note, if I take out the "?expand=schedule.linescore" from the URL it works fine, but I want to keep that in there as that's how I'll eventually grab the period, shots, and whatever else I feel like adding.
Thanks in advance.