Python script to delete duplicate tracks from Google Play Music library. Please retry until "No duplicate songs" message is displayed. Use this script at your own risk. gmusicapi is required.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pacman -Qmq | while read package; do | |
cur_version=$(pacman -Qi $package | egrep 'Version *:' | sed 's/Version *: *//'); # fast | |
aur_version=$(yaourt -Si $package | egrep 'Version *:' | sed 's/Version *: *//'); # slow | |
if [ "$cur_version" = "$aur_version" ]; then | |
echo -e "\e[0;32mUp to date: \e[0m$package"; | |
else | |
echo -e "\e[1;33mNeeds update: \e[0m$package \e[0;33m(installed: $cur_version, aur: $aur_version)\e[0m"; | |
fi |