mirror of
https://github.com/FakeTV/pseudo-channel.git
synced 2025-12-19 09:43:31 +00:00
Fixed BG Image bug.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -7,3 +7,4 @@ pseudo-tv.db-journal
|
|||||||
*.pyc
|
*.pyc
|
||||||
old/
|
old/
|
||||||
pseudo-channel.db
|
pseudo-channel.db
|
||||||
|
*.db-journal
|
||||||
|
|||||||
@@ -38,11 +38,19 @@ class PseudoDailyScheduleController():
|
|||||||
'''
|
'''
|
||||||
def get_show_photo(self, section, title):
|
def get_show_photo(self, section, title):
|
||||||
|
|
||||||
backgroundImagePath = self.PLEX.library.section(section).get(title)
|
backgroundImagePath = None
|
||||||
|
|
||||||
backgroundImgURL = ''
|
backgroundImgURL = ''
|
||||||
|
|
||||||
if isinstance(backgroundImagePath.art, str):
|
try:
|
||||||
|
|
||||||
|
backgroundImagePath = self.PLEX.library.section(section).get(title)
|
||||||
|
|
||||||
|
except:
|
||||||
|
|
||||||
|
return backgroundImgURL
|
||||||
|
|
||||||
|
if backgroundImagePath != None and isinstance(backgroundImagePath.art, str):
|
||||||
|
|
||||||
backgroundImgURL = self.BASE_URL+backgroundImagePath.art+"?X-Plex-Token="+self.TOKEN
|
backgroundImgURL = self.BASE_URL+backgroundImagePath.art+"?X-Plex-Token="+self.TOKEN
|
||||||
|
|
||||||
@@ -218,7 +226,7 @@ class PseudoDailyScheduleController():
|
|||||||
|
|
||||||
clientItem.playMedia(item)
|
clientItem.playMedia(item)
|
||||||
|
|
||||||
break
|
break
|
||||||
|
|
||||||
elif mediaType == "Movies":
|
elif mediaType == "Movies":
|
||||||
|
|
||||||
@@ -303,12 +311,13 @@ class PseudoDailyScheduleController():
|
|||||||
|
|
||||||
self.write_schedule_to_file(
|
self.write_schedule_to_file(
|
||||||
self.get_html_from_daily_schedule(
|
self.get_html_from_daily_schedule(
|
||||||
timeB,
|
timeB,
|
||||||
self.get_show_photo(
|
self.get_show_photo(
|
||||||
row[11],
|
row[11],
|
||||||
row[3]),
|
row[3]
|
||||||
datalist
|
),
|
||||||
)
|
datalist
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
self.my_logger.debug('Trying to play: ' + row[3])
|
self.my_logger.debug('Trying to play: ' + row[3])
|
||||||
|
|||||||
Reference in New Issue
Block a user