nang-dev / automated_youtube_channel

Automated youtube that can scrape content, edit a compilation, and upload to youtube daily.
MIT License
708 stars 284 forks source link

ValueError: max() arg is an empty sequence #16

Open AidanTheBandit opened 3 years ago

AidanTheBandit commented 3 years ago

I keep getting this error Total Length: 0 Traceback (most recent call last): File "c:\Users\betha\Downloads\automated_youtube_channel-master\automated_youtube_channel-master\main.py", line 146, in attemptRoutine() File "c:\Users\betha\Downloads\automated_youtube_channel-master\automated_youtube_channel-master\main.py", line 137, in attemptRoutine routine() File "c:\Users\betha\Downloads\automated_youtube_channel-master\automated_youtube_channel-master\main.py", line 102, in routine makeCompilation(path = videoDirectory, File "c:\Users\betha\Downloads\automated_youtube_channel-master\automated_youtube_channel-master\make_compilation.py", line 94, in makeCompilation finalClip = concatenate_videoclips(videos, method="compose") File "C:\Users\betha\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\moviepy\video\compositing\concatenate.py", line 75, in concatenate_videoclips w = max(r[0] for r in sizes) ValueError: max() arg is an empty sequence PS C:\Users\betha\Downloads\automated_youtube_channel-master>

AidanTheBandit commented 3 years ago

No:(

nang-dev commented 3 years ago

This means that there's no videos in the path that you pass to makeCompilation. Check that you are downloading to the right folder (so after you download the videos, if should be in a path, like "./videos"). If there are videos that are within the minimum and maximum time requirements in make_compilation.py, this should fix this issue.

tarun0206 commented 2 years ago

Check whether the folder name is correct or not, this error comes when movie.py is not able to find any files in the given file path.

Astolfo-USBPico commented 2 years ago

This means that there's no videos in the path that you pass to makeCompilation. Check that you are downloading to the right folder (so after you download the videos, if should be in a path, like "./videos"). If there are videos that are within the minimum and maximum time requirements in make_compilation.py, this should fix this issue.

I NEED YOUR HELP PLEASE NATHAN! so i get that error but also i get this error when scraping skipped "theinstauser" because of "graphql" LIKE TF IS GRAPHQL HELPPPPPP MEEEEEEEEEEEEEEEEEEEEEEEE