Commit b7081c38 authored by jan.koester's avatar jan.koester
Browse files

tes

parent 93608b2b
Loading
Loading
Loading
Loading
+9 −0
Changes for plugins/media/media.cpp: 9 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -615,7 +615,14 @@ namespace blogi {
                mediadb::MediaInfo mi;
                try {
                    mi = _mdb[tid]->get_media(mediaId);
                } catch(std::exception &e) {
                    std::cerr << "media: get_media failed for " << mediaId << ": " << e.what() << std::endl;
                    libhttppp::HttpResponse curres;
                    curres.setState(HTTP404);
                    curres.send(req,"",0);
                    return true;
                } catch(...) {
                    std::cerr << "media: get_media failed for " << mediaId << ": unknown error" << std::endl;
                    libhttppp::HttpResponse curres;
                    curres.setState(HTTP404);
                    curres.send(req,"",0);
@@ -949,8 +956,10 @@ namespace blogi {
            if(!_mdb[tid]){
                _mdb[tid] = std::make_unique<mediadb::Client>(_mdbUrl, false, true);
            }
            if(!token.empty()){
                _mdb[tid]->set_token(token);
            }
        }

        std::string _getStoreId(int tid){
            if(!_mdbStoreId.empty())