elmoiv / redvid

Smart downloader for Reddit hosted videos
GNU General Public License v3.0
109 stars 15 forks source link

When choosing PATH the video will not be saved in the choosen path unless it already exists. #20

Closed JacoboGuijar closed 3 years ago

JacoboGuijar commented 3 years ago

Describe the bug When selecting a path where the video will be downloaded to it saves it in the parent folder if the selected folder does not exist.

To Reproduce

reddit = Downloader(max_q = True) 
reddit.log = False
reddit.path = 'C:\\Users\\MyUser\\Desktop\\bot\\NonExistentFolder\\'
reddit.url = 'https://www.reddit.com/r/pythonforengineers/comments/hfmo98/what_kind_of_hawk_is_this/'
reddit.download()

Expected behavior The propper way to implement the path functionality should be to create a folder in case it does not exist.

Desktop:

I know this is not super important but your library is super useful and I thought this might help with it. Also, is there a way to change the file name or get it's name once it has been downloaded?

elmoiv commented 3 years ago

Nice feature. I will be implementing it in the next update.

Yes you can get the file name by doing this:

file_name = reddit.download()
elmoiv commented 3 years ago

Added auto directory maker feature!

Just pip install redvid==1.1.3 to try it