Based on: http://jakegoulding.com/rust-ffi-omnibus/objects/
Not working yet.
The Rust library:
extern crate rand;| ;; Copyright 2023 Shawn Kinkade | |
| ;; | |
| ;; Licensed under the Apache License, Version 2.0 (the "License"); | |
| ;; you may not use this file except in compliance with the License. | |
| ;; You may obtain a copy of the License at | |
| ;; | |
| ;; http://www.apache.org/licenses/LICENSE-2.0 | |
| ;; | |
| ;; Unless required by applicable law or agreed to in writing, software | |
| ;; distributed under the License is distributed on an "AS IS" BASIS, |
| // While browsing a playlist in your browser, | |
| // i.e. browser address is https://open.spotify.com/playlist/{playlistId}, | |
| // copy/paste these functions into the browser console, | |
| // then run exportCurrentPlaylist() | |
| // It should prompt a download for: | |
| // [Playlist name] - [Playlist ID].csv | |
| // Containing: | |
| // Song, Artist(s), Album, Song Link, Main Artist Link, Album Link | |
| // Disclaimer: written quickly by a non-JS dev |
| use NativeCall; | |
| ### DCT hashing & Hamming | |
| # int ph_dct_imagehash(const char* file,ulong64 &hash); | |
| sub ph_dct_imagehash(Str, uint64 is rw) | |
| is native('pHash', v0) | |
| returns int16 | |
| { * } |
Based on: http://jakegoulding.com/rust-ffi-omnibus/objects/
Not working yet.
The Rust library:
extern crate rand;