AlexCSDev / UniversalDownloaderPlatform

Universal Downloader Platform is a c# library designed to make it easy to create custom downloaders for various websites
MIT License
8 stars 6 forks source link

Add download directory pattern and better support for Google Document #6

Closed JDR-Ninja closed 3 years ago

JDR-Ninja commented 3 years ago

Pass IUniversalDownloaderPlatformSettings for add feature (download directory pattern) Fix the Download of Zero length file for Google Document file.

AlexCSDev commented 3 years ago

Ok, while working on this I've got a question - why have you decided to default files without extensions to pdf in google drive plugin?

AlexCSDev commented 3 years ago

Alright, I think I get why you did that. Let's hope that refactored code works correctly

JDR-Ninja commented 3 years ago

Ok, while working on this I've got a question - why have you decided to default files without extensions to pdf in google drive plugin?

At first I tried text/plain, but lost all the images in the document. I thought to myself that PDF was more universal than DOCX. I couldn't figure out how to tell if the document was a text file or something else.

Example here: https://drive.google.com/drive/folders/1bW74ZMIgNRIw4CDxGEhN_Bil3kVxdIJo The Google Document "DUNGEON OF THE FLEXING PRINCE" have no extension, no size. But when open it's full of text and image. Maybe it's because it's a share and it's not added to my Drive.