From 069379ae59fef8bb634ae66aa62fce343d0cc245 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sun, 18 Oct 2015 20:54:57 -0500 Subject: [PATCH] Studios modification Kodi only takes in one studio to display the studio logo. All of the studios are still process, but only the first one will be added in the movie table. --- resources/lib/WriteKodiVideoDB.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/lib/WriteKodiVideoDB.py b/resources/lib/WriteKodiVideoDB.py index 6a9605a3..4a2bfe94 100644 --- a/resources/lib/WriteKodiVideoDB.py +++ b/resources/lib/WriteKodiVideoDB.py @@ -120,7 +120,10 @@ class WriteKodiVideoDB(): mpaa = API().getMpaa(MBitem) genre = " / ".join(genres) director = " / ".join(people.get('Director')) - studio = " / ".join(studios) + try: + studio = studios[0] + except IndexError: + studio = None country = API().getCountry(MBitem) try: # Verify if there's a local trailer