diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-09-02 05:23:45 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-09-02 05:23:45 +0200 |
commit | 576b6208d6defe240bfa2477d6dd19f1ed83bfaf (patch) | |
tree | 7d54883f16cccc4cbd414398d7fec3c437b36b49 /app-misc/ds-scripts/files/m3u | |
parent | fdd6b67a78a966f6a2131de8fe0e539316511083 (diff) | |
download | darklin4-576b6208d6defe240bfa2477d6dd19f1ed83bfaf.tar.gz darklin4-576b6208d6defe240bfa2477d6dd19f1ed83bfaf.tar.bz2 darklin4-576b6208d6defe240bfa2477d6dd19f1ed83bfaf.tar.xz darklin4-576b6208d6defe240bfa2477d6dd19f1ed83bfaf.zip |
Cleaned most of outdated stuff
Diffstat (limited to 'app-misc/ds-scripts/files/m3u')
-rwxr-xr-x | app-misc/ds-scripts/files/m3u | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/app-misc/ds-scripts/files/m3u b/app-misc/ds-scripts/files/m3u deleted file mode 100755 index e5496a5..0000000 --- a/app-misc/ds-scripts/files/m3u +++ /dev/null @@ -1,48 +0,0 @@ -#! /bin/bash - -if [ -z "$1" ] -then - echo "Usage: m3u [ -f encoding -p encoding ] <playlist.m3u> [random]" - exit -fi - -if [ "$2" = "random" ] -then - prm="-Z -z" -else - prm="" -fi - -FSE=`cat /etc/m3u.conf | grep FSEncoding | sed s/'^[ \t]*FSEncoding[ \t]*=[ \t]*'//g | sed s/'[ \t]*'$//g` -PLE=`cat /etc/m3u.conf | grep PLEncoding | sed s/'^[ \t]*PLEncoding[ \t]*=[ \t]*'//g | sed s/'[ \t]*'$//g` - -pl=1 -while getopts 'f:p:' OPT; do - pl=`expr $pl + 2` - case $OPT in - f) - FSE=$OPTARG - ;; - p) - PLE=$OPTARG - ;; - esac -done - - -pl=`eval echo "\\$${pl}"` - -if [ -z "$FSE" -o -z "$PLE" ]; then - cmd="cat \"$pl\"" -else - cmd="cat \"$pl\" | iconv -f $PLE -t $FSE" -fi - -s=$(eval $cmd | grep -E "\.[mMoOwW][pPgGaA][23gGvV]" | sed s/
//g | sed s/'\\'/'\/'/g | sed s/^/\"/ | sed s/$/\"/ | perl -pi -e 's|\n| |gs' ) - -if [ -n "$prm" ] -then - eval mpg123 $prm "$s" -else - eval zinf "$s" -fi |