Comments (9)
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.
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.
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.
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.
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.
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.
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.
Fixed. Should be in the next (feature) release
from musicbrainz-isrcsubmit.
Thanks very much for this personal fix! :)
from musicbrainz-isrcsubmit.
Related Issues (20)
- [bug] ^c does not stop script immediately
- --no-keyring still checks for DBus secrets interface HOT 2
- "ERROR: cdrdao returned with 1" and no further info HOT 5
- proxy option HOT 1
- Documented option “-h” does not display help HOT 4
- Failed install on macOS 10.12 HOT 4
- Multiple discs in single release with same TOC cause a crash
- `setup.py install` broken HOT 9
- improve installing via pip HOT 4
- Getting an error page when I try to submit to musicbrainz HOT 3
- musicbrainz-isrcsubmit slow with cdrdao HOT 1
- Could not find module 'discid.dll' HOT 3
- Release selection improvement
- --force-submit requires internet connection
- Drop support for old Python versions
- Submit ISRCs from digital music files instead of CDs
- Display release disambiguation comments
- Compatibility with new setuptools HOT 1
- Rename main branch to “main” HOT 2
- Windows: Could not find module 'discid.dll' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from musicbrainz-isrcsubmit.