• Syncing the playlists to disk

    6
    6 Votes
    6 Posts
    4k Views
    Sharky-PIS
    Strawberry Playlist Sync Tool Sync your Strawberry Music Player playlists to disk M3U files with duplicate detection, automatic backups, and smart conflict resolution. Features Duplicate Detection: Find and remove duplicate tracks within playlists Exact duplicates (same file added multiple times) Optional fuzzy matching (same title/artist, different files) Playlist Sync: Export database playlists to M3U files Creates timestamped backups before overwriting Shows what's added/removed before syncing Add-only mode to preserve disk entries Recursive subdirectory scanning Multiple playlist directory support Backup Rotation: Automatically clean up old backup files Keep N backups per playlist (default: 3) Delete backups older than N days (default: 60) Count takes priority (always keeps minimum backups) Never-Sync List: Skip utility playlists you don't want exported Managed via neversync.txt in your playlist folder Interactive prompts to add playlists during review Requirements Python 3.6+ (standard library only, no pip installs needed) Linux, macOS, or Windows Installation Save the script to your preferred location, e.g.: ~/.local/share/strawberry/strawberry/strawberry-playlist-sync.py Make it executable (Linux/macOS): chmod +x strawberry-playlist-sync.py Optionally create a desktop shortcut (see below). Usage Interactive Mode ./strawberry-playlist-sync.py Presents a menu to choose between duplicate checking, syncing, and backup cleanup. Command-Line Mode Dry run (preview changes without writing): ./strawberry-playlist-sync.py -s -p ~/Music/playlists --dry-run Dry run with full track details: ./strawberry-playlist-sync.py -s -p ~/Music/playlists --dry-run -v Sync playlists to disk: ./strawberry-playlist-sync.py -s -p ~/Music/playlists Sync including subdirectories: ./strawberry-playlist-sync.py -s -p ~/Music/playlists -r Check for duplicates: ./strawberry-playlist-sync.py -d Include fuzzy duplicates (same song, different files): ./strawberry-playlist-sync.py -d --fuzzy Clean up old backups: ./strawberry-playlist-sync.py -c -n 5 -a 30 (Keep 5 backups, delete those older than 30 days) Run all operations: ./strawberry-playlist-sync.py -d -s -c -p ~/Music/playlists Automated mode (no prompts): ./strawberry-playlist-sync.py -s -p ~/Music/playlists -y Multiple Directories ./strawberry-playlist-sync.py -s -p ~/Music/playlists -p /media/usb/playlists Command-Line Options ┌─────────────────────────┬─────────────────────────────────────────────────┐ │ Option │ Description │ ├─────────────────────────┼─────────────────────────────────────────────────┤ │ -d, --check-duplicates │ Find and remove duplicate tracks │ ├─────────────────────────┼─────────────────────────────────────────────────┤ │ --fuzzy │ Include fuzzy duplicates in check │ ├─────────────────────────┼─────────────────────────────────────────────────┤ │ -s, --sync │ Sync database playlists to disk │ ├─────────────────────────┼─────────────────────────────────────────────────┤ │ -c, --cleanup-backups │ Clean up old backup files │ ├─────────────────────────┼─────────────────────────────────────────────────┤ │ -p, --playlist-dir PATH │ Playlist folder (can be used multiple times) │ ├─────────────────────────┼─────────────────────────────────────────────────┤ │ -r, --recursive │ Scan subdirectories for M3U files │ ├─────────────────────────┼─────────────────────────────────────────────────┤ │ --add-only │ Only add tracks, preserve existing disk entries │ ├─────────────────────────┼─────────────────────────────────────────────────┤ │ --db-path PATH │ Path to strawberry.db (auto-detects if not set) │ ├─────────────────────────┼─────────────────────────────────────────────────┤ │ -n, --keep-count N │ Backups to keep per playlist (default: 3) │ ├─────────────────────────┼─────────────────────────────────────────────────┤ │ -a, --max-age DAYS │ Max backup age in days (default: 60) │ ├─────────────────────────┼─────────────────────────────────────────────────┤ │ --dry-run │ Preview changes without writing │ ├─────────────────────────┼─────────────────────────────────────────────────┤ │ -v, --verbose │ Show full track details (with --dry-run) │ ├─────────────────────────┼─────────────────────────────────────────────────┤ │ -y, --yes │ Skip confirmation prompts │ └─────────────────────────┴─────────────────────────────────────────────────┘ Never-Sync List To exclude playlists from syncing (e.g., utility playlists for finding missing metadata): During interactive review, when you skip a playlist, you'll be asked if you want to add it to the never-sync list. Or manually edit neversync.txt in your playlist folder: Playlists listed here will be skipped during sync operations. NoComposerSP BitrateLessThan129SP UnratedSP Desktop Shortcut (Linux) Create a shell script on your desktop: #!/bin/bash Strawberry Playlist Sync ~/.local/share/strawberry/strawberry/strawberry-playlist-sync.py -s -p ~/Music/playlists -r Save as strawberry-playlist-sync.sh and make executable with chmod +x. Database Locations The script auto-detects Strawberry's database in these locations: Linux: ~/.local/share/strawberry/strawberry/strawberry.db macOS: ~/Library/Application Support/Strawberry/strawberry/strawberry.db Windows: ~/AppData/Local/strawberry/strawberry/strawberry.db Use --db-path to specify a custom location. Notes Safe to run with Strawberry open: The script only reads from the database (except for duplicate removal), so syncing while Strawberry is running is fine. For duplicate removal, close Strawberry first. Backups: Before overwriting any M3U file, a timestamped backup is created in a backups/ subfolder. M3U Format: Uses extended M3U with #EXTINF:seconds,Artist - Title lines. Path Handling: Automatically converts database file:// URLs to filesystem paths and handles URL-encoded characters. License Public domain / CC0. Use however you like. Created by me and Claude Code tonight.
  • Hide specific file extensions from filesystem indexing

    1
    0 Votes
    1 Posts
    422 Views
    No one has replied
  • AND & OR In the Same Smart Play List

    1
    0 Votes
    1 Posts
    942 Views
    No one has replied
  • Playlist As Source For Smart Playlist

    1
    1 Votes
    1 Posts
    712 Views
    No one has replied
  • 1 Votes
    15 Posts
    8k Views
    H
    Maybe a tracker module browser for modland.com like https://www.wothke.ch/playmod/ or http://modtu.be ? A bit silly idea maybe! But free music for the masses!
  • Support Atmos Playback

    1
    0 Votes
    1 Posts
    341 Views
    No one has replied
  • Album Art in Discord Rich Presence

    2
    0 Votes
    2 Posts
    27k Views
    T
    @echolessowl The GitHub is public, anyone can change the code and submit a Pull Request... then the main developer will decide to include it or not.
  • Smart Playlist reordering

    5
    5 Votes
    5 Posts
    2k Views
    disasterareaD
    +1 for this. I am moving over to strawberry on linux over using dopamine on windows. On dopamine, I have about 300 smart playlists (I have about 18k songs in my collection too). The smart playlists being ordered alphabetically by default, instead of creation order (I assume that's what it uses?) would increase navigability. It would be really nice if we could make playlist folders too (e.g. i have some playlists based around artists, some based around genres, and so on, and it would be nice to group them), but all of them listed alphabetically would be great!
  • List all songs by current artist

    1
    0 Votes
    1 Posts
    301 Views
    No one has replied
  • 0 Votes
    1 Posts
    319 Views
    No one has replied
  • Custom encoder

    1
    0 Votes
    1 Posts
    336 Views
    No one has replied
  • LRCLIB Support

    2
    0 Votes
    2 Posts
    8k Views
    georgemoodyG
    @WeeGerGai sorry for the necroposting but i would also love to see this be implemented, their database of (unsynced) lyrics is pretty massive compared to all the other lyric services that strawberry currently supports, and their website (https://lrclib.net) has good insight on its own API and how to implement it.
  • Don't add V1 and change Year / Release Year tags

    2
    2 Votes
    2 Posts
    718 Views
    S
    oh yeah this has been really tedious! fixing the metadata in my songs then i add lyrics on the app and the date is gone.... that and the fact you can't group your collection by original release date, only the year. it definitly should be possible. no reason for those things not to be
  • md5tool

    1
    0 Votes
    1 Posts
    339 Views
    No one has replied
  • 0 Votes
    3 Posts
    3k Views
    S
    Bump! Still unable to properly show audio with no metadata...
  • Automatic Install Of Missing GStreamer Plugin

    1
    0 Votes
    1 Posts
    385 Views
    No one has replied
  • Put strawberries in the tabbar

    12
    1
    1 Votes
    12 Posts
    3k Views
    I
    @jonas Please how can I remove this? Or at least can you put an option into "Appearance" to toggle this feature? Thanks
  • Spotify "Refresh Catalogue" Limits to 20 artists

    1
    0 Votes
    1 Posts
    456 Views
    No one has replied
  • DLNA/UPnP support

    7
    3 Votes
    7 Posts
    4k Views
    T
    I would also love to see this feature. I was using Strawberry (and Clementine before that) years ago, and just recently discovered that it has subsonic support. However, the ability to stream via UPnP to my stereo would complete the experience. Currently there's only one subsonic client on Linux that can do that, and it doesn't always work very well. For an "every thing but the kitchen sink..... well alright, the kitchen sink too" type app like Strawberry, it seems odd for this to be missing. (likely because UPnP is an absolute mess of a protocol, so understandable.... but you can do it... I believe in you) Thanks!
  • Add option to force Breeze/Fusion dark theme for GNOME hosts

    5
    0 Votes
    5 Posts
    3k Views
    A
    On Linux Mint 22.2, there is Settings > User interface > Appearance > Style: gtk, which enables dark theme (I think I installed it via apt install strawberry instead of downloading deb file from website). On Mint 21, there's no such option, I think I'll just wait until I need to upgrade this Mint installation. I'm avoiding the flatpak distribution since it's non-official.