Minor changes

This commit is contained in:
Robert McRackan 2019-11-05 21:48:02 -05:00
parent bd993b4e4d
commit 6aa544b322
3 changed files with 8 additions and 18 deletions

View File

@ -70,10 +70,5 @@ namespace FileManager
property = property.Replace(ch.ToString(), ""); property = property.Replace(ch.ToString(), "");
return property; return property;
} }
public static string TitleCompressed(string title)
=> new string(title
.Where(c => (char.IsLetterOrDigit(c)))
.ToArray());
} }
} }

View File

@ -115,7 +115,7 @@ namespace LibationWinForm
// update bottom numbers // update bottom numbers
var pending = noProgress + downloadedOnly; var pending = noProgress + downloadedOnly;
var text var text
= !results.Any() ? "No books. Begin by indexing your library" = !results.Any() ? "No books. Begin by importing your library"
: pending > 0 ? string.Format(backupsCountsLbl_Format, noProgress, downloadedOnly, fullyBackedUp) : pending > 0 ? string.Format(backupsCountsLbl_Format, noProgress, downloadedOnly, fullyBackedUp)
: $"All {"book".PluralizeWithCount(fullyBackedUp)} backed up"; : $"All {"book".PluralizeWithCount(fullyBackedUp)} backed up";
statusStrip1.UIThread(() => backupsCountsLbl.Text = text); statusStrip1.UIThread(() => backupsCountsLbl.Text = text);

View File

@ -80,6 +80,12 @@ Why are tags in file AND database?
extract FileManager dependency from data layer extract FileManager dependency from data layer
-- end TAGS --------------------------------------------------------------------------------------------------------------------- -- end TAGS ---------------------------------------------------------------------------------------------------------------------
-- begin ENHANCEMENT, PERFORMANCE: TAGS ---------------------------------------------------------------------------------------------------------------------
tag edits still take forever and block UI
unlikely to be an issue with file write. in fact, should probably roll back this change
also touches parts of code which: db write via a hook, search engine re-index
-- end ENHANCEMENT, PERFORMANCE: TAGS ---------------------------------------------------------------------------------------------------------------------
-- begin ENHANCEMENT, CATEGORIES --------------------------------------------------------------------------------------------------------------------- -- begin ENHANCEMENT, CATEGORIES ---------------------------------------------------------------------------------------------------------------------
add support for multiple categories add support for multiple categories
when i do this, learn about the different CategoryLadder.Root enums. probably only need Root.Genres when i do this, learn about the different CategoryLadder.Root enums. probably only need Root.Genres
@ -136,20 +142,9 @@ directly call ffmpeg (decrypt only)
39 sec decrypt 39 sec decrypt
-- end DECRYPTING --------------------------------------------------------------------------------------------------------------------- -- end DECRYPTING ---------------------------------------------------------------------------------------------------------------------
-- begin ENHANCEMENT, UI: LONG RUNNING TASKS ---------------------------------------------------------------------------------------------------------------------
long running tasks are appropriately async. however there's no way for the user to see that the task is running (vs nothing happened) except to wait and see if the final notification ever comes
need events to update UI with progress
-- end ENHANCEMENT, UI: LONG RUNNING TASKS ---------------------------------------------------------------------------------------------------------------------
-- begin ENHANCEMENT, PERFORMANCE: TAGS ---------------------------------------------------------------------------------------------------------------------
tag edits still take forever and block UI
unlikely to be an issue with file write. in fact, should probably roll back this change
also touches parts of code which: db write via a hook, search engine re-index
-- end ENHANCEMENT, PERFORMANCE: TAGS ---------------------------------------------------------------------------------------------------------------------
-- begin ENHANCEMENT: REMOVE BOOK --------------------------------------------------------------------------------------------------------------------- -- begin ENHANCEMENT: REMOVE BOOK ---------------------------------------------------------------------------------------------------------------------
how to remove a book? how to remove a book?
previously difficult due to implementation details regarding scraping and importing. should be trivial after api replaces scraping previously difficult due to implementation details regarding scraping and importing. should now be trivial
-- end ENHANCEMENT: REMOVE BOOK --------------------------------------------------------------------------------------------------------------------- -- end ENHANCEMENT: REMOVE BOOK ---------------------------------------------------------------------------------------------------------------------
-- begin ENHANCEMENT: NEW VIEWS --------------------------------------------------------------------------------------------------------------------- -- begin ENHANCEMENT: NEW VIEWS ---------------------------------------------------------------------------------------------------------------------