Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,17 @@ jobs:
if: ${{ github.actor != 'dependabot[bot]' }}

steps:
- name: Analyze with SonarCloud

uses: SonarSource/sonarcloud-github-action@v5.0.0
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v5.3.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # Needed to post analysis
with:
args:
# mandatory
-Dsonar.projectKey=StrategFirst_BingWall
-Dsonar.organization=strategfirst
-Dsonar.sources=scrap,web

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div align="center" style="text-align: center;">

### 4.7.2
### 4.7.4
# BingWall


Expand Down
6 changes: 4 additions & 2 deletions scrap/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ class BingWallError extends Error {
* Download from the given `webURL` a file and
* write it to `localPath`
*
* Be aware that no header are injected for this !
*
* JSDoc :
*
* @param {Document} webURL
Expand Down Expand Up @@ -56,7 +58,7 @@ async function get_GPS( origin_DOM, origin_HTML ) {
// Get the linked page :
let GPS_coord = await fetch(
`https://bing.com${location_path}`,
{headers: {'User-Agent': 'NodeJS'}}
{headers: {'User-Agent': 'Now/You See/Me2'}}
)
.then( res => res.text() )
.then( txt => parse(txt) )
Expand Down Expand Up @@ -157,7 +159,7 @@ async function TodayMetadata() {
// Grab the page content
const HTMLPage = await fetch(
`https://www.bing.com?cc=${country.code}`,
{headers: {'User-Agent': 'NodeJS'}}
{headers: {'User-Agent': 'Now/You See/Me2'}}
).then( res => res.text() );

// Use metadata finder :
Expand Down
4 changes: 2 additions & 2 deletions scrap/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 scrap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "botwallbing",
"version": "4.7.3",
"version": "4.7.4",
"type": "module",
"dependencies": {
"node-html-parser": "^7.0.1"
Expand Down
9 changes: 7 additions & 2 deletions web/scripts/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ function toPanelDom( path, name ) {
txt_dom += `<label class="neo-check" for="desc-link-details${ll=(window.toDescDomCount+=1)}"> <input type="checkbox" onchange="change_description(event)" id="desc-link-details${ll}" /> <div> <i class="local-icon">info</i> </div> </label>`;

if(md.gps != null) {
let titleCleans = [... md.titles.values()].filter( title => !(title.match(/^Info$/i)) )[0]
let titleCleans = [... md.titles.values()].filter( title => !(title.match(/^Info$/i)) )[0];
if( titleCleans == undefined ) {
titleCleans = 'Missing Clean Title';
console.warn('Missing clean title');
console.trace();
}
let marker_ref_id = addMarker(
md.gps.lat,
md.gps.long,
Expand Down Expand Up @@ -257,4 +262,4 @@ async function main() {
}
}

main()
main()