From a8b00c4561dc311e6c5742333e2904aeb39a61c8 Mon Sep 17 00:00:00 2001 From: mahan Date: Wed, 23 Aug 2023 11:49:22 +0330 Subject: [PATCH] Added copyright and author in all .go files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Inserted copyright info and author link at the start of all .go files in main and all src subdirectories to acknowledge author’s work and indicate the project’s copyright status to protect it from unpermitted use. This standard practice contributes to transparency and prepares the project for further open-source collaboration. --- README.md | 47 ++++++++++++++++++++++++++++++++++++-- main.go | 3 +++ src/constants.go | 9 +++++--- src/downloader.go | 3 +++ src/spotify_auth.go | 3 +++ src/start.go | 3 +++ src/utils/generic_utils.go | 3 +++ src/utils/tagger.go | 3 +++ src/youtube.go | 3 +++ 9 files changed, 72 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 9cff105..aa277a5 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,45 @@ -# md_spotify_dl -دانلودر اسپاتیفای بدون فیلتر و تحریم +

Md Spotify Downloader

+

A Music Downloader for Spotify Written In Pure Go

+ +Md Spotify Downloader is a spotify media downloader. + +It uses Youtube as the audio source and Spotify API for playlist/album/track details. + +--- + +### To download the latest version, please go to the [Releases](https://github.com/mdpe-ir/md_spotify_dl/releases). + +--- + + +#### Make sure you have golang, ffmpeg installed. + +The library requires **libav** components to work: + +- **libavformat** +- **libavcodec** +- **libavutil** +- **libswresample** +- **libswscale** + +For **Arch**-based **Linux** distributions: + +```bash +sudo pacman -S ffmpeg +``` + +For **Debian**-based **Linux** distributions: + +```bash +sudo add-apt-repository ppa:savoury1/ffmpeg4 +sudo apt install libswscale-dev libavcodec-dev libavformat-dev libswresample-dev libavutil-dev +``` + +For **macOS**: + +```bash +brew install ffmpeg +``` + +For **Windows** see the [detailed tutorial](https://windowsloop.com/install-ffmpeg-windows-10/). + diff --git a/main.go b/main.go index 5a00479..d5bd3f4 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,6 @@ +// Author: https://github.com/mdpe-ir +// Copyright (c) 2023 + package main import ( diff --git a/src/constants.go b/src/constants.go index 79c6770..171ce41 100644 --- a/src/constants.go +++ b/src/constants.go @@ -1,9 +1,12 @@ +// Author: https://github.com/mdpe-ir +// Copyright (c) 2023 + package md_spotify_dl const ( AppName = "Md Spotify Downloader" AppUse = "md_spotify_dl" - AppVersion = "0.0.1" - AppShortDescription = AppName + " is a awesome music downloader that work without VPN" - AppLongDescription = AppName + " is a awesome music downloader that work without VPN" + AppVersion = "0.0.2" + AppShortDescription = AppName + " is a awesome music downloader" + AppLongDescription = AppName + " is a awesome music downloader" ) diff --git a/src/downloader.go b/src/downloader.go index ac544a1..8b32762 100644 --- a/src/downloader.go +++ b/src/downloader.go @@ -1,3 +1,6 @@ +// Author: https://github.com/mdpe-ir +// Copyright (c) 2023 + package md_spotify_dl import ( diff --git a/src/spotify_auth.go b/src/spotify_auth.go index 318f155..200fb01 100644 --- a/src/spotify_auth.go +++ b/src/spotify_auth.go @@ -1,3 +1,6 @@ +// Author: https://github.com/mdpe-ir +// Copyright (c) 2023 + package md_spotify_dl import ( diff --git a/src/start.go b/src/start.go index ddcdb73..0f31f93 100644 --- a/src/start.go +++ b/src/start.go @@ -1,3 +1,6 @@ +// Author: https://github.com/mdpe-ir +// Copyright (c) 2023 + package md_spotify_dl import ( diff --git a/src/utils/generic_utils.go b/src/utils/generic_utils.go index cf56be8..daacab5 100644 --- a/src/utils/generic_utils.go +++ b/src/utils/generic_utils.go @@ -1,3 +1,6 @@ +// Author: https://github.com/mdpe-ir +// Copyright (c) 2023 + package utils import ( diff --git a/src/utils/tagger.go b/src/utils/tagger.go index 5ca8ae2..7b30616 100644 --- a/src/utils/tagger.go +++ b/src/utils/tagger.go @@ -1,3 +1,6 @@ +// Author: https://github.com/mdpe-ir +// Copyright (c) 2023 + package utils import ( diff --git a/src/youtube.go b/src/youtube.go index 1520389..63e6283 100644 --- a/src/youtube.go +++ b/src/youtube.go @@ -1,3 +1,6 @@ +// Author: https://github.com/mdpe-ir +// Copyright (c) 2023 + package md_spotify_dl import (