diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/RedditRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/RedditRipper.java index 20d31d78..172250e3 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/RedditRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/RedditRipper.java @@ -249,7 +249,10 @@ public class RedditRipper extends AlbumRipper { if (url.contains("v.redd.it")) { String savePath = this.workingDir + File.separator; savePath += id + "-" + url.split("/")[3] + title + ".mp4"; - addURLToDownload(parseRedditVideoMPD(urls.get(0).toExternalForm()), new File(savePath)); + URL urlToDownload = parseRedditVideoMPD(urls.get(0).toExternalForm()); + if (urlToDownload != null) { + addURLToDownload(urlToDownload, new File(savePath)); + } } else { addURLToDownload(urls.get(0), id + title, "", theUrl, null);