• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Companion Batch-Import: update matching files only
#3
Yes, it matches on filenames (more specifically, it determines where the file would be copied into the storage location, and if a file already exists there, it then updates the song using that file). 

Trying to have a way of ignoring either a certain number of different characters or part of the name using a regex would be very slow. That means I can't just look to see if the file already exists in the output - I have to either scan through every file in the entire storage location and compare them to the current filename using the new rules (some users have 50000+ files, and I'd have to check every file being imported against every file in the storage location), or I'd have to come up with some complicated query on the database, but there is no query I'm aware of that can find a string value that only differs by a certain amount. So I'm not thrilled about the idea of trying to support this. It's also even worse trying to do it from the companion app which doesn't have access to the connected device's file system. So I can't just scan through all the files. I'd have to scan through all the cached database information about the files and try to determine it that way. If that approach winds up being sufficient, then the processing time might not be that horrible, but I'd have to run some tests to see.

Mike
Reply


Messages In This Thread
RE: Companion Batch-Import: update matching files only - by Zubersoft - 05-13-2025, 03:54 AM



Users browsing this thread:
1 Guest(s)


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