From c448b52d9f89225ed5ee096d8d152235c11b98cb Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 11 Nov 2020 20:39:05 +0100 Subject: Update --- .local/bin/linkview | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to '.local/bin/linkview') diff --git a/.local/bin/linkview b/.local/bin/linkview index ed9427f..c5d5053 100755 --- a/.local/bin/linkview +++ b/.local/bin/linkview @@ -49,6 +49,12 @@ sub open_link } $file_name = $url; $file_name =~ s/.+\///g; + if ($file_name =~ m/^watch\?v=.+/) { + $file_name = "Your video"; + } + else { + $file_name = '' . $file_name . ''; + } system( NOTIFYSEND_PATH, '-u', @@ -56,7 +62,7 @@ sub open_link '-t', '10000', ' download started', - '' . $file_name . ' started downloading' + $file_name . ' started downloading' ); $ret = -1; if ($a == 2) { @@ -73,7 +79,7 @@ sub open_link '-t', '10000', ' download complete', - '' . $file_name . ' downloaded successfully to ' + $file_name . ' downloaded successfully to ' . '' . $pwd . '' ); } -- cgit v1.2.3