Git Product home page Git Product logo

Comments (9)

JonnyJD avatar JonnyJD commented on June 21, 2024

There was a recent change in #26
It was previously possible to quit just pressing without any input. Currently it just asks again until you give a valid input.

Starting with 0 comes natural because this is how arrays work in python, but adding an offset of 1 is possible.
Not really sure if it wouldn't be better having q or similar for quitting. 0 is not necessarily intuitive for quitting.

Why do you use a dos.bat and why do you catch CTRL+C there?
You can just start isrcsubmit.bat directly. This will also make sure you don't close cmd before you have seen the last output.
Do you have a bigger workflow including ripping and stuff?

from musicbrainz-isrcsubmit.

jesus2099 avatar jesus2099 commented on June 21, 2024

My isrc.bat has access to mediatools.exe (m), isrcsubmit.exe (i) and your new shiny isrcsubmit.py (p default).
I just have to type either isrc, isrc p, isrc m or isrc i and each one will have all the possible parameters set for me.

I still need isrcsubmit.exe because #34.

I agree 0 for exit is not good. Actually in isrcsubmit.exe if you press any other key it would exit.
Starting from 1 seems more natural for human reading list. ;)

from musicbrainz-isrcsubmit.

JonnyJD avatar JonnyJD commented on June 21, 2024

Well, at the time isrcsubmit asks you for the release, any invalid input will just exit. (just like in isrcsubmit.exe)

However, later on in the script, like when asked for the offset, it will only exit on CTRL-C, because you might not want to exit on a whim after reading the ISRCs and making a couple of choices.

from musicbrainz-isrcsubmit.

Freso avatar Freso commented on June 21, 2024

I don't really think it matter whether we're counting from 0 or 1. Whichever is more intuitive for the coder.

This is a CLI script. It's not going to be something Windows users at large will use. It's not going to be as widely "popular" as Picard. It's a niche script for crazy, obsessive-compulsive editors that wants to add everything. So. Just keep Python's own array numbering instead of adding more code (that will also need to be kept updated, ported to Py3 at some point, etc.) for little to no gain.

IMHO.

from musicbrainz-isrcsubmit.

jesus2099 avatar jesus2099 commented on June 21, 2024

Forget the key to quit, I thought it didn’t quit when just pressing ENTER key but it actually does…
In a program, be it a CLI script, I don’t think the GUI should ever be whichever is more intuitive for the coder. ;p
I maintain the 1-4 instead of 0-3 selection prompt, just in case you eventually agree. ^^;

from musicbrainz-isrcsubmit.

jesus2099 avatar jesus2099 commented on June 21, 2024

You eventually still don’t like it to number choices from 1 instead of from 0, then ?
I keep mistaking and slowing down (because must think twice before press key) but if most prefer 0, then... :)

from musicbrainz-isrcsubmit.

JonnyJD avatar JonnyJD commented on June 21, 2024

To be fair, I don't know what most users prefer. I don't get that much feedback and the feedback I get is mostly from users at github (where many are devs/tech-savy).

I only know that using 1 to n is a major source of bugs in general, especially because this is a small (1 file) script without a separate user interface. The logic and the interface are tightly coupled.
That is in contrast to tools like Picard, which has 40 source files alone for the interface.
With the right abstraction it is no problem.

That being said, I will change it anyways, since it does seem to be more than a minor annoyance to you and possibly others.
This won't be in any 0.5.x release, because this is a change in the interface and might confuse others ;-)

from musicbrainz-isrcsubmit.

JonnyJD avatar JonnyJD commented on June 21, 2024

Fixed. Should be in the next (feature) release

from musicbrainz-isrcsubmit.

jesus2099 avatar jesus2099 commented on June 21, 2024

Thanks very much for this personal fix! :)

from musicbrainz-isrcsubmit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.