mirror of
https://github.com/neosubhamoy/pytubepp.git
synced 2026-02-05 02:32:23 +05:30
Compare commits
5 Commits
v1.0.1-sta
...
v1.0.2-sta
1
.github/workflows/publish.yml
vendored
1
.github/workflows/publish.yml
vendored
@@ -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
|
||||||
|
|||||||
@@ -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!
|
||||||
|
|
||||||
[](https://github.com/neosubhamoy/pytubepp/)
|
[](https://github.com/neosubhamoy/pytubepp/)
|
||||||
[](https://github.com/neosubhamoy/pytubepp/)
|
[](https://github.com/neosubhamoy/pytubepp/)
|
||||||
[](https://www.python.org/downloads/)
|
[](https://www.python.org/downloads/)
|
||||||
[](https://github.com/neosubhamoy/pytubepp/)
|
[](https://github.com/neosubhamoy/pytubepp/)
|
||||||
[](https://github.com/neosubhamoy/pytubepp/)
|
[](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/)
|
||||||
|
|||||||
@@ -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))
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
4
setup.py
4
setup.py
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user