-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internal links plugin #6
Comments
Hi, |
I need to address in the Youtube playlist have the same form as in the example below |
I have good news for you by the plugin to version AIMP 4.12.1873 no longer get out error when closing AIMP.exe player: Memory Leak Detected |
Actually, here's a quick script to convert the playlist file from youtube:// format to full youtube url: if (WScript.Arguments.Count() > 0) {
var filename = WScript.Arguments(0);
var fso = WScript.CreateObject('Scripting.FileSystemObject');
var f = fso.OpenTextFile(filename, 1, false, -2); // 1 - forReading
var content = f.AtEndOfStream ? '' : f.ReadAll();
f.close();
if (content) {
content = content.replace(/youtube:\/\/(.*?)\/.*?(\r?\n)/gi, 'https://www.youtube.com/watch?v=$1$2');
content = content.replace(/soundcloud:\/\/(.*?)\/.*?(\r?\n)/gi, 'https://api.soundcloud.com/tracks/$1/stream?client_id=7ab49ecff90c309cd51cab81c1f5baed$2');
f = fso.OpenTextFile(filename, 2, true, -2); // 2 - forWriting
f.write(content);
f.close();
}
} |
Thank you for you script. |
Big request to the author, please don't change the format of the playlist to address tracks type youtube:// Get, when you export such playlists they can no longer read third-party players, including video.
BTW with the plugin Souncloud too problems stopped taking links
The text was updated successfully, but these errors were encountered: