diff --git a/README.md b/README.md
index 2c14640..15ceb35 100644
--- a/README.md
+++ b/README.md
@@ -127,7 +127,7 @@ You can reach out to me personally on:
*All content on Hyperpipe is from YouTube Music. YouTube and YouTube Music are trademarks of Google LLC. Hyperpipe is not affiliated with YouTube or YouTube Music.*
[hypipe]: https://hyperpipe.surge.sh
-[piped]: https://piped.kavin.rocks
+[piped]: https://github.com/TeamPiped/Piped
[license]: https://codeberg.org/Hyperpipe/Hyperpipe/src/branch/main/LICENSE.md
[vue]: https://github.com/vuejs/core/blob/main/LICENSE
[vite]: https://github.com/vitejs/vite/blob/main/LICENSE
diff --git a/src/assets/version.json b/src/assets/version.json
index ed47470..4f0ab71 100644
--- a/src/assets/version.json
+++ b/src/assets/version.json
@@ -1,3 +1,3 @@
{
- "date": "2023-02-22"
+ "date": "2023-02-25"
}
diff --git a/src/components/Search.vue b/src/components/Search.vue
index f78eff9..a53ad52 100644
--- a/src/components/Search.vue
+++ b/src/components/Search.vue
@@ -6,7 +6,7 @@ import SongItem from './SongItem.vue';
import AlbumItem from './AlbumItem.vue';
import { getJsonPiped, getPipedQuery } from '@/scripts/fetch.js';
-import { useRoute, useWrap } from '@/scripts/util.js';
+import { useRoute, useWrap, useShare } from '@/scripts/util.js';
import { useCreatePlaylist, useRemovePlaylist } from '@/scripts/db.js';
import { useResults, useArtist } from '@/stores/results.js';
@@ -77,9 +77,18 @@ const shuffleAdd = () => {
removeSong = i => {
console.log(i);
- try {
- results.items.songs.items.splice(i, 1);
- } catch {}
+ results.items.songs.items.splice(i, 1);
+ },
+ shareAlbum = () => {
+ const data = {
+ title: `View ${results.items?.songs?.title} on Hyperpipe`,
+ url:
+ location.origin +
+ (results.album.startsWith('/') ? '' : '/') +
+ results.album,
+ };
+
+ useShare(data);
},
saveAlbum = () => {
const urls = results.items?.songs?.items?.map(item => ({
@@ -234,6 +243,8 @@ onDeactivated(() => {
class="bi bi-bookmark-plus clickable"
@click="saveAlbum">
+
+