• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[fixed in 1.9.0] How to filter by Duration?
#4
Okay, you are right, I'm doing string comparison of the song's duration against whatever is entered in the search bar, but I'm incorrectly stripping punction characters such as the ":" as this is normally required for other searches. I'm fixing the code right now so that the comparison is different when the search is set to "Duration".

Due to me storing duration as an integer value in the database, there really isn't an easy way for me to default the duration to nothing. I guess I could set it to something like -999, and in the song editor, display "Not Set" for duration instead of 0:00 if I detect that negative value. Then I will have to code when calculating setlist duration to ignore all negative values, and make sure nothing in my code explodes if there is a negative value in that field.
Reply


Messages In This Thread
RE: How to filter by Duration? - by Zubersoft - 07-22-2017, 04:05 PM
RE: How to filter by Duration? - by itsme - 07-22-2017, 06:03 PM
RE: How to filter by Duration? - by Zubersoft - 07-23-2017, 01:51 AM
RE: How to filter by Duration? - by itsme - 07-23-2017, 02:12 AM
RE: How to filter by Duration? - by itsme - 08-29-2017, 08:37 PM



Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2024 MyBB Group.