Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add verbose parameter #23

Closed
wants to merge 1 commit into from
Closed

add verbose parameter #23

wants to merge 1 commit into from

Conversation

iaacornus
Copy link
Contributor

@iaacornus iaacornus commented Feb 4, 2022

I added a verbose parameter to show the download speed and other processes happening in download mode which can be done using -v or --verbose

[devel@fedora spongebob-cli]$ spongebob-cli -da -v
Downloading all fetched episodes : 338
Downloading episode 1
[generic] SpongeBob-SquarePants-Reef-Blower: Requesting header
[download] SpongeBob-SquarePants-Reef-Blower-SpongeBob-SquarePants-Reef-Blower.mp4 has already been downloaded
[download] 100% of 28.57MiB

Download complete!
Downloading episode 2
[generic] SpongeBob-SquarePants-Tea-at-the-Treedome: Requesting header
[download] Resuming download at byte 523264

and for single downloads :

[devel@fedora spongebob-cli]$ spongebob-cli -d 4 -v
Downloading episode 4
[generic] SpongeBob-SquarePants-Bubblestand: Requesting header
[download] SpongeBob-SquarePants-Bubblestand-SpongeBob-SquarePants-Bubblestand.mp4 has already been downloaded
[download] 100% of 77.02MiB

@iaacornus
Copy link
Contributor Author

you can make more tests and modification to a degree you see it fit. I gave it enough test to confirm that it doesn't crash other functions and else.

@trakBan
Copy link
Owner

trakBan commented Feb 5, 2022

Sorry i just saw this now, i will test it.

@trakBan
Copy link
Owner

trakBan commented Feb 5, 2022

This seems unstable. It now plays only half the videos. I dont know if this is a problem in my end or not. Today i will try to see whats the problem.

Also this isnt only an error when -p gets passed, but when you also try to play a video without arguments.

tb@trak:/home/tb/programming/spongebob-cli-testing$ python3 spongebob-cli -p 43
[ffmpeg] https: HTTP error 503 Service Unavailable
Failed to open https://www.megacartoons.net/video/SpongeBob-SquarePants-Squids-Day-Off.mp4.
[ytdl_hook] ERROR: Unable to download webpage: HTTP Error 503: Service Unavailable (caused by <HTTPError 503: 'Service Unavailable'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. 
[ytdl_hook] youtube-dl failed: unexpected error occurred 

@trakBan trakBan closed this Feb 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants