Initial Commit

This commit is contained in:
2026-01-29 18:09:56 -05:00
parent 150d57c782
commit 38f58fa144
10 changed files with 1790 additions and 0 deletions

49
environment.py Executable file
View File

@@ -0,0 +1,49 @@
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"
LEVIN_ARCHIVE_URL="https://www.foxnews.com/video/levindummyurl"
HANNITY_ARCHIVE_URL="https://www.foxnews.com/video/hannitydummyurl"
HAWLEY_ARCHIVE_URL="https://www.foxnews.com/video/hawleydummyurl"
MILITARY_ARCHIVE_URL="https://www.foxnews.com/video/militarydummyurl"
#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"
LEVINARCHIVEDB_FILENAME="levindb.txt"
HANNITYARCHIVEDB_FILENAME="hannitydb.txt"
HAWLEYARCHIVEDB_FILENAME="hawleydb.txt"
MILITARYARCHIVEDB_FILENAME="militarydb.txt"
CACHE_EXPIRY_MINS=10
LOG_HTTP_RESPONSES = False
FEED_REJECT_IF_OLDER_THAN_DAYS = 7
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