mirror of
https://github.com/jwetzell/psn-js.git
synced 2026-08-15 04:13:51 +00:00
tracker id 0 being skipped
This commit is contained in:
@@ -14,7 +14,7 @@ function decodeDataTrackerListChunk(dataTrackerListChunk: DataTrackerListChunk)
|
||||
if (trackerChunk.data_len) {
|
||||
offset += trackerChunk.data_len;
|
||||
}
|
||||
if (trackerChunk.id) {
|
||||
if (trackerChunk.id !== undefined) {
|
||||
dataTrackerListChunk.trackers[trackerChunk.id] = trackerChunk;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ function decodeInfoTrackerListChunk(infoTrackerListChunk: InfoTrackerListChunk)
|
||||
if (trackerChunk.data_len) {
|
||||
offset += trackerChunk.data_len;
|
||||
}
|
||||
if (trackerChunk.id) {
|
||||
if (trackerChunk.id !== undefined) {
|
||||
infoTrackerListChunk.trackers[trackerChunk.id] = trackerChunk;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user