diff --git a/src/components/PlaylistsPage.vue b/src/components/PlaylistsPage.vue
index 27d9d3c6..a785cc12 100644
--- a/src/components/PlaylistsPage.vue
+++ b/src/components/PlaylistsPage.vue
@@ -10,7 +10,14 @@
class="btn"
@click="exportPlaylists"
/>
-
+
@@ -180,7 +187,13 @@ export default {
return playlistJson;
},
async importPlaylists() {
- const file = this.$refs.fileSelector.files[0];
+ const files = this.$refs.fileSelector.files;
+ for (let file of files) {
+ await this.importPlaylistFile(file);
+ }
+ window.location.reload();
+ },
+ async importPlaylistFile(file) {
let text = await file.text();
let tasks = [];
// list of playlists exported from Piped
@@ -209,7 +222,6 @@ export default {
return;
}
await Promise.all(tasks);
- window.location.reload();
},
async createPlaylistWithVideos(playlist) {
let newPlaylist = await this.createPlaylist(playlist.name);