MultiDown 0.1.0__tar.gz → 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of MultiDown might be problematic. Click here for more details.
- multidown-0.2.0/LICENSE +14 -0
- {multidown-0.1.0 → multidown-0.2.0}/MultiDown/__main__.py +7 -2
- multidown-0.2.0/MultiDown/downloader.py +44 -0
- multidown-0.2.0/MultiDown/static/index.html +56 -0
- multidown-0.2.0/MultiDown/webapp.py +45 -0
- {multidown-0.1.0 → multidown-0.2.0/MultiDown.egg-info}/PKG-INFO +1 -1
- {multidown-0.1.0/MultiDown.egg-info → multidown-0.2.0}/PKG-INFO +1 -1
- multidown-0.2.0/README.md +23 -0
- {multidown-0.1.0 → multidown-0.2.0}/setup.py +1 -1
- multidown-0.1.0/LICENSE +0 -21
- multidown-0.1.0/MultiDown/downloader.py +0 -25
- multidown-0.1.0/MultiDown/static/index.html +0 -63
- multidown-0.1.0/MultiDown/webapp.py +0 -25
- multidown-0.1.0/README.md +0 -27
- {multidown-0.1.0 → multidown-0.2.0}/MANIFEST.in +0 -0
- {multidown-0.1.0 → multidown-0.2.0}/MultiDown/__init__.py +0 -0
- {multidown-0.1.0 → multidown-0.2.0}/MultiDown.egg-info/SOURCES.txt +0 -0
- {multidown-0.1.0 → multidown-0.2.0}/MultiDown.egg-info/dependency_links.txt +0 -0
- {multidown-0.1.0 → multidown-0.2.0}/MultiDown.egg-info/entry_points.txt +0 -0
- {multidown-0.1.0 → multidown-0.2.0}/MultiDown.egg-info/requires.txt +0 -0
- {multidown-0.1.0 → multidown-0.2.0}/MultiDown.egg-info/top_level.txt +0 -0
- {multidown-0.1.0 → multidown-0.2.0}/setup.cfg +0 -0
multidown-0.2.0/LICENSE
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Copyright (c) 2025 Bismoy Ghosh
|
|
2
|
+
|
|
3
|
+
All rights reserved.
|
|
4
|
+
|
|
5
|
+
This software and its associated files are the proprietary property of Bismoy Ghosh. Unauthorized copying, modification, distribution, use, or reverse engineering of any part of this software, in any form, is strictly prohibited.
|
|
6
|
+
|
|
7
|
+
Only the original author, Bismoy Ghosh, is permitted to:
|
|
8
|
+
- Copy, modify, or distribute the software
|
|
9
|
+
- Use it for any purpose, including commercial, academic, or personal
|
|
10
|
+
|
|
11
|
+
No license or permission is granted to any other individual or entity. Violation of these terms may result in legal action under applicable copyright and intellectual property laws.
|
|
12
|
+
|
|
13
|
+
For licensing requests or permission, contact:
|
|
14
|
+
bishoyghosh@gmail.com
|
|
@@ -11,9 +11,14 @@ banner = """[bold cyan]
|
|
|
11
11
|
╚═╝ ╚══╝╚══╝ ╚═╝ ╚═══╝╚══════╝╚═════╝ ╚═╝
|
|
12
12
|
[/bold cyan]
|
|
13
13
|
"""
|
|
14
|
-
|
|
14
|
+
author ="""[bold cyan]
|
|
15
|
+
AUTHOR:BISMOY GHOSH
|
|
16
|
+
Thanks for using
|
|
17
|
+
[/bold cyan]
|
|
18
|
+
"""
|
|
15
19
|
def main():
|
|
16
20
|
print(banner)
|
|
21
|
+
print(author)
|
|
17
22
|
print("[bold green]Launching local web UI...[/bold green]")
|
|
18
23
|
start_server()
|
|
19
|
-
|
|
24
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import yt_dlp
|
|
2
|
+
import os
|
|
3
|
+
|
|
4
|
+
# Set fixed download directory inside your package
|
|
5
|
+
DOWNLOAD_DIR = os.path.join(os.path.dirname(__file__), "downloads")
|
|
6
|
+
os.makedirs(DOWNLOAD_DIR, exist_ok=True)
|
|
7
|
+
|
|
8
|
+
def download_media(url, format_, quality):
|
|
9
|
+
output_template = os.path.join(DOWNLOAD_DIR, '%(title)s.%(ext)s')
|
|
10
|
+
|
|
11
|
+
# Configure yt-dlp options
|
|
12
|
+
if format_ == "mp3":
|
|
13
|
+
options = {
|
|
14
|
+
'format': 'bestaudio/best',
|
|
15
|
+
'outtmpl': output_template,
|
|
16
|
+
'postprocessors': [{
|
|
17
|
+
'key': 'FFmpegExtractAudio',
|
|
18
|
+
'preferredcodec': 'mp3',
|
|
19
|
+
'preferredquality': '192',
|
|
20
|
+
}]
|
|
21
|
+
}
|
|
22
|
+
else: # MP4 video
|
|
23
|
+
options = {
|
|
24
|
+
'format': f"bestvideo[height<={quality}]+bestaudio/best",
|
|
25
|
+
'outtmpl': output_template,
|
|
26
|
+
'merge_output_format': 'mp4',
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
try:
|
|
30
|
+
with yt_dlp.YoutubeDL(options) as ydl:
|
|
31
|
+
info = ydl.extract_info(url, download=True)
|
|
32
|
+
filename = ydl.prepare_filename(info)
|
|
33
|
+
|
|
34
|
+
# If MP3, replace extension
|
|
35
|
+
if format_ == "mp3":
|
|
36
|
+
filename = os.path.splitext(filename)[0] + ".mp3"
|
|
37
|
+
elif format_ == "mp4":
|
|
38
|
+
filename = os.path.splitext(filename)[0] + ".mp4"
|
|
39
|
+
|
|
40
|
+
return filename # Full path to the file
|
|
41
|
+
|
|
42
|
+
except Exception as e:
|
|
43
|
+
print(f"❌ Error downloading media: {e}")
|
|
44
|
+
return None
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title> Video Downloader </title>
|
|
5
|
+
<style>
|
|
6
|
+
body {
|
|
7
|
+
font-family: Arial, sans-serif;
|
|
8
|
+
text-align: center;
|
|
9
|
+
background: linear-gradient(to right, #1f1c2c, #928dab);
|
|
10
|
+
color: white;
|
|
11
|
+
margin: 0;
|
|
12
|
+
padding: 40px;
|
|
13
|
+
}
|
|
14
|
+
h1 { font-size: 3em; margin-bottom: 0.5em; }
|
|
15
|
+
form {
|
|
16
|
+
background: #2c2c54;
|
|
17
|
+
padding: 20px;
|
|
18
|
+
border-radius: 12px;
|
|
19
|
+
display: inline-block;
|
|
20
|
+
}
|
|
21
|
+
input, select, button {
|
|
22
|
+
margin: 8px;
|
|
23
|
+
padding: 10px;
|
|
24
|
+
font-size: 1em;
|
|
25
|
+
border: none;
|
|
26
|
+
border-radius: 6px;
|
|
27
|
+
}
|
|
28
|
+
button {
|
|
29
|
+
background: #00a8ff;
|
|
30
|
+
color: white;
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
}
|
|
33
|
+
button:hover {
|
|
34
|
+
background: #0097e6;
|
|
35
|
+
}
|
|
36
|
+
</style>
|
|
37
|
+
</head>
|
|
38
|
+
<body>
|
|
39
|
+
<h1>🎥 DOWNLOADER</h1>
|
|
40
|
+
<p>Enter a video URL to download MP4 or MP3</p>
|
|
41
|
+
<form method="post" action="/download">
|
|
42
|
+
<input name="url" placeholder="Video URL" required><br>
|
|
43
|
+
<select name="format">
|
|
44
|
+
<option value="mp4">MP4</option>
|
|
45
|
+
<option value="mp3">MP3</option>
|
|
46
|
+
</select>
|
|
47
|
+
<select name="quality">
|
|
48
|
+
<option value="1080">1080p</option>
|
|
49
|
+
<option value="720">720p</option>
|
|
50
|
+
<option value="480">480p</option>
|
|
51
|
+
<option value="360">360p</option>
|
|
52
|
+
</select><br>
|
|
53
|
+
<button type="submit">Download</button>
|
|
54
|
+
</form>
|
|
55
|
+
</body>
|
|
56
|
+
</html>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import threading
|
|
2
|
+
import webbrowser
|
|
3
|
+
import os
|
|
4
|
+
import time
|
|
5
|
+
from flask import Flask, request, render_template_string, send_file
|
|
6
|
+
from .downloader import download_media
|
|
7
|
+
|
|
8
|
+
app = Flask(__name__)
|
|
9
|
+
|
|
10
|
+
# Load HTML from static/index.html
|
|
11
|
+
with open(__file__.replace("webapp.py", "static/index.html")) as f:
|
|
12
|
+
HTML_TEMPLATE = f.read()
|
|
13
|
+
|
|
14
|
+
@app.route('/')
|
|
15
|
+
def index():
|
|
16
|
+
return render_template_string(HTML_TEMPLATE)
|
|
17
|
+
|
|
18
|
+
@app.route('/download', methods=['POST'])
|
|
19
|
+
def download():
|
|
20
|
+
url = request.form.get('url')
|
|
21
|
+
format_ = request.form.get('format')
|
|
22
|
+
quality = request.form.get('quality', '720')
|
|
23
|
+
|
|
24
|
+
file_path = download_media(url, format_, quality)
|
|
25
|
+
|
|
26
|
+
if file_path and os.path.exists(file_path):
|
|
27
|
+
def delayed_delete(path):
|
|
28
|
+
# Wait a few seconds to ensure browser finishes download
|
|
29
|
+
time.sleep(10)
|
|
30
|
+
try:
|
|
31
|
+
os.remove(path)
|
|
32
|
+
print(f"✅ Deleted file: {path}")
|
|
33
|
+
except Exception as e:
|
|
34
|
+
print(f"❌ Error deleting file: {e}")
|
|
35
|
+
|
|
36
|
+
# Schedule deletion in background
|
|
37
|
+
threading.Thread(target=delayed_delete, args=(file_path,), daemon=True).start()
|
|
38
|
+
|
|
39
|
+
return send_file(file_path, as_attachment=True, conditional=True)
|
|
40
|
+
|
|
41
|
+
return "<pre>❌ Failed to download the media. Check the link or format.</pre>"
|
|
42
|
+
|
|
43
|
+
def start_server():
|
|
44
|
+
threading.Thread(target=lambda: app.run(port=8000)).start()
|
|
45
|
+
webbrowser.open("http://localhost:8000")
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# MultiDown
|
|
2
|
+
|
|
3
|
+
MultiDown is a cross-platform Python package that launches a local web interface to download YouTube and other supported videos as MP4 or MP3 using `yt-dlp` and `ffmpeg`. It is lightweight, terminal-based, and self-hosted — perfect for offline or private use.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- ✅ Download videos as **MP4** (up to your preferred resolution)
|
|
10
|
+
- ✅ Extract and download audio as **MP3**
|
|
11
|
+
- ✅ Clean, responsive web interface (runs on port 8000)
|
|
12
|
+
- ✅ Browser-based UI + terminal launch with colorful banner
|
|
13
|
+
- ✅ Automatic cleanup after download
|
|
14
|
+
- ✅ Works in Linux, Termux, Windows, macOS
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Installation
|
|
19
|
+
|
|
20
|
+
Install using `pip`:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
pip install MultiDown
|
multidown-0.1.0/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Bismoy Ghosh
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import yt_dlp
|
|
2
|
-
import ffmpeg
|
|
3
|
-
|
|
4
|
-
def download_media(url, format_, quality):
|
|
5
|
-
options = {}
|
|
6
|
-
if format_ == "mp3":
|
|
7
|
-
options = {
|
|
8
|
-
'format': 'bestaudio/best',
|
|
9
|
-
'postprocessors': [{
|
|
10
|
-
'key': 'FFmpegExtractAudio',
|
|
11
|
-
'preferredcodec': 'mp3',
|
|
12
|
-
'preferredquality': '192',
|
|
13
|
-
}]
|
|
14
|
-
}
|
|
15
|
-
else:
|
|
16
|
-
options = {
|
|
17
|
-
'format': f"bestvideo[height<={quality}]+bestaudio/best",
|
|
18
|
-
'outtmpl': '%(title)s.%(ext)s'
|
|
19
|
-
}
|
|
20
|
-
try:
|
|
21
|
-
with yt_dlp.YoutubeDL(options) as ydl:
|
|
22
|
-
ydl.download([url])
|
|
23
|
-
return "✅ Download completed."
|
|
24
|
-
except Exception as e:
|
|
25
|
-
return f"❌ Error: {str(e)}"
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<title>Video Downloader</title>
|
|
5
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css">
|
|
6
|
-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
|
|
7
|
-
<style>
|
|
8
|
-
body {
|
|
9
|
-
background: linear-gradient(135deg, #1f1c2c, #928dab);
|
|
10
|
-
color: white;
|
|
11
|
-
text-align: center;
|
|
12
|
-
padding-top: 50px;
|
|
13
|
-
}
|
|
14
|
-
.container {
|
|
15
|
-
max-width: 500px;
|
|
16
|
-
background: rgba(0, 0, 0, 0.7);
|
|
17
|
-
padding: 20px;
|
|
18
|
-
border-radius: 10px;
|
|
19
|
-
box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2);
|
|
20
|
-
}
|
|
21
|
-
input, select {
|
|
22
|
-
margin-top: 10px;
|
|
23
|
-
width: 100%;
|
|
24
|
-
padding: 10px;
|
|
25
|
-
border-radius: 5px;
|
|
26
|
-
border: none;
|
|
27
|
-
}
|
|
28
|
-
button {
|
|
29
|
-
margin-top: 15px;
|
|
30
|
-
background: #ff4081;
|
|
31
|
-
color: white;
|
|
32
|
-
padding: 10px;
|
|
33
|
-
border: none;
|
|
34
|
-
width: 100%;
|
|
35
|
-
font-size: 18px;
|
|
36
|
-
cursor: pointer;
|
|
37
|
-
}
|
|
38
|
-
button:hover {
|
|
39
|
-
background: #ff79b0;
|
|
40
|
-
}
|
|
41
|
-
</style>
|
|
42
|
-
</head>
|
|
43
|
-
<body>
|
|
44
|
-
<div class="container">
|
|
45
|
-
<h2><i class="fas fa-download"></i> Video Downloader</h2>
|
|
46
|
-
<form method="POST">
|
|
47
|
-
<label>Enter Video Link:</label>
|
|
48
|
-
<input type="text" name="url" placeholder="Paste video link here..." required>
|
|
49
|
-
|
|
50
|
-
<label>Select Format:</label>
|
|
51
|
-
<select name="format">
|
|
52
|
-
<option value="mp3">MP3 (Audio Only)</option>
|
|
53
|
-
<option value="144">MP4 (144p)</option>
|
|
54
|
-
<option value="360">MP4 (360p)</option>
|
|
55
|
-
<option value="720">MP4 (720p)</option>
|
|
56
|
-
<option value="1080">MP4 (1080p)</option>
|
|
57
|
-
</select>
|
|
58
|
-
|
|
59
|
-
<button type="submit"><i class="fas fa-download"></i> Download</button>
|
|
60
|
-
</form>
|
|
61
|
-
</div>
|
|
62
|
-
</body>
|
|
63
|
-
</html>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import threading
|
|
2
|
-
import webbrowser
|
|
3
|
-
from flask import Flask, request, render_template_string
|
|
4
|
-
from .downloader import download_media
|
|
5
|
-
|
|
6
|
-
app = Flask(__name__)
|
|
7
|
-
|
|
8
|
-
with open(__file__.replace("webapp.py", "static/index.html")) as f:
|
|
9
|
-
HTML_TEMPLATE = f.read()
|
|
10
|
-
|
|
11
|
-
@app.route('/')
|
|
12
|
-
def index():
|
|
13
|
-
return render_template_string(HTML_TEMPLATE)
|
|
14
|
-
|
|
15
|
-
@app.route('/download', methods=['POST'])
|
|
16
|
-
def download():
|
|
17
|
-
url = request.form['url']
|
|
18
|
-
format_ = request.form['format']
|
|
19
|
-
quality = request.form['quality']
|
|
20
|
-
result = download_media(url, format_, quality)
|
|
21
|
-
return f"<pre>{result}</pre>"
|
|
22
|
-
|
|
23
|
-
def start_server():
|
|
24
|
-
threading.Thread(target=lambda: app.run(port=8000)).start()
|
|
25
|
-
webbrowser.open("http://localhost:8000")
|
multidown-0.1.0/README.md
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# MultiDown
|
|
2
|
-
|
|
3
|
-
**Multiadown** is a stylish, browser-based video downloader you run from the terminal!
|
|
4
|
-
|
|
5
|
-
Download MP4 videos in multiple resolutions or extract MP3 audio — all with a beautiful local web UI.
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Features
|
|
10
|
-
|
|
11
|
-
- ✅ Terminal command: `MultiDown`
|
|
12
|
-
- Launches a local Flask web server
|
|
13
|
-
- Beautiful modern HTML UI in your browser
|
|
14
|
-
- Download from YouTube and more
|
|
15
|
-
- MP3 (audio only)
|
|
16
|
-
- MP4 (480p, 720p, 1080p, etc.)
|
|
17
|
-
- Uses `yt-dlp` and `ffmpeg` behind the scenes
|
|
18
|
-
- Colorized CLI banner
|
|
19
|
-
-
|
|
20
|
-
- Works on Termux, Linux, Windows, macOS, Kali — everywhere!
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## Installation
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
pip install MultiDown
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|