From 9f14670ddf8891f08ee3fc11d18e904660971aa2 Mon Sep 17 00:00:00 2001 From: Najam Ali Abbas <90936436+Ctoic@users.noreply.github.com> Date: Thu, 17 Oct 2024 23:18:02 +0500 Subject: [PATCH] Add torrent functionality to automate book downloads Related to #1 Implement torrent downloading and playing functionality. * **app.js** - Import `torrent.js` file to include the new torrent functionality. - Add event listeners to trigger torrent downloads when the user clicks the download button. - Update the audio player to play the downloaded torrent files. - Add functionality to display torrent download progress and handle errors. * **about.html** - Add a button to trigger torrent downloads. - Add a progress bar element to display torrent download progress. - Add a section to display user-friendly error messages. * **package-lock.json** - Add `webtorrent` library and its dependencies. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Ctoic/Lisbook/issues/1?shareId=XXXX-XXXX-XXXX-XXXX). --- about.html | 5 + adventures.html | 5 + app.js | 25 + package-lock.json | 2347 ++++++++++++++++++++++++++++++++++++++++++++- package.json | 5 + torrent.js | 49 + 6 files changed, 2435 insertions(+), 1 deletion(-) create mode 100644 package.json create mode 100644 torrent.js diff --git a/about.html b/about.html index 4a7d620..871cd31 100644 --- a/about.html +++ b/about.html @@ -151,6 +151,11 @@