[wiki] [sites] fix crash when playing complete video || Maximilian Dietrich

From: <git_AT_suckless.org>
Date: Fri, 12 Jul 2013 22:18:52 +0200

commit 4251e698c7b4ab18ea98800d4866fc1864766154
Author: Maximilian Dietrich <dxm_AT_lavabit.com>
Date: Fri Jul 12 22:18:02 2013 +0200

    fix crash when playing complete video

diff --git a/surf.suckless.org/files/not_flash.md b/surf.suckless.org/files/not_flash.md
index 78998d6..16374fb 100644
--- a/surf.suckless.org/files/not_flash.md
+++ b/surf.suckless.org/files/not_flash.md
_AT_@ -23,7 +23,7 @@ Save this script as ~/bin/yt and adjust it to your needs. (Requires [youtube-dl]
                 sleep 3
         done
         
- $player $filepath.part || $player $filepath
+ [ -r $filepath.part ] && $player $filepath.part || $player $filepath
         kill $(cat $filepath.$$.pid)
         rm $filepath.$$.pid
 
Received on Fri Jul 12 2013 - 22:18:52 CEST

This archive was generated by hypermail 2.3.0 : Fri Jul 12 2013 - 22:24:09 CEST