コード例 #1
0
        protected void AddGenericVideoUrl(string post)
        {
            foreach (string videoUrl in TumblrParser.SearchForGenericVideoUrl(post))
            {
                if (TumblrParser.IsTumblrUrl(videoUrl))
                {
                    continue;
                }

                AddToDownloadList(new VideoPost(videoUrl, Guid.NewGuid().ToString("N")));
            }
        }
コード例 #2
0
        protected void AddGenericVideoUrl(string text, Post post)
        {
            foreach (string videoUrl in TumblrParser.SearchForGenericVideoUrl(text))
            {
                if (TumblrParser.IsTumblrUrl(videoUrl))
                {
                    continue;
                }

                AddToDownloadList(new VideoPost(videoUrl, post.Id, post.UnixTimestamp.ToString(), FileName(videoUrl)));
            }
        }
コード例 #3
0
        protected void AddGenericPhotoUrl(string post, int?postTimestamp)
        {
            foreach (string imageUrl in TumblrParser.SearchForGenericPhotoUrl(post))
            {
                if (TumblrParser.IsTumblrUrl(imageUrl))
                {
                    continue;
                }
                if (CheckIfSkipGif(imageUrl))
                {
                    continue;
                }

                AddToDownloadList(new PhotoPost(imageUrl, Guid.NewGuid().ToString("N"), postTimestamp?.ToString(), FileName(imageUrl)));
            }
        }
コード例 #4
0
        protected void AddGenericPhotoUrl(string text, Post post)
        {
            foreach (string imageUrl in TumblrParser.SearchForGenericPhotoUrl(text))
            {
                if (TumblrParser.IsTumblrUrl(imageUrl))
                {
                    continue;
                }
                if (CheckIfSkipGif(imageUrl))
                {
                    continue;
                }

                AddToDownloadList(new PhotoPost(imageUrl, post.Id, post.UnixTimestamp.ToString(), FileName(imageUrl)));
            }
        }