MultiDown 0.1.0__py3-none-any.whl

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/__init__.py ADDED
File without changes
MultiDown/__main__.py ADDED
@@ -0,0 +1,19 @@
1
+ from .webapp import start_server
2
+ from rich import print
3
+ import time
4
+
5
+ banner = """[bold cyan]
6
+ ██████╗ ██╗ ██╗███╗ ██╗██╗ ██████╗ ██████╗
7
+ ██╔══██╗██║ ██║████╗ ██║██║ ██╔══██╗██╔══██╗
8
+ ██████╔╝██║ █╗ ██║██╔██╗ ██║██║ ██║ ██║██████╔╝
9
+ ██╔═══╝ ██║███╗██║██║╚██╗██║██║ ██║ ██║██╔═══╝
10
+ ██║ ╚███╔███╔╝██║ ╚████║███████╗██████╔╝██║
11
+ ╚═╝ ╚══╝╚══╝ ╚═╝ ╚═══╝╚══════╝╚═════╝ ╚═╝
12
+ [/bold cyan]
13
+ """
14
+
15
+ def main():
16
+ print(banner)
17
+ print("[bold green]Launching local web UI...[/bold green]")
18
+ start_server()
19
+
@@ -0,0 +1,25 @@
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)}"
@@ -0,0 +1,63 @@
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>
MultiDown/webapp.py ADDED
@@ -0,0 +1,25 @@
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")
@@ -0,0 +1,15 @@
1
+ Metadata-Version: 2.4
2
+ Name: MultiDown
3
+ Version: 0.1.0
4
+ Summary: A stylish cross-platform video downloader with web UI
5
+ Author: Bismoy Ghosh
6
+ License-File: LICENSE
7
+ Requires-Dist: flask
8
+ Requires-Dist: yt-dlp
9
+ Requires-Dist: rich
10
+ Requires-Dist: colorama
11
+ Requires-Dist: ffmpeg-python
12
+ Dynamic: author
13
+ Dynamic: license-file
14
+ Dynamic: requires-dist
15
+ Dynamic: summary
@@ -0,0 +1,11 @@
1
+ MultiDown/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ MultiDown/__main__.py,sha256=WxH2IUJ0kIj9dMrkICiCZe-z6yMrIeHKclMs-dui4Ak,1027
3
+ MultiDown/downloader.py,sha256=RrOScatzuiQXpP4cW5uBd9VsOQ837DhYgjqTlo8vfJ0,708
4
+ MultiDown/webapp.py,sha256=dwZTg_WBPs4_KkLhbhSqcoqmhy-kzrmpmlXyD1hO6Ho,710
5
+ MultiDown/static/index.html,sha256=9I1_bJ5vINUoJBSCUgR8jltfXhjnF115Zbk3IHVC_Vs,2007
6
+ multidown-0.1.0.dist-info/licenses/LICENSE,sha256=ET1Cd2MrHa9634GIJZjJ2sromgL9hqKo4Ji8ACLBMMM,1116
7
+ multidown-0.1.0.dist-info/METADATA,sha256=xRMRLgL30pYhZC2tDNa2uG67QffLCRUtnuYnlUnM47Q,353
8
+ multidown-0.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
+ multidown-0.1.0.dist-info/entry_points.txt,sha256=_GGN2vavlMk_wuELMjMUy_IgurHtfIt0fRQqYWksuHA,54
10
+ multidown-0.1.0.dist-info/top_level.txt,sha256=-vl33JUTRxK3YW8jXXH1u1_nHIMDss_sADJStYeQ1Pk,10
11
+ multidown-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ MultiDown = MultiDown.__main__:main
@@ -0,0 +1,21 @@
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.
@@ -0,0 +1 @@
1
+ MultiDown