Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] smplayer lose PLaylist

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

[Solved] smplayer lose PLaylist

#1 Post by bester69 »

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:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: smplayer lose PLaylist

#2 Post by bester69 »

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:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

Post Reply