Created
April 24, 2015 17:46
-
-
Save Vazkii/73a12a52e0b5596dd630 to your computer and use it in GitHub Desktop.
Runescape Music extractor and combiner. Based on josch's work: https://github.com/josch/rsmusicextract
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
py --version 2>NUL | |
if errorlevel 1 ( | |
echo You need to install Python for the extractor to work. | |
echo Now go do that. | |
pause | |
exit | |
) | |
if not exist rsmusicextract.py ( | |
bitsadmin.exe /transfer "josch/rsmusicextract" https://raw.githubusercontent.com/josch/rsmusicextract/master/rsmusicextract.py %CD%/rsmusicextract.py | |
echo rsmusicextract.py not found, downloaded it instead | |
echo https://github.com/josch/rsmusicextract | |
echo. | |
) | |
echo --- RS Music Extractor --- | |
echo Script by josch, merger by Vazkii | |
echo. | |
echo Extracting files from the Jagex Cache | |
echo This will only extract songs that exist in your Cache. | |
echo If you've never played the song ingame it won't be here. | |
rsmusicextract.py %userprofile%/jagexcache/runescape/LIVE %CD%/extract | |
mkdir output | |
echo # Runescape Soundtrack > output/_playlist.m3u | |
echo Done. Merging songs | |
cd extract | |
for /D %%N in (*) do ( | |
cd %%N | |
echo Merging %%N.ogg | |
echo %%N.ogg >> ../../output/_playlist.m3u | |
copy /b *.ogg "%%N.ogg" >NUL | |
move "%%N.ogg" ../../output >NUL | |
cd .. | |
) | |
echo Done! You may delete the 'extract' folder now if you please. | |
echo Check the 'output' folder for your music. A playlist file has also been created. | |
echo Note that due to the way the files were stored, some players won't be able to play the tracks. | |
pause | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment