ScriptFUSION / Playlist-Generator

:memo: Creates music playlist files, such as M3U, for the files in a given directory.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Playlist Generator Playlist Generator Logo

Playlist Generator creates music playlist files for the files in a given directory. Currently only M3U format is supported but the application has been designed to be extended easily.

The solution comprises four C# projects:

  • Application library
  • GUI application
  • Console application
  • Test suite

GUI

Playlist Generator GUI v1.1 screenshot

Select a directory by using the Browse button, editing the path manually or drag-and-drop a directory onto either the interface or application shortcut icon. The file types in the specified directory are listed in descending order of frequency. A preview of the files matching the selected file type are shown. Only one file type can be selected. The Generate button writes the file names in the preview to a playlist in the specified directory.

Compiling

Loading the solution into Visual Studio and hitting start should be sufficient to run the GUI application. The console application requires the Mono.Options library, which NuGet will download and install automatically, but to the wrong location because NuGet is shit by design. Dependency packages are copied to the packages directory instead of the respective project folders. You can either reinstall packages using the NuGet Package Manager CLI or uninstall and reinstall using the GUI built into Visual Studio to copy the package files to the project directories.

The test suite tests the console application and therefore has the same dependencies.

Design

The application library contains all the application logic and is shared between the other three projects. The shared library design eliminates code duplication between the GUI and console versions of the application and allows more interfaces to be added, such as a Web application, without introducing further duplication.

The entire project has been designed with extensibility in mind so feel free to send pull requests with your improvements.

About

:memo: Creates music playlist files, such as M3U, for the files in a given directory.


Languages

Language:C# 100.0%