Skip to content

Commit 459eb06

Browse files
committed
Merge branch 'public/9.1' of https://github.com/SamInPgh/slimserver into public/9.1
2 parents 7a4a9e8 + a8e773d commit 459eb06

File tree

7 files changed

+43
-24
lines changed

7 files changed

+43
-24
lines changed

.github/actions/build/action.yaml

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,29 @@ runs:
119119
exit 1;
120120
fi
121121
122+
- name: Cache s5cmd
123+
uses: actions/cache@v4
124+
with:
125+
key: s5cmd-${{ runner.os }}
126+
path: ${{ runner.temp }}/s5cmd-bin
127+
128+
- name: Check if s5cmd is installed
129+
id: check-s5cmd
130+
continue-on-error: true
131+
shell: bash
132+
run: |
133+
PATH="${{ runner.temp }}/s5cmd-bin:$PATH"
134+
if command -v s5cmd &> /dev/null; then
135+
echo "s5cmd is already installed"
136+
echo "installed=true" >> $GITHUB_OUTPUT
137+
echo "${{ runner.temp }}/s5cmd-bin" >> $GITHUB_PATH
138+
else
139+
echo "s5cmd is not installed"
140+
echo "installed=false" >> $GITHUB_OUTPUT
141+
fi
142+
122143
- name: Set-up s5cmd
123-
if: ${{ !startsWith(inputs.build-params, 'docker') }}
144+
if: ${{ !startsWith(inputs.build-params, 'docker') && steps.check-s5cmd.outputs.installed != 'true' }}
124145
# don't fail, as we can fall back to aws-cli
125146
continue-on-error: true
126147
uses: ./server/.github/actions/setup-s5cmd
@@ -151,21 +172,13 @@ runs:
151172
fi
152173
153174
ENDPOINT_URL="https://e83bc03c881257fada7ca16c243e9298.eu.r2.cloudflarestorage.com"
154-
AWS_CMD="aws --endpoint-url $ENDPOINT_URL s3"
155-
S5_CMD="s5cmd --endpoint-url $ENDPOINT_URL"
156-
157-
# Try s5cmd first, fall back to aws cli if it fails
158-
for f in publish/?yrion?usic?erver*; do
159-
if command -v s5cmd 2>&1 >/dev/null; then
160-
if $S5_CMD cp $f s3://downloads/$TARGET_FOLDER/; then
161-
echo "Successfully uploaded $f using s5cmd"
162-
else
163-
echo "s5cmd upload failed for $f, falling back to aws cli"
164-
$AWS_CMD cp $f s3://downloads/$TARGET_FOLDER/
165-
fi
166-
else
167-
echo "s5cmd not available, using aws cli"
168-
$AWS_CMD cp $f s3://downloads/$TARGET_FOLDER/
169-
fi
175+
S3_CMD="aws --endpoint-url $ENDPOINT_URL s3"
176+
if command -v s5cmd 2>&1 >/dev/null; then
177+
S3_CMD="s5cmd --endpoint-url $ENDPOINT_URL"
178+
fi
179+
180+
for f in publish/?yrion?usic?erver*;
181+
do
182+
$S3_CMD cp $f s3://downloads/$TARGET_FOLDER/
170183
done
171184
echo "::endgroup::"

Changelog9.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ <h2><a name="v9.1.0" id="v9.1.0"></a>Version 9.1.0</h2>
2222
<li><a href="https://github.com/LMS-Community/slimserver/pull/1363">#1363</a> - Allow item removal even if playlist has only 1 item (@mw9)</li>
2323
<li><a href="https://github.com/LMS-Community/slimserver/pull/1364">#1364</a> - store/return playqueue entry context flag ("addedFromWork")</li>
2424
<li><a href="https://github.com/LMS-Community/slimserver/pull/1377">#1377</a> - Provide new /time/tz endpoint for Squeezeplay to fetch the local timezone (@mw9)</li>
25+
<li><a href="https://github.com/LMS-Community/slimserver/pull/1383">#1383</a> - Store the calculated replay gain in the player object when beginning playback (@SamInPgh)</li>
2526
</ul>
2627
<br />
2728

HTML/EN/settings/server/security.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,10 @@
5151
<input type="text" class="stdedit" name="pref_corsAllowedHosts" id="corsAllowedHosts" value="[% prefs.pref_corsAllowedHosts | html %]" size="40">
5252
[% END %]
5353

54-
[% IF enforceInsecureHTTPS %]
55-
<input type="hidden" name="pref_insecureHTTPS" value="[% prefs.pref_insecureHTTPS | html %]" />
56-
[% ELSE; WRAPPER settingGroup title="SETUP_INSECURE_HTTPS" desc="SETUP_INSECURE_HTTPS_DESC" %]
54+
[% WRAPPER settingGroup title="SETUP_INSECURE_HTTPS" desc="SETUP_INSECURE_HTTPS_DESC" %]
5755
<input type="checkbox" name="pref_insecureHTTPS" id="insecureHTTPS" [% IF prefs.pref_insecureHTTPS %] checked="checked" [% END %] />
5856
<label for="insecureHTTPS">[% "SETUP_INSECURE_HTTPS2" | string %]</label>
59-
[% END; END %]
57+
[% END %]
6058
[% END %]
6159
[% PROCESS settings/footer.html %]
6260

HTML/EN/update_software.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ <h4>[% "UPDATES_LATEST_CHANGES" | string("https://github.com/LMS-Community/slims
131131
<dl id="changelog"></dl>
132132
</div>
133133

134-
<dt><a href="https://github.com/LMS-Community/slimserver/commits/public/[% serverVersion %]" target="_blank">[% "MORE" | string %]</a></dt>
134+
<dt><a href="https://github.com/LMS-Community/slimserver/commits/public/[% serverVersion %]" target="_blank">[% "MORE_ON_GITHUB" | string %]</a></dt>
135135
[% ELSE %]
136136
<h4>[% "CONTROLPANEL_NO_UPDATE_AVAILABLE" | string | html %]</h4>
137137
[% END %]

Slim/Web/Pages/Home.pm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,9 @@ sub _updateInfoCB {
229229

230230
if ($params->{'newVersion'}) {
231231
$json->{server} = $params->{'newVersion'};
232+
if ($json->{server} =~ /"(updateinfo\.html[^"]+)"/) {
233+
$json->{infoUrl} = $1;
234+
}
232235
}
233236
if ($params->{'newPlugins'} && scalar @{$params->{'newPlugins'}}) {
234237
$json->{plugins} = $params->{'newPlugins'};

Slim/Web/Settings/Server/Security.pm

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ sub handler {
6161
}
6262
}
6363

64-
$paramRef->{enforceInsecureHTTPS} = main::ISWINDOWS ? 1 : 0;
65-
6664
return $class->SUPER::handler($client, $paramRef, $pageSetup);
6765
}
6866

strings.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23753,6 +23753,12 @@ UPDATES_LATEST_CHANGES
2375323753
SV Senaste ändringar (<a href="%s" target="_blank">alla ändringar</a>)
2375423754
ZH_CN 最新更改 (<a href="%s" target="_blank">所有更改</a>)
2375523755

23756+
MORE_ON_GITHUB
23757+
DE Änderungen auf Github ansehen...
23758+
EN Check out changes on Github...
23759+
FR Consultez les modifications sur Github...
23760+
NL Bekijk wijzigingen op Github...
23761+
2375623762
UPDATE
2375723763
CS Aktualizace
2375823764
DA Opdatering

0 commit comments

Comments
 (0)