Beispiel #1
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)));
            }
        }
        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)));
            }
        }