cinecalidad: build the path to magnet. resolves #13528

This commit is contained in:
Garfield69 2022-09-07 20:41:57 +12:00
parent 28e0050ef7
commit 3a743d632a
1 changed files with 9 additions and 0 deletions

View File

@ -123,6 +123,15 @@ namespace Jackett.Common.Indexers
var dom = parser.ParseDocument(results.ContentString);
var protectedLink = dom.QuerySelector("a:contains('Torrent')").GetAttribute("data-url");
protectedLink = Base64Decode(protectedLink);
// turn
// link=https://cinecalidad.dev/pelicula/la-chica-salvaje/
// and
// protectedlink=https://cinecalidad.dev/links/MS8xMDA5NTIvMQ==
// into
// https://cinecalidad.dev/pelicula/la-chica-salvaje/?link=MS8xMDA5NTIvMQ==
var protectedLinkSplit = protectedLink.Split('/');
var key = protectedLinkSplit.Last();
protectedLink = link.ToString() + "?link=" + key;
protectedLink = GetAbsoluteUrl(protectedLink);
results = await RequestWithCookiesAsync(protectedLink);