Skip to content

Commit

Permalink
Version 6.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
chuot committed Oct 17, 2022
1 parent 12a0d0a commit afbd174
Show file tree
Hide file tree
Showing 14 changed files with 122 additions and 112 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ _v6.6.1_

- Fixed search issue (issue #267).

_v6.6.2_

- Fixed authentication endless loop if wrong access code is entered.

## Version 6.5

- Fixed API looping on malformed or invalid multipart content (issue #181, #212).
Expand Down
16 changes: 8 additions & 8 deletions COMPILING.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ Clone the official repository on your computer and start the build process.

When finished, you will find the precompiled versions for various platforms in the `dist` folder.

rdio-scanner-darwin-amd64-v6.6.1.zip
rdio-scanner-darwin-arm64-v6.6.1.zip
rdio-scanner-freebsd-amd64-v6.6.1.zip
rdio-scanner-linux-386-v6.6.1.zip
rdio-scanner-linux-amd64-v6.6.1.zip
rdio-scanner-linux-arm64-v6.6.1.zip
rdio-scanner-linux-arm-v6.6.1.zip
rdio-scanner-windows-amd64-v6.6.1.zip
rdio-scanner-darwin-amd64-v6.6.2.zip
rdio-scanner-darwin-arm64-v6.6.2.zip
rdio-scanner-freebsd-amd64-v6.6.2.zip
rdio-scanner-linux-386-v6.6.2.zip
rdio-scanner-linux-amd64-v6.6.2.zip
rdio-scanner-linux-arm64-v6.6.2.zip
rdio-scanner-linux-arm-v6.6.2.zip
rdio-scanner-windows-amd64-v6.6.2.zip

**Happy Rdio scanning !**
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
################################################################################

app := rdio-scanner
date := 2022/10/07
ver := 6.6.1
date := 2022/10/17
ver := 6.6.2

client := $(wildcard client/*.json client/*.ts)
server := $(wildcard server/*.go)
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ ALWAYS DOWNLOAD THE LATEST VERSION OF [RDIO SCANNER](https://github.com/chuot/rd

| Operating system | Architecture | Use package |
| -----------------| ------------ | ------------------------------------- |
| FreeBSD | amd64 | rdio-scanner-freebsd-amd64-v6.6.1.zip |
| Linux | 386 | rdio-scanner-linux-386-v6.6.1.zip |
| Linux | amd64 | rdio-scanner-linux-amd64-v6.6.1.zip |
| Linux | arm | rdio-scanner-linux-arm-v6.6.1.zip |
| Linux | arm64 | rdio-scanner-linux-arm64-v6.6.1.zip |
| macOS | amd64 | rdio-scanner-macos-amd64-v6.6.1.zip |
| macOS | arm64 | rdio-scanner-macos-arm64-v6.6.1.zip |
| Windows | amd64 | rdio-scanner-macos-amd64-v6.6.1.zip |
| FreeBSD | amd64 | rdio-scanner-freebsd-amd64-v6.6.2.zip |
| Linux | 386 | rdio-scanner-linux-386-v6.6.2.zip |
| Linux | amd64 | rdio-scanner-linux-amd64-v6.6.2.zip |
| Linux | arm | rdio-scanner-linux-arm-v6.6.2.zip |
| Linux | arm64 | rdio-scanner-linux-arm64-v6.6.2.zip |
| macOS | amd64 | rdio-scanner-macos-amd64-v6.6.2.zip |
| macOS | arm64 | rdio-scanner-macos-arm64-v6.6.2.zip |
| Windows | amd64 | rdio-scanner-macos-amd64-v6.6.2.zip |

2. Extract the contents of the archive somewhere on your computer.
3. Run the [Rdio Scanner](https://github.com/chuot/rdio-scanner) executable.
Expand Down
4 changes: 2 additions & 2 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@
"build": "ng build --base-href ./ --configuration production",
"start": "ng serve"
},
"version": "6.6.1"
"version": "6.6.2"
}
2 changes: 2 additions & 0 deletions client/src/app/components/rdio-scanner/main/main.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,8 @@ export class RdioScannerMainComponent implements OnDestroy, OnInit {
const password = this.rdioScannerService.readPin();

if (password) {
this.rdioScannerService.clearPin();

this.authForm.get('password')?.setValue(password);

this.rdioScannerService.authenticate(password);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@ export class RdioScannerService implements OnDestroy {
});
}

clearPin(): void {
window?.localStorage.removeItem(RdioScannerService.LOCAL_STORAGE_KEY_PIN);
}

ngOnDestroy(): void {
this.closeWebsocket();

Expand Down Expand Up @@ -547,13 +551,13 @@ export class RdioScannerService implements OnDestroy {
}

readPin(): string | undefined {
const pin = window?.localStorage?.getItem(`${RdioScannerService.LOCAL_STORAGE_KEY_PIN}`);
const pin = window?.localStorage?.getItem(RdioScannerService.LOCAL_STORAGE_KEY_PIN);

return pin ? window.atob(pin) : undefined;
}

savePin(pin: string): void {
window?.localStorage?.setItem(`${RdioScannerService.LOCAL_STORAGE_KEY_PIN}`, window.btoa(pin));
window?.localStorage?.setItem(RdioScannerService.LOCAL_STORAGE_KEY_PIN, window.btoa(pin));
}

searchCalls(options: RdioScannerSearchOptions): void {
Expand Down
10 changes: 5 additions & 5 deletions docs/docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ $ docker run --detach --env TZ=America/Toronto --name rdio-scanner --publish 300
520cdbf51fca11d8bacea12d81245f1cb4d984f80d2be2e3039727b59533a6a9

$ docker logs rdio-scanner
Rdio Scanner v6.6.1
Rdio Scanner v6.6.2
----------------------------------
2022/10/07 08:57:23 server started
2022/10/07 08:57:23 base folder is /app/data
2022/10/07 08:57:23 main interface at http://6d87e8dc37a0:3000
2022/10/07 08:57:23 admin interface at http://6d87e8dc37a0:3000/admin
2022/10/17 08:57:23 server started
2022/10/17 08:57:23 base folder is /app/data
2022/10/17 08:57:23 main interface at http://6d87e8dc37a0:3000
2022/10/17 08:57:23 admin interface at http://6d87e8dc37a0:3000/admin
```

You can also use docker-compose to start the server with this simple `docker-compose.yml`:
Expand Down
42 changes: 21 additions & 21 deletions docs/platforms/freebsd.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,20 @@ ALWAYS DOWNLOAD THE LATEST VERSION OF [RDIO SCANNER](https://github.com/chuot/rd
rdio@pc-freebsd:~ $ mkdir rdio-scanner
rdio@pc-freebsd:~ $ cd rdio-scanner
rdio@pc-freebsd:~/rdio-scanner $ unzip \
> ~/rdio-scanner-freebsd-amd64-v6.6.1.zip
Archive: ../rdio-scanner-freebsd-amd64-v6.6.1.zip
> ~/rdio-scanner-freebsd-amd64-v6.6.2.zip
Archive: ../rdio-scanner-freebsd-amd64-v6.6.2.zip
extracting: rdio-scanner
extracting: rdio-scanner.pdf

3. Run the executable.

rdio@pc-freebsd:~/rdio-scanner $ ./rdio-scanner
Rdio Scanner v6.6.1
Rdio Scanner v6.6.2
----------------------------------
2022/10/07 08:16:36 server started
2022/10/07 08:16:36 main interface at http://pc-freebsd:3000
2022/10/07 08:16:36 admin interface at http://pc-freebsd:3000/admin
2022/10/17 08:16:36 server started
2022/10/17 08:16:36 main interface at http://pc-freebsd:3000
2022/10/17 08:16:36 admin interface at http://pc-freebsd:3000/admin

4. Access the administrative dashboard to finalize the configuration.

Expand All @@ -82,11 +82,11 @@ Here we want our [Rdio Scanner](https://guthub.com/chuot/rdio-scanner) instance
Password:
root@pc-freebsd:/home/rdio/rdio-scanner # ./rdio-scanner -listen :80
Rdio Scanner v6.6.1
Rdio Scanner v6.6.2
----------------------------------
2022/10/07 08:19:38 server started
2022/10/07 08:19:38 main interface at http://pc-freebsd
2022/10/07 08:19:38 admin interface at http://pc-freebsd/admin
2022/10/17 08:19:38 server started
2022/10/17 08:19:38 main interface at http://pc-freebsd
2022/10/17 08:19:38 admin interface at http://pc-freebsd/admin

## Listening on a SSL port

Expand All @@ -102,12 +102,12 @@ You can use your own SSL certificates that match your domain name with `-ssl_cer
> -ssl_key_file mykey.key \
> -ssl_listen :443
Rdio Scanner v6.6.1
Rdio Scanner v6.6.2
----------------------------------
2022/10/07 10:34:29 server started
2022/10/07 10:34:29 main interface at http://pc-freebsd
2022/10/07 10:34:29 main interface at https://pc-freebsd
2022/10/07 10:34:29 admin interface at https://pc-freebsd/admin
2022/10/17 10:34:29 server started
2022/10/17 10:34:29 main interface at http://pc-freebsd
2022/10/17 10:34:29 main interface at https://pc-freebsd
2022/10/17 10:34:29 admin interface at https://pc-freebsd/admin

If you don't want to worry about SSL certificates, you can use the built-in Let's Encrypt auto-cert feature. This requires that you have both port 80 (HTTP) and port 443 (HTTPS) open to the world. Also, your domain name should point to your IP address where [Rdio Scanner](https://github.com/chuot/rdio-scanner/) is running. The advantage of this approach is that everything is done automatically, no certificate request, no certificate renewal.

Expand All @@ -127,7 +127,7 @@ You don't want to have to type everytime a long list of arguments. No problem, y
> -ssl_auto_cert mydomain.com \
> -ssl_listen :443 \
> -config_save
2022/10/07 10:37:00 rdio-scanner.ini file created
2022/10/17 10:37:00 rdio-scanner.ini file created

All of your parameters passed as arguments to [Rdio Scanner](https://github.com/chuot/rdio-scanner) have been saved to an INI file which has the same arguments/values list.

Expand All @@ -143,12 +143,12 @@ Then simply run [Rdio Scanner](https://github.com/chuot/rdio-scanner) without an
Password:
root@pc-freebsd:/home/rdio/rdio-scanner # ./rdio-scanner
Rdio Scanner v6.6.1
Rdio Scanner v6.6.2
----------------------------------
2022/10/07 10:38:28 server started
2022/10/07 10:38:29 main interface at http://pc-freebsd
2022/10/07 10:38:29 main interface at https://pc-freebsd
2022/10/07 10:38:29 admin interface at https://pc-freebsd/admin
2022/10/17 10:38:28 server started
2022/10/17 10:38:29 main interface at http://pc-freebsd
2022/10/17 10:38:29 main interface at https://pc-freebsd
2022/10/17 10:38:29 admin interface at https://pc-freebsd/admin

## Install Rdio Scanner as a service

Expand Down
42 changes: 21 additions & 21 deletions docs/platforms/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,20 @@ ALWAYS DOWNLOAD THE LATEST VERSION OF [RDIO SCANNER](https://github.com/chuot/rd
[rdio@pc-linux ~]$ mkdir rdio-scanner
[rdio@pc-linux ~]$ cd rdio-scanner
[rdio@pc-linux rdio-scanner]$ unzip \
> ~/Downloads/rdio-scanner-linux-amd64-v6.6.1.zip
Archive: /home/rdio/Downloads/rdio-scanner-linux-amd64-v6.6.1.zip
> ~/Downloads/rdio-scanner-linux-amd64-v6.6.2.zip
Archive: /home/rdio/Downloads/rdio-scanner-linux-amd64-v6.6.2.zip
inflating: rdio-scanner
inflating: rdio-scanner.pdf

3. Run the executable.

[rdio@pc-linux rdio-scanner]$ ./rdio-scanner
Rdio Scanner v6.6.1
Rdio Scanner v6.6.2
----------------------------------
2022/10/07 09:11:48 server started
2022/10/07 09:11:48 main interface at http://pc-linux:3000
2022/10/07 09:11:48 admin interface at http://pc-linux:3000/admin
2022/10/17 09:11:48 server started
2022/10/17 09:11:48 main interface at http://pc-linux:3000
2022/10/17 09:11:48 admin interface at http://pc-linux:3000/admin

4. Access the administrative dashboard to finalize the configuration.

Expand All @@ -79,11 +79,11 @@ Here we want our [Rdio Scanner](https://guthub.com/chuot/rdio-scanner) instance
[rdio@pc-linux rdio-scanner]$ sudo ./rdio-scanner -listen :80
[sudo] password for rdio:
Rdio Scanner v6.6.1
Rdio Scanner v6.6.2
----------------------------------
2022/10/07 09:14:00 server started
2022/10/07 09:14:00 main interface at http://pc-linux
2022/10/07 09:14:00 admin interface at http://pc-linux/admin
2022/10/17 09:14:00 server started
2022/10/17 09:14:00 main interface at http://pc-linux
2022/10/17 09:14:00 admin interface at http://pc-linux/admin

## Listening on a SSL port

Expand All @@ -98,12 +98,12 @@ You can use your own SSL certificates that match your domain name with `-ssl_cer
> -ssl_listen :443
[sudo] password for rdio:
Rdio Scanner v6.6.1
Rdio Scanner v6.6.2
----------------------------------
2022/10/07 09:16:47 server started
2022/10/07 09:16:47 main interface at http://pc-linux
2022/10/07 09:16:47 main interface at https://pc-linux
2022/10/07 09:16:47 admin interface at https://pc-linux/admin
2022/10/17 09:16:47 server started
2022/10/17 09:16:47 main interface at http://pc-linux
2022/10/17 09:16:47 main interface at https://pc-linux
2022/10/17 09:16:47 admin interface at https://pc-linux/admin

If you don't want to worry about SSL certificates, you can use the built-in Let's Encrypt auto-cert feature. This requires that you have both port 80 (HTTP) and port 443 (HTTPS) open to the world. Also, your domain name should point to your IP address where [Rdio Scanner](https://github.com/chuot/rdio-scanner/) is running. The advantage of this approach is that everything is done automatically, no certificate request, no certificate renewal.

Expand All @@ -121,7 +121,7 @@ You don't want to have to type everytime a long list of arguments. No problem, y
> -ssl_auto_cert mydomain.com \
> -ssl_listen :443 \
> -config_save
2022/10/07 09:19:29 rdio-scanner.ini file created
2022/10/17 09:19:29 rdio-scanner.ini file created

All of your parameters passed as arguments to [Rdio Scanner](https://github.com/chuot/rdio-scanner) have been saved to an INI file which has the same arguments/values list.

Expand All @@ -136,12 +136,12 @@ Then simply run [Rdio Scanner](https://github.com/chuot/rdio-scanner) without an
[rdio@pc-linux rdio-scanner]$ sudo ./rdio-scanner
[sudo] Mot de passe de rdio :
Rdio Scanner v6.6.1
Rdio Scanner v6.6.2
----------------------------------
2022/10/07 09:20:40 server started
2022/10/07 09:20:40 main interface at http://pc-linux
2022/10/07 09:20:40 main interface at https://pc-linux
2022/10/07 09:20:40 admin interface at https://pc-linux/admin
2022/10/17 09:20:40 server started
2022/10/17 09:20:40 main interface at http://pc-linux
2022/10/17 09:20:40 main interface at https://pc-linux
2022/10/17 09:20:40 admin interface at https://pc-linux/admin

## Install Rdio Scanner as a service

Expand Down
Loading

0 comments on commit afbd174

Please sign in to comment.