Skip to content

Commit

Permalink
chore: Add latest Kodi development version v22
Browse files Browse the repository at this point in the history
  • Loading branch information
bugwelle committed Apr 6, 2024
1 parent 2cffd48 commit ac35f46
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

- TV shows and episodes: If there is more than one network (separated by `,`),
they will be stored as separate `<studio>` tags in the NFO file (#1705)
- Added Kodi v22 to Kodi selection menu.

## 2.10.6 - 2023-12-03

Expand Down
10 changes: 7 additions & 3 deletions src/media_center/KodiVersion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ KodiVersion KodiVersion::latest()

bool KodiVersion::isValid(int val)
{
return val >= 17 && val <= 21;
return val >= 17 && val <= 22;
}

QVector<KodiVersion> KodiVersion::all()
{
return {KodiVersion(v17), KodiVersion(v18), KodiVersion(v19), KodiVersion(v20), KodiVersion(v21)};
return {KodiVersion(v17), KodiVersion(v18), KodiVersion(v19), KodiVersion(v20), KodiVersion(v21), KodiVersion(v22)};
}

KodiVersion::Version KodiVersion::fromInt(int version)
Expand All @@ -31,8 +31,12 @@ KodiVersion::Version KodiVersion::fromInt(int version)
return v19;
} else if (version == 20) {
return v20;
} else {
} else if (version == 21) {
return v21;
} else if (version == 22) {
return v22;
} else {
return v20; // default
}
}

Expand Down
1 change: 1 addition & 0 deletions src/media_center/KodiVersion.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class KodiVersion
v19 = 19, ///< Matrix
v20 = 20, ///< Nexus
v21 = 21, ///< Omega
v22 = 22, ///< ?
// when adding new values, also adapt:
// isValid(), all(), fromInt() and constructor
};
Expand Down

0 comments on commit ac35f46

Please sign in to comment.