public void Convert(FB2File fb2File,IBookInformationData titleInformation, ICalibreMetadata metadata)
 {
     _titleInfoConverter.Convert(fb2File.TitleInfo, titleInformation);
     _bookIDConverter.Convert(fb2File, titleInformation);
     _sourceInfoConverter.Convert(fb2File, titleInformation);
     _publisherInfoConverter.Convert(fb2File, titleInformation);
     _calibreMetadataConverter.Convert(fb2File, metadata);
     _seriesDataConverter.Convert(fb2File, titleInformation);
 }
 public void Convert(FB2File fb2File, IBookInformationData titleInformation, ICalibreMetadata metadata)
 {
     _titleInfoConverter.Convert(fb2File.TitleInfo, titleInformation);
     _bookIDConverter.Convert(fb2File, titleInformation);
     _sourceInfoConverter.Convert(fb2File, titleInformation);
     _publisherInfoConverter.Convert(fb2File, titleInformation);
     _calibreMetadataConverter.Convert(fb2File, metadata);
     _seriesDataConverter.Convert(fb2File, titleInformation);
 }
 internal void Convert(FB2File fb2File, ICalibreMetadata metadata)
 {
     if (!_v2Settings.AddCalibreMetadata)
     {
         return;
     }
     if (fb2File.TitleInfo != null && fb2File.TitleInfo.BookTitle != null &&
         !string.IsNullOrEmpty(fb2File.TitleInfo.BookTitle.Text))
     {
         metadata.TitleForSort = fb2File.TitleInfo.BookTitle.Text;
     }
     if (fb2File.TitleInfo != null && fb2File.TitleInfo.Sequences.Count > 0 &&
         !string.IsNullOrEmpty(fb2File.TitleInfo.Sequences[0].Name))
     {
         metadata.SeriesName = fb2File.TitleInfo.Sequences[0].Name;
         if (fb2File.TitleInfo.Sequences[0].Number.HasValue)
         {
             metadata.SeriesIndex = fb2File.TitleInfo.Sequences[0].Number.Value;
         }
     }
 }
 internal void Convert(FB2File fb2File, ICalibreMetadata metadata)
 {
     if (!_v2Settings.AddCalibreMetadata)
     {
         return;
     }
     if (fb2File.TitleInfo != null && fb2File.TitleInfo.BookTitle != null &&
         !string.IsNullOrEmpty(fb2File.TitleInfo.BookTitle.Text))
     {
         metadata.TitleForSort = fb2File.TitleInfo.BookTitle.Text;
     }
     if (fb2File.TitleInfo != null && fb2File.TitleInfo.Sequences.Count > 0 &&
         !string.IsNullOrEmpty(fb2File.TitleInfo.Sequences[0].Name))
     {
         metadata.SeriesName = fb2File.TitleInfo.Sequences[0].Name;
         if (fb2File.TitleInfo.Sequences[0].Number.HasValue)
         {
             metadata.SeriesIndex = fb2File.TitleInfo.Sequences[0].Number.Value;
         }
     }
 }