Example #1
0
 public static List<WebArtworkDetailed> ArtworkReader(SQLiteDataReader reader, int idx)
 {
     string url = reader.ReadString(idx);
     var item = new WebArtworkDetailed()
     {
         Filetype = "jpg",
         Id = url.GetHashCode().ToString(),
         Offset = 0,
         Rating = 1,
         Type = WebFileType.Cover,
         Path = url
     };
     return new List<WebArtworkDetailed>() { item };
 }
Example #2
0
 public static List<WebArtworkDetailed> ArtworkReader(SQLiteDataReader reader, int idx)
 {
     string url = reader.ReadString(idx);
     Uri uri = new Uri(url);
     var item = new WebArtworkDetailed()
     {
         Filetype = Path.GetExtension(uri.LocalPath).Substring(1),
         Id = url.GetHashCode().ToString(),
         Offset = 0,
         Rating = 1,
         Type = WebFileType.Cover,
         Path = url
     };
     return new List<WebArtworkDetailed>() { item };
 }
Example #3
0
 public static string FixNameReader(SQLiteDataReader reader, int index)
 {
     // MPTvSeries does some magic with the name: if it's empty in the online series, use the Parsed_Name from the local series. I prefer
     // a complete database, but we can't fix that easily. See DB Classes/DBSeries.cs:359 in MPTvSeries source
     string data = reader.ReadString(index);
     if (data.Length > 0)
         return data;
     return reader.ReadString(index - 1);
 }