mirror of
https://github.com/NohamR/N_m3u8DL-RE.git
synced 2025-05-24 14:21:58 +00:00
Compare commits
4 Commits
948f7aa75a
...
6b181338c9
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6b181338c9 | ||
![]() |
48ba42b220 | ||
![]() |
a824cb22e1 | ||
![]() |
b456e9e23a |
11
.github/workflows/build_latest.yml
vendored
11
.github/workflows/build_latest.yml
vendored
@ -33,6 +33,7 @@ jobs:
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: ${{ env.DOTNET_SDK_VERSION }}
|
||||
include-prerelease: true
|
||||
|
||||
- run: dotnet publish src/N_m3u8DL-RE -r win-x64 -c Release -o artifact-x64
|
||||
- run: dotnet publish src/N_m3u8DL-RE -r win-arm64 -c Release -o artifact-arm64
|
||||
@ -51,7 +52,8 @@ jobs:
|
||||
|
||||
build-linux-x64:
|
||||
runs-on: ubuntu-latest
|
||||
container: ubuntu:18.04
|
||||
# container: ubuntu:18.04
|
||||
container: ubuntu:22.04
|
||||
|
||||
steps:
|
||||
- run: apt-get update
|
||||
@ -61,6 +63,7 @@ jobs:
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: ${{ env.DOTNET_SDK_VERSION }}
|
||||
include-prerelease: true
|
||||
- run: apt-get install -y libicu-dev libcurl4-openssl-dev zlib1g-dev libkrb5-dev
|
||||
- run: dotnet publish src/N_m3u8DL-RE -r linux-x64 -c Release -o artifact
|
||||
|
||||
@ -72,7 +75,8 @@ jobs:
|
||||
|
||||
build-linux-arm64:
|
||||
runs-on: ubuntu-latest
|
||||
container: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-arm64-20220312201346-b2c2436
|
||||
# container: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-arm64-20220312201346-b2c2436
|
||||
container: ubuntu:22.04
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
@ -80,6 +84,7 @@ jobs:
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: ${{ env.DOTNET_SDK_VERSION }}
|
||||
include-prerelease: true
|
||||
- run: dotnet publish src/N_m3u8DL-RE -r linux-arm64 -c Release -p:StripSymbols=true -p:CppCompilerAndLinker=clang-9 -p:SysRoot=/crossrootfs/arm64 -o artifact
|
||||
|
||||
- name: Upload Artifact[linux-arm64]
|
||||
@ -98,9 +103,9 @@ jobs:
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: ${{ env.DOTNET_SDK_VERSION }}
|
||||
include-prerelease: true
|
||||
- run: dotnet publish src/N_m3u8DL-RE -r osx-arm64 -c Release -o artifact-arm64
|
||||
- run: dotnet publish src/N_m3u8DL-RE -r osx-x64 -c Release -o artifact-x64
|
||||
|
||||
- name: Upload Artifact[osx-x64]
|
||||
uses: actions/upload-artifact@v3.1.3
|
||||
with:
|
||||
|
@ -16,8 +16,6 @@ namespace N_m3u8DL_RE.Parser.Processor
|
||||
public override bool CanProcess(ExtractorType extractorType, string oriUrl, ParserConfig paserConfig) => paserConfig.AppendUrlParams;
|
||||
|
||||
public override string Process(string oriUrl, ParserConfig paserConfig)
|
||||
{
|
||||
if (oriUrl.StartsWith("http"))
|
||||
{
|
||||
var uriFromConfig = new Uri(paserConfig.Url);
|
||||
var uriFromConfigQuery = HttpUtility.ParseQueryString(uriFromConfig.Query);
|
||||
@ -38,7 +36,6 @@ namespace N_m3u8DL_RE.Parser.Processor
|
||||
oriUrl = (oldUri.GetLeftPart(UriPartial.Path) + "?" + newQuery.ToString()).TrimEnd('?');
|
||||
Logger.Debug("After: " + oriUrl);
|
||||
}
|
||||
}
|
||||
|
||||
return oriUrl;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user