APPEND_SYS_PATH='/home/pi/.kodi/addons/plugin.video.fox.news/resources/lib' PATH_VIDEO_DATABASE='/home/pi/.kodi/addons/plugin.video.fox.news/resources/lib/archive' USE_ICON_URL=True PATH_LOG_FILE="/home/pi/.kodi/temp/MyLog.log" FOX_NEWS_URL="https://www.foxnews.com/video" FOX_NEWS_US_URL="hhttps://www.foxnews.com/video/topics/us" FOX_NEWS_EXCLUSIVE_URL="https://foxnews.com" FOX_NEWS_AMERICAS_NEWSROOM_URL="https://www.foxnews.com/video/shows/americas-newsroom" FOX_NEWS_OUTNUMBERED_URL="https://www.foxnews.com/video/shows/outnumbered" SELECTED_ARCHIVE_URL="https://www.foxnews.com/video/dummy" #FOX_NEWS_ICON_OF_LAST_RESORT="https://static.foxnews.com/static/orion/styles/img/fox-news/favicons/apple-touch-icon-180x180.png" #ENABLE_USE_ICON_OF_LAST_RESORT=False VIDEODB_AMERICAS_NEWSROOM_FILENAME="videodb_americasnewsroom.txt" VIDEODB_OUTNUMBERED_FILENAME="videodb_outnumbered.txt" VIDEODB_FILENAME="videodb.txt" VIDEODB_EXCLUSIVE_FILENAME="videodb_exc.txt" VIDEODB_US_FILENAME="videodb_us.txt" ARCHIVEDB_FILENAME="archivedb.txt" CACHE_EXPIRY_MINS=10 class PathHelper: pathChar="/" def __init__(self): pass @staticmethod def makePathFileName(file,path): while file.endswith(PathHelper.pathChar): file=file[:-1] while path.endswith(PathHelper.pathChar): path=path[:-1] return path+PathHelper.pathChar+file