[Solved] smplayer lose PLaylist

Everything about X, Gnome, KDE, ... and everything running on it

[Solved] smplayer lose PLaylist

Postby bester69 » 2020-01-09 01:25

Hi,

whenever I drag a file into smplayer, it cleans the playlist .. I dont understand how to keep always a playlist available(loaded), such as It happens with Qmplay2 player. This is a nosense :x

Image

Image
Last edited by bester69 on 2020-01-09 09:14, edited 2 times in total.
bester69 wrote:You wont change my mind when I know Im right, Im not an ...
User avatar
bester69
 
Posts: 1520
Joined: 2015-04-02 13:15

Re: smplayer lose PLaylist

Postby bester69 » 2020-01-09 02:39

Ok, I made this script to manage this workaround issue.:

smplayer.sh
Code: Select all
#!/bin/bash
#
listpath="/home/user/LINUXDEBS/TORRENTS/TDTchannels/CATLISTA_QMPLAY2.m3u"
export LIBVA_DRIVERS_PATH=/home/user/scripts

if [ -z $1 ]
then
LIBGL_DEBUG=verbose  smplayer.run -add-to-playlist "$listpath" &
else
LIBGL_DEBUG=verbose  smplayer.run "$@"  &
fi


by the way, if you're interested, this is the Spanish Playlist TDT channels.: (Very worthy!!!)
https://github.com/LaQuay/TDTChannels

and a script I made to download and update the channels.:
tdt.sh
Code: Select all
#!/bin/sh
#
uriTDT="http://91.121.64.179/tdt_project/output/channels.m3u8"
tdtcanales="/home/user/LINUXDEBS/TORRENTS/TDTchannels/Todos"
tdtbuenos="/home/user/LINUXDEBS/TORRENTS/TDTchannels/Buenos"
wget "$uriTDT" -O canales
mkdir -p "$tdtcanales"
rm "$tdtcanales/"*

lastcanal=""
refn=0
#while IFS= read -r line; do

while read line; do
   
     case "$line" in
    *"m3u8" )       
    refn="$(grep -n  "$line" ./canales | cut -d':' -f 1 | awk '{print $1}')"
     case $refn in ''|*[!0-9]*)
     echo bad
     continue   
     ;;
     esac   
#     
;;
    *)
    continue
    ;;
esac

# echo "Linea de referencia es: $refn"
# echo "Linea de referencia es -2: $(($refn - 1))"
titlechannel=$(sed -n "$(($refn - 1))","$(($refn - 1))"p ./canales)
#echo "$titlechannel"
    case "$titlechannel" in
    "#EXTINF"* )     
     #canal="$(echo "$titlechannel" |  cut -d',' -f2).strm"
     canal="$(echo "$titlechannel" |  cut -d',' -f2).m3u"
     echo "$canal"
     echo "$line"
     echo "$titlechannel" > "$tdtcanales/$canal"
     echo "$line" >> "$tdtcanales/$canal"
:
;;
    *)
    continue
    ;;
esac   
done < ./canales

cd "$tdtcanales/"../
rm CATLISTA_QMPLAY2.m3u
cat *.m3u > CATLISTA_QMPLAY2.m3u
cd "$tdtbuenos/"
rm TDTbuenos_QMPLAY2.m3u
cat *.m3u > TDTbuenos_QMPLAY2.m3u
bester69 wrote:You wont change my mind when I know Im right, Im not an ...
User avatar
bester69
 
Posts: 1520
Joined: 2015-04-02 13:15


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable