&%S1$W$4NqEfLAUxSt29MEqXSxwbUHv9-p=5of5NLPgpBn
z;M!9)Gvu=aa?tS|*B1r1$RtHEse2XXN}aQUEt9Hn!4vbUtXCtWa~nlg5sv3(b*WeI
zFj8N^UD7Oiu3)Z^g!wuSYN2&AxizoMa;)r>N{$=
z;zwlS^q3;u^>1STH^cb^yieve`X!29OEdCAX3Nx-KSUKKqWM|c8jmPU$Me&)l_ScZ
sHV_xGq&Lq;=%5(z1VT4*z3kaRiQV8M81_b0Zv(p$($NM Fetching Info... A YouTube App for the Wii \/ Scroll down \/ We are NOT affiliated with Nintendo or YouTube. This app uses code from Wiinet.xyz. For more information, scroll down to Open Source Software. It's recommended to bookmark this page. Some sites may take longer to load. Version: v2 Beta (Sometimes I forget to update the Version Number)Loading
-
-
- Loading Screen will NOT work in Dolphin Emulator.
Long Video = Longer Download and Converting.
For videos longer than 7 minutes, there is a chance that they won’t play.
-
-
-"""
def get_file_size(file_path):
return os.path.getsize(file_path)
+
def get_range(file_path, byte_range):
with open(file_path, 'rb') as f:
f.seek(byte_range[0])
return f.read(byte_range[1] - byte_range[0] + 1)
+
def get_api_key():
try:
with open("token.txt", "r") as f:
- return f.read().strip()
+ return f.read().strip()
except FileNotFoundError:
raise FileNotFoundError("Missing token.txt. Please go to README.md")
+
os.makedirs(VIDEO_FOLDER, exist_ok=True)
-MAX_VIDEO_SIZE = 1 * 1024 * 1024 * 1024
-MAX_FOLDER_SIZE = 5 * 1024 * 1024 * 1024
+MAX_VIDEO_SIZE = 1 * 1024 * 1024 * 1024
+MAX_FOLDER_SIZE = 5 * 1024 * 1024 * 1024
+
def get_folder_size(path):
total_size = 0
@@ -169,7 +89,10 @@ def get_folder_size(path):
total_size += os.path.getsize(file_path)
return total_size
+
"""
+[UNUSED IN THE CURRENT VERSION]
+
def delete_videos_periodically():
while True:
time.sleep(86400)
@@ -182,244 +105,13 @@ def delete_videos_periodically():
threading.Thread(target=delete_videos_periodically, daemon=True).start()
"""
-INDEX_TEMPLATE = """
-
-
-
-
-
- ReviveTube by ReviveMii
- Search Results
-
- Source Code
- Discord Server [Use a Compatible Device]
-
- Contact
-
- Report Bugs & Feedback
-
-
-"""
+INDEX_TEMPLATE = read_file(f"site_storage{FILE_SEPARATOR}index_template.html")
+
+WATCH_STANDARD_TEMPLATE = read_file(f"site_storage{FILE_SEPARATOR}watch_standard_template.html")
+
+WATCH_WII_TEMPLATE = read_file(f"site_storage{FILE_SEPARATOR}watch_wii_template.html")
-WATCH_STANDARD_TEMPLATE = """
-
-
-
-
-
-