Many bluetooth speakers that feature MP3 playback lack a shuffle function. MP3 Shuffler is a simple application that allows users to randomly shuffle and copy MP3 files from a source directory to a target device or directory. MP3 shuffler shuffles the files in addition to copying randomly as some players play by sorted file date instead of filename. You could also point MP3Shuffler at your music library and let it fill your music player or sdcard to capacity with random songs. The application features a user-friendly graphical interface built with the Gtk 3.0 framework.
- Select source and target directories.
- Randomly copy MP3 files from the source to the target directory.
- Progress bar to indicate the copying status.
- Error handling for file copying issues.
To run this application from source, you need to have Python 3.8 or better installed along with the following dependencies:
- Gtk libraries (included on Gnome desktops)
- PyGObject
To run this application from flaptpak, you only need flatpak installed. Flatpak will install all required runtimes.
-
Ensure you have Flatpak installed on your system.
-
Download the mp3shuffler.flatpak file.
-
Open a terminal to the downloaded file.
-
Install with:
flatpak install mp3shuffler.flatpak -
Launch the application with:
flatpak run io.github.jasonritchie06.mp3shuffler
-
Ensure you have Flatpak installed on your system.
-
Navigate to the
flatpakdirectory in your terminal. -
Build the Flatpak package using the following command:
flatpak-builder --force-clean build-dir io.github.jasonritchie06.mp3shuffler.yaml -
Install the application with:
flatpak install build-dir -
Run the application using:
flatpak run io.github.jasonritchie06.mp3shuffler
If you prefer to run the application directly from the source:
-
Clone the repository or download the source code.
-
Navigate to the
srcdirectory. -
Install the required dependencies:
pip install -r requirements.txt -
Run the application:
python shuffler_gtk.py
- Launch the application.
- Select the source directory containing your MP3 files.
- Select the target directory where you want to copy the shuffled files.
- Click on the "Shuffle to Target" button to start the process.
- The Shuffler app can also be used to fill up an sdcard or music player with random songs by pointing it at your music collection and shffuling random songs to the target device until it is full.
This project is licensed under the MIT License - see the LICENSE file for details.
