mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
MoreThanTV: add auto re-login
This commit is contained in:
@@ -109,6 +109,12 @@ namespace Jackett.Indexers
|
|||||||
{
|
{
|
||||||
var searchUrl = GetTorrentSearchUrl(query.Categories, searchQuery);
|
var searchUrl = GetTorrentSearchUrl(query.Categories, searchQuery);
|
||||||
var response = await RequestStringWithCookiesAndRetry(searchUrl);
|
var response = await RequestStringWithCookiesAndRetry(searchUrl);
|
||||||
|
if (response.IsRedirect)
|
||||||
|
{
|
||||||
|
// re login
|
||||||
|
await ApplyConfiguration(null);
|
||||||
|
response = await RequestStringWithCookiesAndRetry(searchUrl);
|
||||||
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -228,7 +234,6 @@ namespace Jackett.Indexers
|
|||||||
return new ReleaseInfo
|
return new ReleaseInfo
|
||||||
{
|
{
|
||||||
Title = title,
|
Title = title,
|
||||||
Description = title,
|
|
||||||
Category = new List<int> { category }, // Who seasons movies right
|
Category = new List<int> { category }, // Who seasons movies right
|
||||||
Link = new Uri(DownloadUrl + torrentId),
|
Link = new Uri(DownloadUrl + torrentId),
|
||||||
PublishDate = publishDate,
|
PublishDate = publishDate,
|
||||||
|
Reference in New Issue
Block a user