mirror of
https://github.com/FakeTV/pseudo-channel.git
synced 2026-01-01 16:03:12 +00:00
@MoRBiD MaNGLeR, added condition for 'media.duration' to default at 1 if no duration exists.
This commit is contained in:
@@ -124,7 +124,15 @@ class PseudoChannel():
|
||||
backgroundImgURL = ''
|
||||
if isinstance(backgroundImagePath.art, str):
|
||||
backgroundImgURL = config.baseurl+backgroundImagePath.art+"?X-Plex-Token="+config.token
|
||||
self.db.add_shows_to_db(2, media.title, media.duration, '', backgroundImgURL, media.key, section.title)
|
||||
self.db.add_shows_to_db(
|
||||
2,
|
||||
media.title,
|
||||
media.duration if media.duration else 1,
|
||||
'',
|
||||
backgroundImgURL,
|
||||
media.key,
|
||||
section.title
|
||||
)
|
||||
self.print_progress(
|
||||
i + 1,
|
||||
len(sectionMedia),
|
||||
|
||||
Reference in New Issue
Block a user