Skip to content

Commit

Permalink
Update OVA download link in doc/VM-PT.md and doc/VM-EN.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rafael-santiago committed Dec 8, 2024
1 parent c01c563 commit fc9e408
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion doc/VM-EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ In order to create our `Eutherpe` `VM` (**V**irtual **M**achine) we will use the
application.

You will need to install `Virtualbox` in your system and once it done, we will create a virtual
machine based on an `OVA` that I previously prepared, available at [here](https://drive.google.com/file/d/1Fvnaj7w8l25p1QDk813KvmBKcEzmx40U/view?usp=drive_link).
machine based on an `OVA` that I previously prepared, available at [here](https://drive.google.com/file/d/1TcLtxBe_ahOcYIOyX43gt77IYjr0efsw/view?usp=drive_link).

Done! If you have installed `Virtualbox` and downloaded the `OVA` you have already everyhing you
need to continue.
Expand Down
2 changes: 1 addition & 1 deletion doc/VM-PT.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Para criar a nossa `VM` (**V**irtual **M**achine) `Eutherpe` vamos utilizar o ap

Você vai precisar instalar o `Virtualbox` no seu computador e após feito isso, iremos
criar uma máquina virtual baseada numa `OVA` que eu previamente preparei, disponível
[aqui](https://drive.google.com/file/d/1Fvnaj7w8l25p1QDk813KvmBKcEzmx40U/view?usp=drive_link).
[aqui](https://drive.google.com/file/d/1TcLtxBe_ahOcYIOyX43gt77IYjr0efsw/view?usp=drive_link).

Pronto! Se você instalou o `Virtualbox` e baixou a `OVA` já tem tudo para ir adiante.

Expand Down
Binary file modified doc/figures/eus-pt-br-collection-del-tags.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 4 additions & 5 deletions src/internal/actions/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ func GetContentTypeByActionId(userData *url.Values) string {
}

func GetVDocByActionId(userData *url.Values, eutherpeVars *vars.EutherpeVars) string {
httpStatus := http.StatusNotFound
switch userData.Get(vars.EutherpeActionId) {
case vars.EutherpeMusicRemoveId,
vars.EutherpeMusicMoveUpId,
Expand Down Expand Up @@ -292,11 +291,11 @@ func GetVDocByActionId(userData *url.Values, eutherpeVars *vars.EutherpeVars) st
vars.EutherpeSettingsPowerOffId,
vars.EutherpeSettingsRebootId,
vars.EutherpeSetCurrentConfigId:
httpStatus = http.StatusOK
eutherpeVars.HTTPd.ResponseWriter.WriteHeader(http.StatusOK)
return eutherpeVars.HTTPd.IndexHTML

case vars.EutherpeAuthenticateId:
httpStatus = http.StatusOK
eutherpeVars.HTTPd.ResponseWriter.WriteHeader(http.StatusOK)
if eutherpeVars.LastError == nil {
return "<html><script>window.location=\"{{.URL-SCHEMA}}://{{.EUTHERPE-ADDR}}/eutherpe\"</script></html>"
} else {
Expand All @@ -305,9 +304,9 @@ func GetVDocByActionId(userData *url.Values, eutherpeVars *vars.EutherpeVars) st
break

case vars.EutherpePlayerStatusId:
httpStatus = http.StatusOK
eutherpeVars.HTTPd.ResponseWriter.WriteHeader(http.StatusOK)
return vars.EutherpeTemplateNeedlePlayerStatus
}
eutherpeVars.HTTPd.ResponseWriter.WriteHeader(httpStatus)
eutherpeVars.HTTPd.ResponseWriter.WriteHeader(http.StatusNotFound)
return eutherpeVars.HTTPd.ErrorHTML
}

0 comments on commit fc9e408

Please sign in to comment.