Synchronize Web Scrobbler LevelDB file with tomacheese/fetch-youtube-bgm.
- When playing a YouTube video, the title and artist set in fetch-youtube-bgm will correctly scrobble.
- It has a synchronization feature with fetch-youtube-bgm, so changes made in either fetch-youtube-bgm or Web Scrobbler will be correctly merged with the registration information.
โ ๏ธ Due to LevelDB specifications, data cannot be updated while the browser is running.
- Supported operating system
- Windows 64 bit (Tested with Windows 11 23H2)
- macOS (Not tested)
- Ubuntu (Not tested)
- Chrome (but any browser that can install Chrome extensions can be used)
- The extension Web Scrobbler must be installed and in use.
- Node.js Runtime
Download the appropriate Zip file for your OS from the release page.
- Windows:
auto-update-web-scrobbler_v{X.Y.Z}-ubuntu.zip - macOS:
auto-update-web-scrobbler_v{X.Y.Z}-ubuntu.zip - Ubuntu:
auto-update-web-scrobbler_v{X.Y.Z}-ubuntu.zip
After downloading, extract the file to a folder of your choice.
Create data/config.json and write the following JSON. Note that the strings enclosed in < and > should be replaced with the correct ones.
<fetch-youtube-bgm server url>: Enter the URL where tomacheese/fetch-youtube-bgm is running.- Access
<fetch-youtube-bgm server url>/api/tracksand verify that the track information list is displayed correctly in JSON format.
- Access
<extension settings folder path>: Specify the configuration folder for the Web Scrobbler extension. Backslashes (\) should be escape (\\).- Default Folder in Chrome on Windows:
C:\Users\USERNAME\AppData\Local\Google\Chrome\User Data\Default\Local Extension Settings\hhinaapppaileiechjoiifaancjggfjm\ - Multiple folder paths can be specified.
- Default Folder in Chrome on Windows:
{
"server": "<fetch-youtube-bgm server url>",
"browser": {
"levelDbPath": [
"<extension settings folder path>"
]
}
}Execute the following command to run `index.js
node index.jsIf you get the following error here, please review it.
Cannot find module '.../node.napi.node'- In Windows and Ubuntu environments, the N-API is a dependency; store the
prebuildsfolder in the zip file in the same folder asindex.js.
- In Windows and Ubuntu environments, the N-API is a dependency; store the
Failed to update Config path not found- There does not seem to be a configuration file in the correct location. Please create a
datafolder and createconfig.jsonin it.
- There does not seem to be a configuration file in the correct location. Please create a
Failed to update ({"code":"ECONNREFUSED"...- The URL of the fetch-youtube-bgm server seems to be incorrect.
Failed to update ENOENT: no such file or directory, lstat ...- The configuration folder path for the Web Scrobbler extension may be incorrect.
Failed to open database Database is not open,LevelDB is not writable. Skip: ...- The Web Scrobbler extension configuration file cannot be opened because the browser is still open. Please close your browser.
Create the file UpdateWebScrobbler.vbs and write the following:
Set ws = CreateObject("Wscript.Shell")
ws.run "cmd /c node index.js", 0, FalsePlease put a shortcut to the vbs file you created in your startup (shell:startup).
The license for this project is MIT License.