cybercase / webminidisc

Upload your Music to NetMD MiniDisc devices thanks to WebUSB and WASM
GNU General Public License v2.0
313 stars 90 forks source link

possible to keep track of title name exhaustion? #66

Closed arrjay closed 2 years ago

arrjay commented 3 years ago

per the UTOC layout at https://www.minidisc.org/md_toc.html, minidisc titling (half-width) is limited to 1785 characters total. I managed to hit this on my mz-n707 and started having issues uploading additional tracks.

would it be possible to keep track of this usage and possibly warn/alert if you're near the limit?

asivery commented 3 years ago

Hello @arrjay , WebMinidisc already keeps track of this limit. Can you elaborate on what issues you are getting when you approach this limit?

arrjay commented 3 years ago

here's a quick gif of the tracklilst I want to upload (note it's going to try using filename as the title). now, I don't get any warnings about it yet... upload jobset click ok and the job starts. I get to track 44 and the application reports an "out of space" error uploading error I browse the tracklist after and I see titles have been truncated starting on track 40 result tracks I try to rename a track here, but I don't see a notice about being over UTOC limit track rename

working to shorten all the track names seemed to do the trick, eventually, but I'm not seeing many alerts around exceeding the total track name limit here.

asivery commented 2 years ago

@arrjay I have implemented a solution to the problem you described. It's not merged into this project though. You can try it out by either compiling my fork of webminidisc, or by running the newest release of ElectronWMD. Please let me know if there's something you think is worth improving.