hopefully fix favicon
Signed-off-by: Chloe Carver-Brown <admin@twxtter.com>
This commit is contained in:
parent
0ad193c13a
commit
a24dc40794
|
@ -2,6 +2,7 @@
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
|
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Twxtter Stats</title>
|
<title>Twxtter Stats</title>
|
||||||
|
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
11
twitfix.py
11
twitfix.py
|
@ -480,15 +480,6 @@ def dir(sub_path):
|
||||||
return redirect(url, 301)
|
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
|
def direct_video(video_link): # Just get a redirect to a MP4 link from any tweet link
|
||||||
cached_vnf = getVnfFromLinkCache(video_link)
|
cached_vnf = getVnfFromLinkCache(video_link)
|
||||||
if cached_vnf == None:
|
if cached_vnf == None:
|
||||||
|
@ -564,7 +555,7 @@ def embed_video(video_link, image=0, raw=False): # Return Embed from any tweet
|
||||||
|
|
||||||
|
|
||||||
def tweetInfo(
|
def tweetInfo(
|
||||||
url,
|
url="",
|
||||||
tweet="",
|
tweet="",
|
||||||
desc="",
|
desc="",
|
||||||
thumb="",
|
thumb="",
|
||||||
|
|
Reference in New Issue