OpenNewsLabs / autoEdit_2

Fast text based video editing, node Electron Os X desktop app, with Backbone front end.
https://opennewslabs.github.io/autoEdit_2/
MIT License
419 stars 56 forks source link

No UI for deleting incomplete transcription (spinning wheel) #42

Closed pietrop closed 5 years ago

pietrop commented 6 years ago

I've been asked a few times about this, that I thought I'd make a note on the current workaround.

If a transcription is stuck with the spinning wheel after 5 minutes or so, it is safe to assume something went wrong, that did not raise any errors and the incomplete transcription is not going to be processed further, but there is also no option to delete it (button is disabled).

One way to delete all the incomplete transcriptions is to

  1. open the console of the autoEdit app by pressing on alt cmd i (all at the same time).

  2. in there copy and paste the following code

for (i = 0; i <  appTranscription.transcriptionsList.models.length; i++) { 
    if(!appTranscription.transcriptionsList.models[i].attributes.status){
appTranscription.transcriptionsList.models[i].destroy();
    }
}
  1. hit enter

  2. if it hasn't delete all the incomplete once, repeat.


From a development point orview, one way to improve on this, the backbone view needs to be changed to add some logic to make the transcription deletable if it is still marked as processing after 5 minutes or so. (better do 6 or 7 to stay on the safe side tho).

pietrop commented 5 years ago

should have been sorted in https://github.com/OpenNewsLabs/autoEdit_2/pull/81 by @bfasenfest