-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
418cf8a
commit 6806778
Showing
19 changed files
with
364 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Description: TVMagazineCockpit | ||
Maintainer: dream-alpha | ||
Package: enigma2-plugin-extensions-tvmagazinecockpit | ||
Version: 0.8.4 | ||
Version: 0.9.0 | ||
Architecture: all | ||
Depends: enigma2-plugin-skincomponents-extmultilistselection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# !/usr/bin/python | ||
# coding=utf-8 | ||
# | ||
# Copyright (C) 2018-2024 by dream-alpha | ||
# | ||
# In case of reuse of this source code please do not remove this copyright. | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# For more information on the GNU General Public License see: | ||
# <http://www.gnu.org/licenses/>. | ||
|
||
|
||
from .tools import Load_My_Pixmap | ||
from .Constants import EVENT_IDX_BROADCASTER_ID, EVENT_IDX_IMAGES, EVENT_IDX_VIDEOS | ||
from .ConfigInit import plugindir | ||
from .Debug import logger | ||
|
||
|
||
def getPicon(list_event): | ||
picon = str(list_event[EVENT_IDX_BROADCASTER_ID]) + ".png" | ||
picon_file = '%slogos/%s' % (plugindir, picon) | ||
logger.debug("picon_file: %s", picon_file) | ||
pixmap_ptr = Load_My_Pixmap(picon_file) | ||
return pixmap_ptr | ||
|
||
|
||
def getVideo(list_event): | ||
videos = list_event[EVENT_IDX_VIDEOS] | ||
logger.debug("videos: %s", videos) | ||
title = video_url = still_image_url = "" | ||
if len(videos) > 0: | ||
video_list = videos[0].get("video", "") | ||
video = video_list[0] | ||
title = video.get("title", "") | ||
still_image_url = video.get("stillImage", "") | ||
video_url = video.get("url", "") | ||
return title, still_image_url, video_url | ||
|
||
|
||
def getEventPicUrl(list_event): | ||
images = list_event[EVENT_IDX_IMAGES] | ||
logger.debug("images: %s", images) | ||
url = "" | ||
if len(images) > 0: | ||
image = images[0] | ||
url = image.get("size1", "") | ||
logger.debug("programmpix url: %s", url) | ||
return url |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.