Ejemplo n.º 1
0
        private static void FillAbstractYifyMovie(XElement element, AbstractYifyMovie movie)
        {
            FillAbstractMovie(element, movie);

            movie.Language = element.GetXDecendentValue<string>("language");
            movie.MPARating = element.GetXDecendentValue<string>("mpa_rating");
            movie.DateUploaded = element.GetXDecendentValue<DateTime>("date_uploaded");
            movie.DateUploadedUnix = element.GetXDecendentValue<long>("date_uploaded_unix");

            var xtorrents = element.GetXElement("torrents");
            FillTorrent(xtorrents, movie);
        }
Ejemplo n.º 2
0
        private void FillAbstractYifyMovie(JToken element, AbstractYifyMovie movie)
        {
            FillAbstractMovie(element, movie);

            movie.Language         = element["language"].Value <string>();
            movie.MPARating        = element["mpa_rating"].Value <string>();
            movie.DateUploaded     = element["date_uploaded"].Value <DateTime>();
            movie.DateUploadedUnix = element["date_uploaded_unix"].Value <long>();

            var xtorrents = element["torrents"];

            FillTorrent(xtorrents, movie);
        }
Ejemplo n.º 3
0
 private static void FillTorrent(XElement element, AbstractYifyMovie movie)
 {
     var xtorrents = element.Descendants("torrent");
     foreach (XElement elem in xtorrents)
     {
         movie.Torrents.Add(new Torrent()
         {
             Url = elem.GetXDecendentValue<string>("url"),
             Hash = elem.GetXDecendentValue<string>("hash"),
             Quality = elem.GetXDecendentValue<string>("quality"),
             Seeds = elem.GetXDecendentValue<string>("seeds"),
             Peers = elem.GetXDecendentValue<string>("peers"),
             Size = elem.GetXDecendentValue<string>("size"),
             SizeBytes = elem.GetXDecendentValue<long>("size_bytes"),
             DateUploaded = element.GetXDecendentValue<DateTime>("date_uploaded"),
             DateUploadedUnix = element.GetXDecendentValue<long>("date_uploaded_unix")
         });
     }
 }
Ejemplo n.º 4
0
 private void FillTorrent(JToken element, AbstractYifyMovie movie)
 {
     FillTorrent(element, movie.Torrents);
 }