mirror of
https://github.com/ReviveMii/revivetube
synced 2025-04-29 12:39:25 -04:00
small changes
This commit is contained in:
parent
1769187f29
commit
8087594ccb
4 changed files with 8 additions and 25 deletions
|
@ -4,7 +4,7 @@ Watch YouTube on your Wii!
|
|||
|
||||
ReviveTube: http://yt.old.errexe.xyz/
|
||||
|
||||
ReviveMii Homepage: https://revivemii.errexe.xyz
|
||||
ReviveMii Homepage: https://revivemii.errexe.xyz/
|
||||
|
||||
# Self Hosting
|
||||
|
||||
|
|
|
@ -47,7 +47,6 @@ def start_folder_check():
|
|||
|
||||
|
||||
VIDEO_FOLDER = "sigma/videos"
|
||||
API_BASE_URL = "https://y.com.sb/api/v1/"
|
||||
YOUTUBE_API_URL = "https://www.googleapis.com/youtube/v3/videos"
|
||||
video_status = {}
|
||||
|
||||
|
@ -71,25 +70,9 @@ def get_folder_size(path):
|
|||
return total_size
|
||||
|
||||
|
||||
"""
|
||||
[UNUSED IN THE CURRENT VERSION]
|
||||
|
||||
def delete_videos_periodically():
|
||||
while True:
|
||||
time.sleep(86400)
|
||||
for filename in os.listdir(VIDEO_FOLDER):
|
||||
file_path = os.path.join(VIDEO_FOLDER, filename)
|
||||
if os.path.isfile(file_path):
|
||||
os.remove(file_path)
|
||||
print(f"Deleted: {file_path}")
|
||||
|
||||
threading.Thread(target=delete_videos_periodically, daemon=True).start()
|
||||
"""
|
||||
|
||||
INDEX_TEMPLATE = helper.read_file(f"site_storage{FILE_SEPARATOR}index_template.html")
|
||||
|
||||
WATCH_STANDARD_TEMPLATE = helper.read_file(f"site_storage{FILE_SEPARATOR}watch_standard_template.html")
|
||||
|
||||
WATCH_WII_TEMPLATE = helper.read_file(f"site_storage{FILE_SEPARATOR}watch_wii_template.html")
|
||||
|
||||
|
||||
|
@ -217,7 +200,7 @@ def watch():
|
|||
if video_duration > 420:
|
||||
alert_script = """
|
||||
<script type="text/javascript">
|
||||
alert("This Video is long. There is a chance that the Wii will not play the Video. Try a Video under 7 minutes or something like that.");
|
||||
alert("This Video is long. There is a chance that the Wii will not play the Video. Try a Video under 5 minutes.");
|
||||
</script>
|
||||
"""
|
||||
|
||||
|
@ -350,7 +333,7 @@ def video_metadata(video_id):
|
|||
data = response.json()
|
||||
|
||||
if "items" not in data or len(data["items"]) == 0:
|
||||
return f"Video mit ID {video_id} wurde nicht gefunden.", 404
|
||||
return f"The Video with ID {video_id} was not found.", 404
|
||||
|
||||
video_data = data["items"][0]
|
||||
title = video_data["snippet"]["title"]
|
||||
|
@ -374,7 +357,7 @@ def video_metadata(video_id):
|
|||
}
|
||||
|
||||
except requests.exceptions.RequestException as e:
|
||||
return f"Fehler bei der API-Anfrage: {str(e)}", 500
|
||||
return f"API Error: {str(e)}", 500
|
||||
|
||||
|
||||
@app.route("/<path:filename>")
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>ReviveTube by ReviveMii</title>
|
||||
<title>ReviveTube - A YouTube App for the Wii</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
|
@ -82,7 +82,7 @@
|
|||
</div>
|
||||
<div class="content">
|
||||
{% if results %}
|
||||
<h2>Search Results</h2>
|
||||
<h2>Search Results:</h2>
|
||||
<div class="video-grid">
|
||||
{% for video in results %}
|
||||
<div class="video-item">
|
||||
|
@ -97,7 +97,7 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<p style="color: red; text-align: center;">Search something...</p>
|
||||
<p style="color: red; text-align: center;">ReviveTube - A YouTube App for the Wii</p>
|
||||
<p style="text-align: center;"><a href="http://revivemii.errexe.xyz" target="_blank">Visit the ReviveMii Project</a></p>
|
||||
<p style="font-size: 12px; text-align: center;">We are NOT affiliated with Nintendo or YouTube.</p>
|
||||
<p style="text-align: center;">
|
||||
|
|
|
@ -90,7 +90,7 @@
|
|||
<p id="progressText">Fetching Info...</p>
|
||||
<button id="goButton" onclick="startVideo()">Go</button>
|
||||
<br>
|
||||
<small>Loading Screen will NOT work in Dolphin Emulator.<br><br>Long Video = Longer Download and Converting.<br><br>For videos longer than 7 minutes, there is a chance that they won’t play.</small>
|
||||
<small>Loading Screen will NOT work in Dolphin Emulator.<br><br>Long Video = Longer Download and Converting.<br><br>Videos over 5 minutes will not play.</small>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
var goButton = document.getElementById('goButton');
|
||||
|
|
Loading…
Add table
Reference in a new issue