Copy Error
Ubuntu 16.04 Python 2.7.12
I followed the README and get this error.
[youtube] HwT879-4Wjs: Extracting video information
[download] Destination: /home/darkalchemy/src/TheaterTrailers/Trailers/The New Mutants (2019)/The New Mutants (2019).mp4
[download] 100% of 9.26MiB in 00:01
Traceback (most recent call last):
File "theaterTrailers.py", line 464, in
/media/Trailers/ does exist and is empty
Thanks
Same configuration as above and same error message. Not sure what I've missed.
It appears the copy2 isn't creating the folders in the path as expected. So, until the issue is fixed, I changed the TrailerLocation path to empty so that it stays in the download location. Then I created a bash script to rsync them into my media dir. I run the bash script from cron daily.
Thanks for the suggestion. They downloaded to the local folder just fine when I left the path empty. I haven't got as far as automating anything yet.
@darkalchemy
What is the full path of the location that the script is running in? What is the full path of the location that you are dropping trailers to?
/home/darkalchemy/src/TheaterTrailers/
/media/Trailers/
But, the destination path does not matter. It simply does not create the new folder during the copy phase.
2 questions on this:
- Has it been fixed?
- Whats the format of the location for Windows machines? i would assume something like "z:\trailers\ or similar?
I have the same issue even with the location setting blank. Though with the setting blank, it downloaded a few trailers properly, then got stuck on Happy Death Day 2U. Also, it seems to be downloading the trailers it did get twice. One file has the name of the movie, and another has the name of the movie plus a "-trailer" appendation.
youtube] THq6KlWgiqw: Downloading webpage
[youtube] THq6KlWgiqw: Downloading video info webpage
[download] Destination: /Users/matt/Builds/PlexTheaterTrailers/Trailers/Happy Death Day 2U (2019)/Happy Death Day 2U (2019).mp4
[download] 0.6% of 10.83MiB at 285.45KiB/s ETA 00:38ERROR: giving up after 0 retries
Traceback (most recent call last):
File "./theaterTrailers.py", line 464, in
@desepticon I believe that the cache thinks there is a file there that does not exist. I would first attempt to delete the cache and rerun the script
the cache is a json file in the folder Cache
The first time I reran it after deleting the cache I got this error:
2019-02-26 01:44:35,302 - WARNING - Glass Comic-Con is missing its release date
Traceback (most recent call last):
File "./theaterTrailers.py", line 464, in
I ran it again though, and it worked. However, but I'm still getting two trailers. One has a "-trailer" appendation to the filename.
The copy and download issue fixed by changing Line : 301 from: 'format': 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best', to 'format': 'bestvideo[ext=mp4]',
This fixed my download and copy issue i faced with the script