Skip to content

Commit

Permalink
Added support for empty publishers or catalog numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
flare561 committed May 21, 2017
1 parent ff79edf commit 60b70e7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
4 changes: 3 additions & 1 deletion Rippy/AlbumData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ public string FLAC

private string FormatFolderName(string format)
{
var pubNum = !string.IsNullOrWhiteSpace(Publisher) || !string.IsNullOrWhiteSpace(Number) ? $"[{Publisher} {Number}] " : "";

var space = !string.IsNullOrWhiteSpace(Publisher) && !string.IsNullOrWhiteSpace(Number) ? " " : "";
var pubNum = !string.IsNullOrWhiteSpace(Publisher) || !string.IsNullOrWhiteSpace(Number) ? $"[{Publisher}{space}{Number}] " : "";
var medium = !string.IsNullOrWhiteSpace(Medium) ? $"{Medium} " : "";
return $"{Artist} - {Album} ({Year}) {pubNum}[{medium}{format}]";
}
Expand Down
8 changes: 8 additions & 0 deletions Rippy/HelperMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ namespace Rippy
{
public static class HelperMethods
{

/// <summary>
/// Runs a process and returns a task that completes when the process exits
/// </summary>
/// <param name="fileName">Path of the executable to run</param>
/// <param name="arguments">Arguments to pass to the executable</param>
/// <returns>A task that completes at process exit</returns>
public static Task RunProcessAsync(string fileName, string arguments)
{
// there is no non-generic TaskCompletionSource
Expand All @@ -31,6 +38,7 @@ public static Task RunProcessAsync(string fileName, string arguments)

return tcs.Task;
}

/// <summary>
/// Get custom value from the info dict of the torrent
/// </summary>
Expand Down
6 changes: 1 addition & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ Download the latest version from [the releases page](https://github.com/flare561
Usage
-----

This program uses MP3 Tag and dBpoweramp, the locations for these are currently defined in settings.json

If settings.json does not exist for you, run the program once, then close it and ensure the settings are correct.

In the future, the settings will be managed in the GUI, so check back for updates.
This program uses MP3 Tag and dBpoweramp, the locations for these are defined in the settings UI

Select a folder containing your flac files using the browse at the top right. Ensure the metadata is correct using the Set Metadata button which will open MP3 Tag in the flac folder.

Expand Down

0 comments on commit 60b70e7

Please sign in to comment.