Commit e5a78c5d authored by Paweł Wegner's avatar Paweł Wegner
Browse files

GoogleDrive: fixed mimetypes.

parent 43fde8b9
......@@ -25,7 +25,6 @@
#include <jsoncpp/json/json.h>
#include <algorithm>
#include <iostream>
#include <sstream>
#include "Utility/HttpRequest.h"
......@@ -130,14 +129,8 @@ bool GoogleDrive::isGoogleMimeType(const std::string& mime_type) const {
IItem::FileType GoogleDrive::toFileType(const std::string& mime_type) const {
if (mime_type == "application/")
return IItem::FileType::Directory;
else if (mime_type == "application/")
return IItem::FileType::Audio;
else if (mime_type == "application/")
return IItem::FileType::Video;
else if (mime_type == "application/")
return IItem::FileType::Image;
return IItem::FileType::Unknown;
return Item::fromMimeType(mime_type);
IItem::Pointer GoogleDrive::toItem(const Json::Value& v) const {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment