1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-28 10:50:47 +00:00

Lostfilm: new series regex (#2586) resolves #2585

* newstudio - new ru semi-private tracker
rutracker - add series parser
rutor - global search without category + series parser

* newstudio rus semi-private tracker

* 999 -> 99

* remove old definition

* - add newstudio tracker to the README
- newstudio def: remove reduntal inputs
- rutor def: revert setting usage into query

* nnm-club: new russian semi-private tracker
newstudo: fix quality naming

* readme

* fix quality naming

* seasons parsing fix

* fix

* follow redirect on torrent file download

* nnm-club + rutracker name parsing improvements

* rutracker: add strip russian letters option

* lostfilm: new series regex

* lostfilm: add tracker name into title
This commit is contained in:
Andy Simons 2018-02-16 00:25:52 +05:00 committed by garfield69
parent 05f82c66b0
commit 0b1c9751e5

View file

@ -22,7 +22,7 @@ namespace Jackett.Indexers
{
class LostFilm : BaseWebIndexer
{
private static Regex parsePlayEpisodeRegex = new Regex("PlayEpisode\\('(?<id>\\d+)','(?<season>\\d+)','(?<episode>\\d+)'\\)", RegexOptions.Compiled | RegexOptions.IgnoreCase);
private static Regex parsePlayEpisodeRegex = new Regex("PlayEpisode\\('(?<id>\\d{1,3})(?<season>\\d{3})(?<episode>\\d{3})'\\)", RegexOptions.Compiled | RegexOptions.IgnoreCase);
private static Regex parseReleaseDetailsRegex = new Regex("Видео:\\ (?<quality>.+).\\ Размер:\\ (?<size>.+).\\ Перевод", RegexOptions.Compiled | RegexOptions.IgnoreCase);
// http://www.lostfilm.tv/login
@ -54,9 +54,9 @@ namespace Jackett.Indexers
var trigger = button.GetAttribute("onclick");
var match = parsePlayEpisodeRegex.Match(trigger);
seriesId = match.Groups["id"].Value;
season = match.Groups["season"].Value;
episode = match.Groups["episode"].Value;
seriesId = match.Groups["id"].Value.TrimStart('0');
season = match.Groups["season"].Value.TrimStart('0');
episode = match.Groups["episode"].Value.TrimStart('0');
}
internal string GetEpisodeString()
@ -612,7 +612,7 @@ namespace Jackett.Indexers
quality = Regex.Replace(quality, "720 ", "720p ", RegexOptions.IgnoreCase);
var techComponents = new string[] {
"rus", quality
"rus", quality, "(LostFilm)"
};
var techInfo = string.Join(" ", techComponents.Where(s => !string.IsNullOrEmpty(s)));