|
|
|
@ -221,10 +221,13 @@ class Links(urwid.ListBox):
|
|
|
|
def parseLink(self, link):
|
|
|
|
def parseLink(self, link):
|
|
|
|
ext = link.split(".")[-1]
|
|
|
|
ext = link.split(".")[-1]
|
|
|
|
if ext.lower() in ("jpg", "jpeg", "gif", "png", "tif", "tiff"):
|
|
|
|
if ext.lower() in ("jpg", "jpeg", "gif", "png", "tif", "tiff"):
|
|
|
|
os.system('nohup feh ' + link + ' 2>/dev/null &')
|
|
|
|
os.system('nohup feh ' + link + ' </dev/null >/dev/null 2>&1 &')
|
|
|
|
elif Utils.checkStreamingVideo(link):
|
|
|
|
elif Utils.checkStreamingVideo(link):
|
|
|
|
tui.destroyOverlay()
|
|
|
|
tui.destroyOverlay()
|
|
|
|
os.system('nohup mpv --ytdl-format="bestvideo[height<=720]+bestaudio/best[height<=720]" "' + link + '" 2>/dev/null &')
|
|
|
|
os.system(
|
|
|
|
|
|
|
|
'nohup mpv --ytdl-format="bestvideo[height<=720]+bestaudio/best[height<=720]" "' +
|
|
|
|
|
|
|
|
link +
|
|
|
|
|
|
|
|
'" </dev/null >/dev/null 2>&1 &')
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
subprocess.Popen(['firefox', '-new-tab', link])
|
|
|
|
subprocess.Popen(['firefox', '-new-tab', link])
|
|
|
|
|
|
|
|
|
|
|
|
|