Package: m3u-to-pyradio-playlist
m3u-to-pyradio-playlistA pyradio playlist generator from m3u playlist files.Did you ever wanted to insert that huge playlist m3u file intopyradio?Or even automatically download and convert a m3u playlist file from somewhere else and run on pyradio?Example:Install and UsageInstallRunpip install m3u_to_pyradio_playlistand you're ready to go.UsageYou should checkm3u-to-pyradio --helpfor options:usage: m3u_to_pyradio [-h] [-i INPUT -o OUTPUT] [-d] [-a]

This program converts .m3u files into pyradio playlists.

examples:
   m3u_to_pyradio -d    Downloads and creates a huge stations.csv
   m3u_to_pyradio -a    Same as -a and overrides current pyradio stations
   m3u_to_pyradio -i playlist.m3u -o playlist.csv
                        Creates playlist.csv file from your playlist.m3u file

options:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        The m3u input file
  -o OUTPUT, --output OUTPUT
                        The output CSV file where playlist will be saved
  -d, --download-super-list
                        Download and convert the complete m3u list from
                        https://github.com/junguler/m3u-radio-music-playlists.
  -a, --auto            DANGER: Same as -dsl but OVERRIDES your
                        ~/.config/pyradio/stations.csvI have a m3u file i'd like to import to pyradiom3u_to_pyradio -i my_playlist.m3u -o converted.csvNow go topyradioconfig folder and add your customconverted.csvplaylist.I wan't a pre-built stations listJust runm3u_to_pyradio -dand it will automatically download the---everything-full.m3uplaylist from:https://github.com/junguler/m3u-radio-music-playlistsAnd save it tostations.csv.Now use it with pyradio.I just want to automatically download a pre-built stations list and override mystations.csvDANGERthis will override your current playlist. Backup it first!Run:m3u_to_pyradio -aThis will download the same list as from with-d.
Converts it to astations.csvand move this fileOVERRIDINGyour~/.config/pyradio/stations.csv.Want to automatically updates the list and run pyradio?Assuming you're on a shell and already have pyradio installed:m3u_to_pyradio -a && pyradioUninstallSimply use:pip uninstall m3u_to_pyradio_playlistDevelopmentIf you want to use this package for development, without installing the dist via
pip.This project is made with pipenv, that is both an venv manager and a pip
tool combined.Installing and TestingMake sure you have the version of Python present onPipfileand that you
installedpipenvglobally with:pip install pipenvClone this repository, cd into it and run:pipenv installYou can call commands just like if you where from the executable commandline
preciding it withpipenv run pythonwith:pipenv run python m3u_to_pyradio --helppipenv run python m3u_to_pyradio -i playlist.m3u -o playlist.csvBuildIf you want to build it and install your own.pipenvrunpythonsetup.pysdistbdist_wheelcddist
pipinstall[thefilegenerated].tar.gzcd~
m3u_to_pyradio--helpYou than could uninstall with:pip uninstall [the file generated]Tested onTested on:Darwin MacBook-Pro.local 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:04:44 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T8103 x86_64Python version:Python 3.11.2