aag / apple_trailer_downloader

A script to download HD trailers from the Apple Trailers website.
GNU General Public License v3.0
23 stars 5 forks source link

Consider "Trailer 1" as a "single trailer" #16

Closed forthrin closed 5 years ago

forthrin commented 5 years ago

The new Star Wars trailer wasn't downloaded as a single trailer because it's called "Trailer 1" rather than the regular "Trailer". The following patch should resolve the issue.

diff --git a/download_trailers.py b/download_trailers.py
index 75ca284..0ac6342
--- a/download_trailers.py
+++ b/download_trailers.py
@@ -117,3 +119,3 @@ def should_download_file(requested_types, video_type):
     elif requested_types == 'single_trailer':
-        do_download = (video_type == 'trailer')
+        do_download = (video_type == 'trailer' or video_type == "trailer 1")
aag commented 5 years ago

Thanks for the bug report. It should be fixed in the newest version.