Merge pull request #7 from lyricalpaws/main

favicon fix
This commit is contained in:
Chloe 2022-05-20 19:43:23 +01:00 committed by GitHub
commit e0f3846357
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 10 deletions

View File

@ -2,6 +2,7 @@
<html lang="en">
<head>
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

View File

@ -1,6 +1,7 @@
<html>
<head>
<title>Twxtter Stats</title>
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
<style>
</style>

View File

@ -480,15 +480,6 @@ def dir(sub_path):
return redirect(url, 301)
@app.route("/favicon.ico") # This shit don't work
def favicon():
return send_from_directory(
os.path.join(app.root_path, "static"),
"favicon.ico",
mimetype="image/vnd.microsoft.icon",
)
def direct_video(video_link): # Just get a redirect to a MP4 link from any tweet link
cached_vnf = getVnfFromLinkCache(video_link)
if cached_vnf == None:
@ -564,7 +555,7 @@ def embed_video(video_link, image=0, raw=False): # Return Embed from any tweet
def tweetInfo(
url,
url="",
tweet="",
desc="",
thumb="",