本文整理汇总了Python中common.Logger.logNotice方法的典型用法代码示例。如果您正苦于以下问题:Python Logger.logNotice方法的具体用法?Python Logger.logNotice怎么用?Python Logger.logNotice使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类common.Logger
的用法示例。
在下文中一共展示了Logger.logNotice方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: retrieveTVShowsAndSave
# 需要导入模块: from common import Logger [as 别名]
# 或者: from common.Logger import logNotice [as 别名]
def retrieveTVShowsAndSave(request_obj, response_obj):
oldfilepath = AddonUtils.getCompleteFilePath(baseDirPath=Container().getAddonContext().addonProfile, extraDirPath=AddonUtils.ADDON_SRC_DATA_FOLDER, filename=OLD_CHANNELS_JSON_FILE, makeDirs=True)
AddonUtils.deleteFile(oldfilepath)
filepath = AddonUtils.getCompleteFilePath(baseDirPath=Container().getAddonContext().addonProfile, extraDirPath=AddonUtils.ADDON_SRC_DATA_FOLDER, filename=CHANNELS_JSON_FILE, makeDirs=True)
refresh = Container().getAddonContext().addon.getSetting('drForceRefresh')
if refresh == None or refresh != 'true':
lastModifiedTime = AddonUtils.getFileLastModifiedTime(filepath)
if lastModifiedTime is not None:
diff = long((time.time() - lastModifiedTime) / 3600)
if diff < 720:
return
else:
Logger.logNotice(CHANNELS_JSON_FILE + ' was last created 30 days ago, refreshing data.')
else:
Logger.logNotice(CHANNELS_JSON_FILE + ' request to force refresh data. ')
tvChannels = {"UTV Stars":
{"iconimage":"http://www.lyngsat-logo.com/logo/tv/uu/utv_stars.jpg",
"channelType": "IND",
"running_tvshows_url": "/forumdisplay.php?f=1274",
"finished_tvshows_url": "/forumdisplay.php?f=1435"},
"Star Plus":
{"iconimage":"http://www.lyngsat-logo.com/logo/tv/ss/star_plus.jpg",
"channelType": "IND",
"running_tvshows_url": "/forumdisplay.php?f=42",
"finished_tvshows_url": "/forumdisplay.php?f=209"},
"Zee TV":
{"iconimage":"http://www.lyngsat-logo.com/logo/tv/zz/zee_tv.jpg",
"channelType": "IND",
"running_tvshows_url": "/forumdisplay.php?f=73",
"finished_tvshows_url": "/forumdisplay.php?f=211"},
"Sony TV":
{"iconimage":"http://www.lyngsat-logo.com/logo/tv/ss/set_in.jpg",
"channelType": "IND",
"running_tvshows_url": "/forumdisplay.php?f=63",
"finished_tvshows_url": "/forumdisplay.php?f=210"},
"Life OK":
{"iconimage":"http://www.lyngsat-logo.com/logo/tv/ll/life_ok_in.jpg",
"channelType": "IND",
"running_tvshows_url": "/forumdisplay.php?f=1375",
"finished_tvshows_url": "/forumdisplay.php?f=1581"},
"Star Jalsha":
{"iconimage":"http://www.lyngsat-logo.com/logo/tv/ss/star_jalsha.jpg",
"channelType": "IND",
"running_tvshows_url": "/forumdisplay.php?f=667",
"finished_tvshows_url": "/forumdisplay.php?f=1057"},
"Sahara One":
{"iconimage":"http://www.lyngsat-logo.com/logo/tv/ss/sahara_one.jpg",
"channelType": "IND",
"running_tvshows_url": "/forumdisplay.php?f=134",
"finished_tvshows_url": "/forumdisplay.php?f=213"},
"Colors":
{"iconimage":"http://www.lyngsat-logo.com/logo/tv/cc/colors_in.jpg",
"channelType": "IND",
"running_tvshows_url": "/forumdisplay.php?f=176",
"finished_tvshows_url": "/forumdisplay.php?f=374"},
"Sab TV":
{"iconimage":"http://www.lyngsat-logo.com/logo/tv/ss/sony_sab_tv.jpg",
"channelType": "IND",
"running_tvshows_url": "/forumdisplay.php?f=254",
"finished_tvshows_url": "/forumdisplay.php?f=454"},
"MTV (India/Pakistan)":
{"iconimage":"http://www.lyngsat-logo.com/logo/tv/mm/mtv_india.jpg",
"channelType": "IND",
"running_tvshows_url": "/forumdisplay.php?f=339",
"finished_tvshows_url": "/forumdisplay.php?f=532"},
"Bindass TV":
{"iconimage":"http://www.lyngsat-logo.com/logo/tv/uu/utv_bindass.jpg",
"channelType": "IND",
"running_tvshows_url": "/forumdisplay.php?f=504",
"finished_tvshows_url": "/forumdisplay.php?f=960"},
"Channel [V]":
{"iconimage":"http://www.lyngsat-logo.com/logo/tv/cc/channel_v_in.jpg",
"channelType": "IND",
"running_tvshows_url": "/forumdisplay.php?f=633",
"finished_tvshows_url": "/forumdisplay.php?f=961"},
"DD National":
{"iconimage":"http://www.lyngsat-logo.com/logo/tv/dd/dd_national.jpg",
"channelType": "IND",
"running_tvshows_url": "/forumdisplay.php?f=535",
"finished_tvshows_url": "/forumdisplay.php?f=801"},
"Ary Digital":
{"iconimage":"http://www.lyngsat-logo.com/logo/tv/aa/atn_ary_digital.jpg",
"channelType": "PAK",
"running_tvshows_url": "/forumdisplay.php?f=384",
"finished_tvshows_url": "/forumdisplay.php?f=950"},
"GEO TV":
{"iconimage":"http://www.lyngsat-logo.com/logo/tv/gg/geo_tv.jpg",
"channelType": "PAK",
"running_tvshows_url": "/forumdisplay.php?f=413",
"finished_tvshows_url": "/forumdisplay.php?f=894"},
"HUM TV":
{"iconimage":"http://www.lyngsat-logo.com/logo/tv/hh/hum_tv.jpg",
"channelType": "PAK",
"running_tvshows_url": "/forumdisplay.php?f=448",
"finished_tvshows_url": "/forumdisplay.php?f=794"},
"A PLUS":
{"iconimage":"http://www.lyngsat-logo.com/logo/tv/aa/a_plus.jpg",
"channelType": "PAK",
"running_tvshows_url": "/forumdisplay.php?f=1327",
#.........这里部分代码省略.........