Examples of MediaPost


Examples of net.easymodo.asagi.model.MediaPost

    protected class ThumbFetcher implements Runnable {
        @Override
        @SuppressWarnings("InfiniteLoopStatement")
        public void run() {
            while(true) {
                MediaPost mediaPrevPost;

                try {
                    mediaPrevPost = mediaPreviewUpdates.take();
                } catch(InterruptedException e) { continue; }

                try {
                    mediaLocalBoard.insertMediaPreview(mediaPrevPost, sourceBoard);
                } catch(ContentGetException e) {
                    debug(ERROR, "Couldn't fetch preview of post " +
                            mediaPrevPost.getNum() + ": " + e.getMessage());
                } catch(ContentStoreException e) {
                    debug(ERROR, "Couldn't save preview of post " +
                            mediaPrevPost.getNum() + ": " + e.getMessage());
                }
            }
        }
View Full Code Here

Examples of net.easymodo.asagi.model.MediaPost

    protected class MediaFetcher implements Runnable {
        @Override
        @SuppressWarnings("InfiniteLoopStatement")
        public void run() {
            while(true) {
                MediaPost mediaPost;

                try {
                    mediaPost = mediaUpdates.take();
                } catch(InterruptedException e) { continue; }

                try {
                    mediaLocalBoard.insertMedia(mediaPost, sourceBoard);
                } catch(ContentGetException e) {
                    debug(ERROR, "Couldn't fetch media of post " +
                            mediaPost.getNum() + ": " + e.getMessage());
                } catch(ContentStoreException e) {
                    debug(ERROR, "Couldn't save media of post " +
                            mediaPost.getNum() + ": " + e.getMessage());
                }
            }
        }
View Full Code Here

Examples of net.easymodo.asagi.model.MediaPost

                    return;
                }

                for(Post post : posts) {
                    try {
                        MediaPost mediaPost = new MediaPost(post.getNum(), post.getThreadNum(), post.isOp(),
                                post.getPreviewOrig(), post.getMediaOrig(), post.getMediaHash());

                        if(post.getPreviewOrig() != null && fullThumb) {
                            if(!mediaPreviewUpdates.contains(mediaPost))
                                mediaPreviewUpdates.put(mediaPost);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.