diff --git a/README.md b/README.md index aff9ace5..398bb123 100644 --- a/README.md +++ b/README.md @@ -25,20 +25,20 @@
- About | + About | Features | Technologies | Requirements | Starting | License | - Disclaimer | + Disclaimer | Author
@@ -46,7 +46,7 @@ ## :dart: About ## -MetaTube downloads video from YouTube and can add metadata from a specified metadata provider on the downloaded file. +MetaTube downloads video from YouTube and can add metadata from a specified metadata provider on the downloaded file. Normal view | Dark mode| --- | --- ![startpage](https://user-images.githubusercontent.com/47184046/147980156-e3ee71e4-a4cd-4fee-808b-c4b3c9530e9f.png) | ![darkstartpage](https://user-images.githubusercontent.com/47184046/147980017-bd3bc8bf-2589-4ee5-8d9c-1785ba906982.png) @@ -103,8 +103,11 @@ For a complete list, visit the [Dependencies overview](https://github.com/JVT038 Before starting :checkered_flag:, you need to have [Git](https://git-scm.com) and [Python 3.8 or higher](https://python.org/downloads) installed. ## :checkered_flag: Starting ## + ### :whale: Using Docker ### + CLI docker: + ```docker docker run \ -d \ @@ -117,7 +120,9 @@ docker run \ -v /metatube:/database:rw \ jvt038/metatube:latest ``` + Docker-compose: + ``` version: '3.3' services: @@ -134,8 +139,11 @@ services: - '/downloads:/downloads:rw' - '/metatube:/database:rw' ``` + You need to set the variable `DATABASE_URL` to a custom mount point (in these examples `/database`), because otherwise your database file will reset everytime the Docker container updates. + ### :hammer_and_wrench: Manually build and start server ### + ```bash # Clone this project $ git clone https://github.com/JVT038/metatube @@ -173,6 +181,7 @@ $ python metatube.py # The server will initialize in theEnter a Spotify track ID!
') + $("p:contains('* All input fields with an *, are optional')").text('Enter a Deezer track ID!
') + } + }); + + $(document).on('click', '#fetchgeniussong', function() { + let song_id = $(this).parent().siblings('input').val(); + if(song_id.length > 0) { + socket.emit('fetchgeniussong', song_id) + } else { + $("p:contains('* All input fields with an *, are optional')").text('Enter a Genius song ID!
') + } + }); + + $(document).on('click', '#fetchgeniusalbum', function() { + let album_id = $(this).parent().siblings("input").val(); + if(album_id.length > 0) { + socket.emit("fetchgeniusalbum", album_id) + } else { + $("p:contains('* All input fields with an *, are optional')").text('Enter a Genius song ID!
') } }); @@ -836,11 +1059,10 @@ $(document).ready(function() { let link = $(this).find('.youtubelink').attr('href'); socket.emit('ytdl_search', link); $("#defaultview").children('ul').remove(); - let spinner = '