def plugin_vod_subscription_filter(): api_vod_subscription() subscription_filter = load_file(file='cache/vod_subscription.json', isJSON=True) if subscription_filter and sys.version_info >= (3, 0): subscription_filter = list(subscription_filter) return subscription_filter
def plugin_vod_subscription_filter(): api_vod_subscription() subscription_filter = load_file(file='cache/vod_subscription.json', isJSON=True) if subscription_filter: subscription_filter = list(subscription_filter) return subscription_filter
def plugin_vod_subscription_filter(): api_vod_subscription() subscription_filter = load_file(file=os.path.join('cache', 'vod_subscription.json'), isJSON=True) if subscription_filter: subscription_filter = list(subscription_filter) return subscription_filter
def service_timer(timer): if timer == 'daily': from resources.lib.api import api_vod_subscription from resources.lib.base.l1.constants import ADDON_PROFILE from resources.lib.base.l3.util import is_file_older_than_x_days if is_file_older_than_x_days(ADDON_PROFILE + 'vod_subscription.json', days=1): api_vod_subscription() elif timer == 'hourly': pass elif timer == 'startup': pass
def plugin_post_login(): from resources.lib.api import api_vod_subscription api_vod_subscription()