diff --git a/README.md b/README.md index 9e96c1b..4b36381 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,15 @@ Petit applicatif pour télécharger depuis des url Spotify à l'aide de Youtube-music (flac ou mp3) backend: spotdl, sacad, falsk, flask-login -Run: +## Run: install requiments python: ``` pip install -r requirements.txt ``` +Init db sqlite: +``` +python3 app.py & ctrl+c +``` ``` python3 app.py diff --git a/app.py b/app.py index 1a82e1e..2325b7c 100644 --- a/app.py +++ b/app.py @@ -96,6 +96,9 @@ def create_admin(): def validate_spotify_url(url): patterns = [ + r'https?://open\.spotify\.com/[^/]+/track/[\w-]+', + r'https?://open\.spotify\.com/[^/]+/album/[\w-]+', + r'https?://open\.spotify\.com/[^/]+/playlist/[\w-]+', r'https?://open\.spotify\.com/track/[\w-]+', r'https?://open\.spotify\.com/album/[\w-]+', r'https?://open\.spotify\.com/playlist/[\w-]+', diff --git a/index.html b/index.html new file mode 100644 index 0000000..30ded88 --- /dev/null +++ b/index.html @@ -0,0 +1,299 @@ +{% extends "layout.html" %} + +{% block title %}Télécharger - Spotify Downloader{% endblock %} + +{% block content %} +