The purpose of this program is the help make playlist editing for ENCO DAD easier for CapRadio employees. Current Features include:
- Creates a spreadsheet Database of all cuts in Library (from DAD XML file)
- Creates a spreadsheet representation of a playlist
- Creates a text file from a Spreadsheet that can be imported into DAD as a playlist.
- *NEW* Creates chained dated playlists from default weekly playlists for a specific date range.
This was developed using
- Windows 10 Machine on WSL Ubuntu 20.04.
- Python 3.8.5
-
run
environfrom root project directory$ . environYou also may have to make it executable.
$ sudo chmod +x environIf you have not set up a python virtual environment, this will do it for you.
-
Install python library requirements
$ pip3 install -r requirements.txt -
Run once with no input.
$ python3 -m runThis will create all necessary folders for input and output.
-
run DCL commands in ENCO DAD system to generate XML files (if needed)
EXTRACT XML CUTSto generate an XML file with info for the entire library (this may be very large)EXTRACT XML PLAYLIST <playlist name>to generate an XML representation of a specific playlist- To use the new
chainfeature you will need to useEXTRACT XML PLAYLISTSfor each of your default playlists and store them in the./input/default_playlists_xml/directory
- To use the new
-
If needed, create an Excel file for a specific playlist that you are trying to create (NOTE: excel files that are output from step 4 can be used as input for this step)
-
Place files into the appropriate input directory
- The
./input/excel_to_text_playlist/directory is for spreadsheet to text import file conversion - The
./input/xml_cuts_to_database/directory is for an entire XML cuts library to be converted to spreadsheet - The
./input/xml_to_excel/directory is for XML playlists to be converted to Excel.
- The
-
Run again to process everything put into each input directory
$ python3 -m run(NOTE: This application will currently not move files out of the input directories. You may have to do this manually)
- To use this program for converting cuts library, for converting XML playlist to spreadsheets, and converting spreadsheets to text files, simply run
run.pyin the top level directory of this repo.$ python -m run - To use the new
chainfeature, pass parameterchainwhen you run the program on the command line.The application will then prompt you for the start and end dates for you playlist chain.$ python -m run chain
- Proper Database for Cut info
- Send DCL to DAD via raw UDP to trigger generation of XML files.
- Utilize
INJECT XMLto change playlists and cuts - Google Sheets integration
- Ability to get
xnumber of sequential unused cut numbers - Ability to get list of all available cut numbers.
- Slack integration