Ausnahme gefangen: SSL certificate problem: certificate is not yet valid ๐Ÿ“Œ I made a script to track what music player (vlc) is playing and not play it next time

๐Ÿ  Team IT Security News

TSecurity.de ist eine Online-Plattform, die sich auf die Bereitstellung von Informationen,alle 15 Minuten neuste Nachrichten, Bildungsressourcen und Dienstleistungen rund um das Thema IT-Sicherheit spezialisiert hat.
Ob es sich um aktuelle Nachrichten, Fachartikel, Blogbeitrรคge, Webinare, Tutorials, oder Tipps & Tricks handelt, TSecurity.de bietet seinen Nutzern einen umfassenden รœberblick รผber die wichtigsten Aspekte der IT-Sicherheit in einer sich stรคndig verรคndernden digitalen Welt.

16.12.2023 - TIP: Wer den Cookie Consent Banner akzeptiert, kann z.B. von Englisch nach Deutsch รผbersetzen, erst Englisch auswรคhlen dann wieder Deutsch!

Google Android Playstore Download Button fรผr Team IT Security



๐Ÿ“š I made a script to track what music player (vlc) is playing and not play it next time


๐Ÿ’ก Newskategorie: Linux Tipps
๐Ÿ”— Quelle: reddit.com

Hello everyone! I have made a lot of weird but useful scripts over the years I am using linux and I don't really know where to share them so I'll start posting them here. I am waiting feedback if this is a good place to share them or not and how can I improve them. I think github is not a good option really as they are quite simple but I might use it. Anyway

this bash script checks what vlc is playing every 10 seconds (can be changed at line 9) checks if that song exists in the playlist file and removes it from the playlist file (if it does exist). Next time I open the playlist.m3u with vlc it won't have the songs it played the previous time.

I needed to make this because I have a huge library playing in shuffle all the time. But I always end up listening to the same songs over and over again cause the playlist will reload each time I open it. So I have a backup playlist which has all the songs, a playlist with the played songs removed and I always open that one with vlc. Here is the bash script:

#!/usr/bin/bash #usage: progname /path/to/playlist-file.m3u filename="$1" vlc $filename &>/dev/null & sleep 3 pid=$(pidof -s vlc) while [[ $pid ]]; do sleep 10 pid=$(pidof -s vlc) if [[ ! $pid ]]; then break fi songname=$(lsof -p `pidof -s vlc` | grep -o "/.*\.mp3" | sed -E "s/.+Music\/(.+)\.mp3/\1/") deletioncheck=$(grep -o "$songname" $filename) if [[ $songname = $deletioncheck ]]; then linenumber=$(grep -n "$songname" $filename | sed -E "s/^([0-9]+):.+$/\1/g") nextlinenumber=$((linenumber+1)) thed="d" sed -i "$linenumber$thed;$nextlinenumber$thed" $filename fi done 

Of course it can be used with other music players (line 5,7,10,14). In line 14 you can change the path to where your songs are. Unfortunately it assumes they are all in the same directory. But that is no problem as I made a script where it autosorts and moves files in the correct directories as well as moving them out of directories! But I will post that another time if you want of course. :)

What do you think?

submitted by /u/orestisfra
[link] [comments] ...



๐Ÿ“Œ I made a script to track what music player (vlc) is playing and not play it next time


๐Ÿ“ˆ 89.99 Punkte

๐Ÿ“Œ For anyone looking for a new music player, I made a player called Tauon Music Box


๐Ÿ“ˆ 36.23 Punkte

๐Ÿ“Œ I'm making a music player for playing music from multiple streaming services


๐Ÿ“ˆ 34.36 Punkte

๐Ÿ“Œ Google Play Music: Drei Monate Play Music kostenlos โ€“ gilt auch als Gratis-Abo fรผr YouTube Music


๐Ÿ“ˆ 33.15 Punkte

๐Ÿ“Œ Google Play Music wird eingestellt - So wechselt man von Google Play Music zu YouTube Music!


๐Ÿ“ˆ 33.15 Punkte

๐Ÿ“Œ Firefox mit โ€žWill not trackโ€œ statt โ€žDo not trackโ€œ


๐Ÿ“ˆ 32.22 Punkte

๐Ÿ“Œ Beware! Playing Untrusted Videos On VLC Player Could Hack Your Computer


๐Ÿ“ˆ 31.07 Punkte

๐Ÿ“Œ Flaws allow hacking a system playing untrusted videos on VLC Player


๐Ÿ“ˆ 31.07 Punkte

๐Ÿ“Œ Amazon Music 9.4.2.2418 - Shop, play, manage, and download music (was Amazon Cloud Player).


๐Ÿ“ˆ 28.77 Punkte

๐Ÿ“Œ How to install Lollypop Music Player in Ubuntu 18.04 โ€“ The Best Modern Music Player For Linux


๐Ÿ“ˆ 28.12 Punkte

๐Ÿ“Œ How To Install Yarock Music Player App In Ubuntu Linux โ€“ A Best Linux Music Player


๐Ÿ“ˆ 28.12 Punkte

๐Ÿ“Œ Music Streaming Services: Apple Music Vs Google Play Music Vs Spotify


๐Ÿ“ˆ 27.54 Punkte

๐Ÿ“Œ YouTube Music: Von Nutzern hochgeladene Songs aus Google Play Music kommen endlich zu YouTube Music


๐Ÿ“ˆ 27.54 Punkte

๐Ÿ“Œ You can now transfer your music from Google Play Music to YouTube Music with a Single Click


๐Ÿ“ˆ 27.54 Punkte

๐Ÿ“Œ This Linux Audio Player isnโ€™t for Playing Music


๐Ÿ“ˆ 27.05 Punkte

๐Ÿ“Œ YouTube Music Support Arrives in Google Play Music Desktop Player


๐Ÿ“ˆ 26.98 Punkte

๐Ÿ“Œ Using pulseaudio to track my time spent and volume levels when listening to music


๐Ÿ“ˆ 25.97 Punkte

๐Ÿ“Œ Using pulseaudio to track my time spent and volume levels when listening to music


๐Ÿ“ˆ 25.97 Punkte

๐Ÿ“Œ How to Fix Amazon Alexa Echo Not Playing Music


๐Ÿ“ˆ 25.7 Punkte

๐Ÿ“Œ 10 Quick Ways to Fix Alexa Not Playing Music & Main Reasons


๐Ÿ“ˆ 25.7 Punkte

๐Ÿ“Œ FIX: MP4 Files Not Playing on Windows 10 [Media Player]


๐Ÿ“ˆ 25.14 Punkte

๐Ÿ“Œ VLC Media Player - Umfassender Audio- & Video-Player


๐Ÿ“ˆ 24.84 Punkte

๐Ÿ“Œ VLC Media Player 2.2.2 - Umfassender Audio- & Video-Player


๐Ÿ“ˆ 24.84 Punkte

๐Ÿ“Œ VLC Media Player - Umfassender Audio- & Video-Player


๐Ÿ“ˆ 24.84 Punkte

๐Ÿ“Œ Media Player: VLC-Player 3.0.8 bringt viele Neuerungen


๐Ÿ“ˆ 24.84 Punkte

๐Ÿ“Œ VLC Media Player - Umfassender Audio- & Video-Player


๐Ÿ“ˆ 24.84 Punkte

๐Ÿ“Œ VLC Media Player 2.2.2 - Umfassender Audio- & Video-Player


๐Ÿ“ˆ 24.84 Punkte

๐Ÿ“Œ VLC Media Player - Umfassender Audio- & Video-Player


๐Ÿ“ˆ 24.84 Punkte

๐Ÿ“Œ VLC Media Player 2.2.2 - Umfassender Audio- & Video-Player


๐Ÿ“ˆ 24.84 Punkte











matomo