This repository was archived by the owner on Jul 9, 2023. It is now read-only.
Replies: 3 comments
|
The current implementation/design is not designed to handle multiple URLs per system, you would have to likely write a loop for the download process to support multiple urls. |
0 replies
|
Got it. I got Gamecube running now (for one part). Will close previous pull request (which was still wrong) and open a new one, which then is correct & tested. Any chance you can help me with the loop for multiple URL and I could then add the link for the second URL? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Need a bit of coding help... I tried to add two URLs for one emulator, but failed. I tried both adding it as separate entries or as two links under the same entry. Any chance help advice me on this? Below what I have tried so far.
Attempt 1 - Added two URLs
if echo "$folder" | grep "^gc$" | read; then
ConsoleId=16
ConsoleName="GameCube"
ConsoleDirectory="gc"
ArchiveUrl="$(curl -s "https://archive.org/download/GCRedumpNKitPart1/" | grep ".nkit.gcz" | grep -io '<a href=['"'"'"][^"'"'"']['"'"'"]' | sed -e 's/^<a href=["'"'"']//i' -e 's/["'"'"']$//i' | sed 's////g' | sort -u | sed 's|^|https://archive.org/download/GCRedumpNKitPart1/|')"
keepCompressed=true
ArchiveUrl="$(curl -s "https://archive.org/download/GCRedumpNKitPart2/" | grep ".nkit.gcz" | grep -io '<a href=['"'"'"][^"'"'"']['"'"'"]' | sed -e 's/^<a href=["'"'"']//i' -e 's/["'"'"']$//i' | sed 's////g' | sort -u | sed 's|^|https://archive.org/download/GCRedumpNKitPart2/|')"
keepCompressed=true
fi
Attempt 2 - Two entries
if echo "$folder" | grep "^gc$" | read; then
ConsoleId=16
ConsoleName="GameCube"
ConsoleDirectory="gc"
ArchiveUrl="$(curl -s "https://archive.org/download/GCRedumpNKitPart1/" | grep ".nkit.gcz" | grep -io '<a href=['"'"'"][^"'"'"']['"'"'"]' | sed -e 's/^<a href=["'"'"']//i' -e 's/["'"'"']$//i' | sed 's////g' | sort -u | sed 's|^|https://archive.org/download/GCRedumpNKitPart1/|')"
keepCompressed=true
fi
if echo "$folder" | grep "^gc$" | read; then
ConsoleId=16
ConsoleName="GameCube"
ConsoleDirectory="gc"
ArchiveUrl="$(curl -s "https://archive.org/download/GCRedumpNKitPart2/" | grep ".nkit.gcz" | grep -io '<a href=['"'"'"][^"'"'"']['"'"'"]' | sed -e 's/^<a href=["'"'"']//i' -e 's/["'"'"']$//i' | sed 's////g' | sort -u | sed 's|^|https://archive.org/download/GCRedumpNKitPart2/|')"
keepCompressed=true
fi
All reactions