mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-03 21:54:47 -04:00
* Implemented methods to parse out the whole ComicInfo file and a mock ComicInfo from epub files. * Removed unused imports. ScanSeries needs to cleanup deleted chapters and call RefreshMetadata. Ensure after scan we cleanup tags without any series. * Random cleanup * Added some comments about data getting stale and not updating. * Removed old Summary methods in favor of the ComicInfo versions * Added a missing property * Fixed unit test
34 lines
816 B
C#
34 lines
816 B
C#
using System.Xml.Serialization;
|
|
|
|
namespace API.DTOs.OPDS
|
|
{
|
|
public class FeedLink
|
|
{
|
|
/// <summary>
|
|
/// Relation on the Link
|
|
/// </summary>
|
|
[XmlAttribute("rel")]
|
|
public string Rel { get; set; }
|
|
|
|
/// <summary>
|
|
/// Should be any of the types here <see cref="FeedLinkType"/>
|
|
/// </summary>
|
|
[XmlAttribute("type")]
|
|
public string Type { get; set; }
|
|
|
|
[XmlAttribute("href")]
|
|
public string Href { get; set; }
|
|
|
|
[XmlAttribute("title")]
|
|
public string Title { get; set; }
|
|
|
|
[XmlAttribute("count", Namespace = "http://vaemendis.net/opds-pse/ns")]
|
|
public int TotalPages { get; set; }
|
|
|
|
public bool ShouldSerializeTotalPages()
|
|
{
|
|
return TotalPages > 0;
|
|
}
|
|
}
|
|
}
|