Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ pipenv install --dev
```

### Protocol Buffers

If you want to update the library to use the latest Protobuf file from api.igdb.com you can run ./update-protobuf.sh

#### Windows
This project uses [protoc](https://github.com/protocolbuffers/protobuf/releases) to generate the protocol buffer wrapper.
```
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

setup(
name="igdb-api-v4",
version="0.0.6",
author="Felix Nordén",
author_email="felixnorden@gmail.com",
version="0.1.0",
author="IGDB",
author_email="dev@igdb.com",
description="An API wrapper for IGDB API v4",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down
33 changes: 33 additions & 0 deletions src/igdb/igdbapi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ message Cover {
string url = 7;
int32 width = 8;
string checksum = 9;
GameLocalization game_localization = 10;
}

message ExternalGameResult {
Expand Down Expand Up @@ -429,6 +430,7 @@ message Game {
repeated Game ports = 54;
repeated Game forks = 55;
repeated LanguageSupport language_supports = 56;
repeated GameLocalization game_localizations = 57;
}


Expand All @@ -446,6 +448,8 @@ enum GameCategoryEnum {
EXPANDED_GAME = 10;
PORT = 11;
FORK = 12;
PACK = 13;
UPDATE = 14;
}


Expand Down Expand Up @@ -493,6 +497,21 @@ message GameEngineLogo {
string checksum = 8;
}

message GameLocalizationResult {
repeated GameLocalization gamelocalizations = 1;
}

message GameLocalization {
uint64 id = 1;
string name = 2;
Cover cover = 3;
Game game = 4;
Region region = 5;
google.protobuf.Timestamp created_at = 6;
google.protobuf.Timestamp updated_at = 7;
string checksum = 8;
}

message GameModeResult {
repeated GameMode gamemodes = 1;
}
Expand Down Expand Up @@ -841,6 +860,20 @@ message PlayerPerspective {
string checksum = 7;
}

message RegionResult {
repeated Region regions = 1;
}

message Region {
uint64 id = 1;
string name = 2;
string category = 3;
string identifier = 4;
google.protobuf.Timestamp created_at = 5;
google.protobuf.Timestamp updated_at = 6;
string checksum = 7;
}

message ReleaseDateResult {
repeated ReleaseDate releasedates = 1;
}
Expand Down
8,080 changes: 7,866 additions & 214 deletions src/igdb/igdbapi_pb2.py

Large diffs are not rendered by default.