1
1
mirror of https://github.com/neosubhamoy/pytubepp.git synced 2026-02-04 18:22:23 +05:30

5 Commits

5 changed files with 14 additions and 13 deletions

View File

@@ -23,7 +23,6 @@ jobs:
- name: 📦 Install dependencies - name: 📦 Install dependencies
run: | run: |
pip install -r requirements.txt pip install -r requirements.txt
pip install wheel twine
- name: 🛠️ Build package - name: 🛠️ Build package
run: python3 setup.py sdist bdist_wheel run: python3 setup.py sdist bdist_wheel

View File

@@ -3,7 +3,7 @@
### A Simple CLI Tool to Download Your Favourite YouTube Videos Effortlessly! ### A Simple CLI Tool to Download Your Favourite YouTube Videos Effortlessly!
[![status](https://img.shields.io/badge/status-active-brightgreen.svg?style=flat)](https://github.com/neosubhamoy/pytubepp/) [![status](https://img.shields.io/badge/status-active-brightgreen.svg?style=flat)](https://github.com/neosubhamoy/pytubepp/)
[![verion](https://img.shields.io/badge/version-v1.0.1_stable-yellow.svg?style=flat)](https://github.com/neosubhamoy/pytubepp/) [![verion](https://img.shields.io/badge/version-v1.0.2_stable-yellow.svg?style=flat)](https://github.com/neosubhamoy/pytubepp/)
[![python](https://img.shields.io/badge/python-v3.12.x-blue?logo=python&style=flat)](https://www.python.org/downloads/) [![python](https://img.shields.io/badge/python-v3.12.x-blue?logo=python&style=flat)](https://www.python.org/downloads/)
[![builds](https://img.shields.io/badge/builds-passing-brightgreen.svg?style=flat)](https://github.com/neosubhamoy/pytubepp/) [![builds](https://img.shields.io/badge/builds-passing-brightgreen.svg?style=flat)](https://github.com/neosubhamoy/pytubepp/)
[![PRs](https://img.shields.io/badge/PRs-welcome-blue.svg?style=flat)](https://github.com/neosubhamoy/pytubepp/) [![PRs](https://img.shields.io/badge/PRs-welcome-blue.svg?style=flat)](https://github.com/neosubhamoy/pytubepp/)
@@ -16,7 +16,7 @@
* Highly Configurable and Many More 😉 * Highly Configurable and Many More 😉
### **🧩 Dependencies** ### **🧩 Dependencies**
* [pytube](https://pypi.org/project/pytube/) * [pytubefix](https://pypi.org/project/pytubefix/)
* [FFmpeg (Not Pre-Included)](https://ffmpeg.org/) * [FFmpeg (Not Pre-Included)](https://ffmpeg.org/)
* [ffmpy](https://pypi.org/project/ffmpy/) * [ffmpy](https://pypi.org/project/ffmpy/)
* [mutagen](https://pypi.org/project/mutagen/) * [mutagen](https://pypi.org/project/mutagen/)

View File

@@ -1,4 +1,4 @@
from pytube import YouTube from pytubefix import YouTube
from mutagen.id3 import ID3, APIC, TIT2, TPE1, TALB from mutagen.id3 import ID3, APIC, TIT2, TPE1, TALB
from tabulate import tabulate from tabulate import tabulate
from tqdm import tqdm from tqdm import tqdm
@@ -351,15 +351,15 @@ def download_stream(link, chosen_stream):
print_short_info(chosen_stream) print_short_info(chosen_stream)
allowed_streams = get_allowed_streams(link) allowed_streams = get_allowed_streams(link)
if chosen_stream in allowed_streams: if chosen_stream in allowed_streams:
if chosen_stream in ['720', '720p', 'hd']: if chosen_stream in ['360', '360p']:
download_progressive(stream, 22, title, '720p', 'mp4')
elif chosen_stream in ['360', '360p']:
download_progressive(stream, 18, title, '360p', 'mp4') download_progressive(stream, 18, title, '360p', 'mp4')
elif chosen_stream in ['1080', '1080p', 'fhd']: elif chosen_stream in ['1080', '1080p', 'fhd']:
merge_audio_video(title, '1080p', 'mp4', download_nonprogressive(stream, 137, 140, 'mp4', tempDIR)) merge_audio_video(title, '1080p', 'mp4', download_nonprogressive(stream, 137, 140, 'mp4', tempDIR))
elif chosen_stream in ['720', '720p', 'hd']:
merge_audio_video(title, '720p', 'mp4', download_nonprogressive(stream, 136, 140, 'mp4', tempDIR))
elif chosen_stream in ['480', '480p']: elif chosen_stream in ['480', '480p']:
merge_audio_video(title, '480p', 'mp4', download_nonprogressive(stream, 135, 140, 'mp4', tempDIR)) merge_audio_video(title, '480p', 'mp4', download_nonprogressive(stream, 135, 140, 'mp4', tempDIR))

View File

@@ -1,4 +1,4 @@
pytube pytubefix
requests requests
ffmpy ffmpy
mutagen mutagen
@@ -6,3 +6,5 @@ tabulate
tqdm tqdm
appdirs appdirs
setuptools setuptools
wheel
twine

View File

@@ -6,7 +6,7 @@ with open('README.md', 'r', encoding='utf8') as file:
setup( setup(
name='pytubepp', name='pytubepp',
version='1.0.1', version='1.0.2',
description='A Simple CLI Tool to Download Your Favorite YouTube Videos Effortlessly!', description='A Simple CLI Tool to Download Your Favorite YouTube Videos Effortlessly!',
long_description=readme, long_description=readme,
long_description_content_type='text/markdown', long_description_content_type='text/markdown',
@@ -22,7 +22,7 @@ setup(
], ],
}, },
install_requires=[ install_requires=[
'pytube', 'pytubefix',
'requests', 'requests',
'ffmpy', 'ffmpy',
'mutagen', 'mutagen',