Esempio n. 1
0
        private static HArticleModel ConvertTo(EHentaiArticle data, string url, string magic)
        {
            var article = new HArticleModel();

            article.Magic       = magic;
            article.ArticleType = HArticleType.EXHentai;
            article.URL         = url;
            article.Thumbnail   = data.Thumbnail;
            article.Title       = data.Title;
            article.SubTitle    = data.SubTitle;
            article.Type        = data.Type;
            article.Uploader    = data.Uploader;
            article.Posted      = data.Posted;
            article.Parent      = data.Parent;
            article.Visible     = data.Visible;
            article.Language    = data.Language;
            article.FileSize    = data.FileSize;
            article.Length      = data.Length;
            article.Favorited   = data.Favorited;
            article.reclass     = data.reclass;
            article.language    = data.language;
            article.group       = data.group;
            article.parody      = data.parody;
            article.character   = data.character;
            article.artist      = data.artist;
            article.male        = data.male;
            article.female      = data.female;
            article.misc        = data.misc;
            return(article);
        }
Esempio n. 2
0
        private static HArticleModel ConvertTo(HitomiIndexMetadata metadata, string url, string magic)
        {
            var article = new HArticleModel();

            article.Magic       = magic;
            article.ArticleType = HArticleType.Hitomi;
            article.URL         = url;
            if (metadata.Artists != null)
            {
                article.artist = metadata.Artists.Select(x => HitomiIndex.Instance.index.Artists[x]).ToArray();
            }
            if (metadata.Groups != null)
            {
                article.group = metadata.Groups.Select(x => HitomiIndex.Instance.index.Artists[x]).ToArray();
            }
            if (metadata.Parodies != null)
            {
                article.parody = metadata.Parodies.Select(x => HitomiIndex.Instance.index.Artists[x]).ToArray();
            }
            if (metadata.Tags != null)
            {
                article.misc = metadata.Tags.Select(x => HitomiIndex.Instance.index.Artists[x]).ToArray();
            }
            if (metadata.Characters != null)
            {
                article.character = metadata.Characters.Select(x => HitomiIndex.Instance.index.Artists[x]).ToArray();
            }
            article.Language = HitomiIndex.Instance.index.Languages[metadata.Language];
            article.Title    = metadata.Name;
            article.Type     = HitomiIndex.Instance.index.Types[metadata.Type];
            article.Magic    = metadata.ID.ToString();
            return(article);
        }
Esempio n. 3
0
        private static HArticleModel ConvertTo(HiyobiArticle data, string url, string magic)
        {
            var article = new HArticleModel();

            article.Magic       = magic;
            article.ArticleType = HArticleType.Hiyobi;
            article.URL         = url;
            article.artist      = data.Artists;
            article.group       = data.Groups;
            article.parody      = data.Series;
            article.misc        = data.Tags;
            article.character   = data.Characters;
            article.Language    = "korean";
            article.Title       = data.Title;
            article.Type        = data.Type;
            article.Magic       = data.Magic;
            return(article);
        }
Esempio n. 4
0
        private static HArticleModel ConvertTo(HitomiMetadata metadata, string url, string magic)
        {
            var article = new HArticleModel();

            article.Magic       = magic;
            article.ArticleType = HArticleType.Hitomi;
            article.URL         = url;
            article.artist      = metadata.Artists;
            article.group       = metadata.Groups;
            article.parody      = metadata.Parodies;
            article.misc        = metadata.Tags;
            article.character   = metadata.Characters;
            article.Language    = metadata.Language;
            article.Title       = metadata.Name;
            article.Type        = metadata.Type;
            article.Magic       = metadata.ID.ToString();
            return(article);
        }
Esempio n. 5
0
        private static HArticleModel ConvertTo(HitomiArticle article, string url, string magic)
        {
            var article2 = new HArticleModel();

            article2.Magic       = magic;
            article2.ArticleType = HArticleType.Hitomi;
            article2.URL         = url;
            article2.artist      = article.Artists;
            article2.group       = article.Groups;
            article2.parody      = article.Series;
            article2.misc        = article.Tags;
            article2.character   = article.Characters;
            article2.Language    = article.Language;
            article2.Title       = article.Title;
            article2.Type        = article.Type;
            article2.Thumbnail   = article.Thumbnail;
            return(article2);
        }
Esempio n. 6
0
 /// <summary>
 /// 다운로드해야할 이미지 목록을 가져옵니다.
 /// </summary>
 /// <param name="article"></param>
 /// <returns></returns>
 public static string[] GetDownloadImageAddress(HArticleModel article)
 {
     return(null);
 }