This commit is contained in:
Dpeta 2021-03-23 22:37:31 +01:00
parent 475b849049
commit 12a559ad24
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@
# karxi: Now that Homestuck is over, this might be removed. # karxi: Now that Homestuck is over, this might be removed.
# Even if it isn't, it needs cleanup; the code is unpleasant. # Even if it isn't, it needs cleanup; the code is unpleasant.
from libs import feedparser import feedparser
import pickle import pickle
import os import os
import sys import sys

View file

@ -353,7 +353,7 @@ def updateExtract(url, extension):
extension = ".zip" extension = ".zip"
else: else:
try: try:
from libs import magic # :O I'M IMPORTING /MAGIC/!! HOLY SHIT! import magic # :O I'M IMPORTING /MAGIC/!! HOLY SHIT!
mime = magic.from_file(fn, mime=True) mime = magic.from_file(fn, mime=True)
if mime == 'application/octet-stream': if mime == 'application/octet-stream':
extension = ".exe" extension = ".exe"