aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Blake <oak99sky@yahoo.co.uk>2021-02-16 10:24:32 +0000
committerGitHub <noreply@github.com>2021-02-16 10:24:32 +0000
commit6821e93326d621e2dd58ad736a6d391e8b21e4e5 (patch)
tree6750181ad6a2bbdb56a63924c59367aec422584b
parenta877cc223670d7e4a1b50ea0e558bf2044d62271 (diff)
parentab6d1f7fb60da6cfa54fe040bc2d05a13746aaad (diff)
Merge pull request #19233 from rmrector/fix-fanart-counts
[jsonrpc] fix list index from #19185
-rw-r--r--xbmc/interfaces/json-rpc/schema/version.txt2
-rw-r--r--xbmc/video/VideoDatabase.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/xbmc/interfaces/json-rpc/schema/version.txt b/xbmc/interfaces/json-rpc/schema/version.txt
index 0df0e570bd..3621bebdad 100644
--- a/xbmc/interfaces/json-rpc/schema/version.txt
+++ b/xbmc/interfaces/json-rpc/schema/version.txt
@@ -1 +1 @@
-JSONRPC_VERSION 12.2.0
+JSONRPC_VERSION 12.2.1
diff --git a/xbmc/video/VideoDatabase.cpp b/xbmc/video/VideoDatabase.cpp
index 0356c15049..098da33a01 100644
--- a/xbmc/video/VideoDatabase.cpp
+++ b/xbmc/video/VideoDatabase.cpp
@@ -4867,7 +4867,7 @@ std::vector<CScraperUrl::SUrlEntry> GetBasicItemAvailableArt(
if (artType.empty() || artType == "fanart")
{
tag.m_fanart.Unpack();
- for (unsigned int i = 1; i < tag.m_fanart.GetNumFanarts(); i++)
+ for (unsigned int i = 0; i < tag.m_fanart.GetNumFanarts(); i++)
{
CScraperUrl::SUrlEntry url(tag.m_fanart.GetImageURL(i));
url.m_preview = tag.m_fanart.GetPreviewURL(i);