Changed: Cleanup indexer files, Remove fanzub (#305)
parent
57fc26916a
commit
f6a1f5142a
@ -1,65 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1" ?>
|
|
||||||
<rss version="0.91">
|
|
||||||
<channel>
|
|
||||||
<ttl>10</ttl>
|
|
||||||
<title>BitMeTV.ORG</title>
|
|
||||||
<link>http://www.bitmetv.org</link>
|
|
||||||
<description>This is a private - by registration only - website. You can help keep it alive by donating: http://www.bitmetv.org/donate.php</description>
|
|
||||||
<language>en-usde</language>
|
|
||||||
<copyright>Copyright © 2004 - 2007 BitMeTV.ORG</copyright>
|
|
||||||
<webMaster>noreply@bitmetv.org</webMaster>
|
|
||||||
<image>
|
|
||||||
<title>BitMeTV.ORG</title>
|
|
||||||
<url>http://www.bitmetv.org/favicon.ico</url>
|
|
||||||
<link>http://www.bitmetv.org</link>
|
|
||||||
<width>16</width>
|
|
||||||
<height>16</height>
|
|
||||||
<description>This is a private - by registration only - website. You can help keep it alive by donating: http://www.bitmetv.org/donate.php</description>
|
|
||||||
</image>
|
|
||||||
<item>
|
|
||||||
<title>Total.Divas.S02E08.HDTV.x264-CRiMSON</title>
|
|
||||||
<link>http://www.bitmetv.org/download.php/12/Total.Divas.S02E08.HDTV.x264-CRiMSON.torrent</link>
|
|
||||||
<pubDate>Tue, 13 May 2014 17:04:29 -0000</pubDate>
|
|
||||||
<description>
|
|
||||||
Category: (Reality TV - Un-scripted)
|
|
||||||
Size: 376.71 MB
|
|
||||||
</description>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<title>Aqua.Teen.Hunger.Force.S10.INTERNAL.HDTV.x264-BitMeTV</title>
|
|
||||||
<link>http://www.bitmetv.org/download.php/34/Aqua.Teen.Hunger.Force.S10.INTERNAL.HDTV.x264-BitMeTV.torrent</link>
|
|
||||||
<pubDate>Tue, 13 May 2014 17:03:12 -0000</pubDate>
|
|
||||||
<description>
|
|
||||||
Category: (Adult Swim)
|
|
||||||
Size: 725.46 MB
|
|
||||||
</description>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<title>Antiques.Roadshow.US.S18E16.720p.HDTV.x264-BAJSKORV</title>
|
|
||||||
<link>http://www.bitmetv.org/download.php/56/Antiques.Roadshow.US.S18E16.720p.HDTV.x264-BAJSKORV.torrent</link>
|
|
||||||
<pubDate>Tue, 13 May 2014 16:47:05 -0000</pubDate>
|
|
||||||
<description>
|
|
||||||
Category: (Reality TV - Un-scripted)
|
|
||||||
Size: 960.15 MB
|
|
||||||
</description>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<title>Seth.Meyers.2014.05.12.Chris.O.Dowd-Emma.Roberts.HDTV.x264-CROOKS</title>
|
|
||||||
<link>http://www.bitmetv.org/download.php/78/Seth.Meyers.2014.05.12.Chris.O.Dowd-Emma.Roberts.HDTV.x264-CROOKS.torrent</link>
|
|
||||||
<pubDate>Tue, 13 May 2014 16:01:21 -0000</pubDate>
|
|
||||||
<description>
|
|
||||||
Category: Seth Meyers
|
|
||||||
Size: 301.31 MB
|
|
||||||
</description>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<title>The.Mole.Australia.Season.4</title>
|
|
||||||
<link>http://www.bitmetv.org/download.php/910/The%20Mole%20Australia%20-%20Season%204.torrent</link>
|
|
||||||
<pubDate>Tue, 13 May 2014 15:52:54 -0000</pubDate>
|
|
||||||
<description>
|
|
||||||
Category: (Reality TV - Competitive)
|
|
||||||
Size: 2.13 GB
|
|
||||||
</description>
|
|
||||||
</item>
|
|
||||||
</channel>
|
|
||||||
</rss>
|
|
@ -1,37 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
|
||||||
<channel>
|
|
||||||
<title>Anime :: Fanzub</title>
|
|
||||||
<link>http://www.fanzub.com/</link>
|
|
||||||
<description>A Usenet Search Engine for Japanese Media</description>
|
|
||||||
<language>en-us</language>
|
|
||||||
<atom:link href="http://fanzub.com/rss?cat=anime" rel="self" type="application/rss+xml" />
|
|
||||||
<item>
|
|
||||||
<title>[Vivid] Hanayamata - 10 [A33D6606]</title>
|
|
||||||
<link>http://fanzub.com/nzb/296464</link>
|
|
||||||
<description><i>Age</i>: 0 days<br /><i>Size</i>: 530.48 MiB<br /><i>Parts</i>: 100%<br /><i>Files</i>: 1 other, 8 par2<br /><i>Subject</i>: [9/9] [Vivid] Hanayamata - 10 [A33D6606].vol63+27.par2 (1/28)</description>
|
|
||||||
<category>Anime</category>
|
|
||||||
<pubDate>Sat, 13 Sep 2014 12:56:53 +0000</pubDate>
|
|
||||||
<enclosure url="http://fanzub.com/nzb/296464/Vivid%20Hanayamata%20-%2010.nzb" length="556246858" type="application/x-nzb" />
|
|
||||||
<guid isPermaLink="false">http://fanzub.com/nzb/296464</guid>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<title>(Sniper2000) - Pokemon HD - XY 37</title>
|
|
||||||
<link>http://fanzub.com/nzb/296456</link>
|
|
||||||
<description><i>Age</i>: 0 days<br /><i>Size</i>: 2.79 GiB<br /><i>Parts</i>: 100%<br /><i>Files</i>: 1 nzb, 1 other, 77 par2, 30 rar<br /><i>Subject</i>: (Sniper2000) [108/108] - "XY 37.vol183+176.PAR2"Pokemon HD (1/272)</description>
|
|
||||||
<category>Anime</category>
|
|
||||||
<pubDate>Sat, 13 Sep 2014 12:38:03 +0000</pubDate>
|
|
||||||
<enclosure url="http://fanzub.com/nzb/296456/Sniper2000%20-%20Pokemon%20HD%20-%20XY%2037.nzb" length="2995093986" type="application/x-nzb" />
|
|
||||||
<guid isPermaLink="false">http://fanzub.com/nzb/296456</guid>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<title>[HorribleSubs] Kindaichi Case Files R - 23 [480p].mkv</title>
|
|
||||||
<link>http://fanzub.com/nzb/296472</link>
|
|
||||||
<description><i>Age</i>: 0 days<br /><i>Size</i>: 153.87 MiB<br /><i>Parts</i>: 100%<br /><i>Files</i>: 7 par2, 6 split<br /><i>Subject</i>: [HorribleSubs] Kindaichi Case Files R - 23 [480p] [13/13] - "[HorribleSubs] Kindaichi Case Files R - 23 [480p].mkv.vol31+06.par2" yEnc (1/7)</description>
|
|
||||||
<category>Anime</category>
|
|
||||||
<pubDate>Sat, 13 Sep 2014 11:51:59 +0000</pubDate>
|
|
||||||
<enclosure url="http://fanzub.com/nzb/296472/HorribleSubs%20Kindaichi%20Case%20Files%20R%20-%2023%20480p.nzb" length="161341092" type="application/x-nzb" />
|
|
||||||
<guid isPermaLink="false">http://fanzub.com/nzb/296472</guid>
|
|
||||||
</item>
|
|
||||||
</channel>
|
|
||||||
</rss>
|
|
@ -0,0 +1,14 @@
|
|||||||
|
using FluentMigrator;
|
||||||
|
using NzbDrone.Core.Datastore.Migration.Framework;
|
||||||
|
|
||||||
|
namespace NzbDrone.Core.Datastore.Migration
|
||||||
|
{
|
||||||
|
[Migration(15)]
|
||||||
|
public class remove_fanzub : NzbDroneMigrationBase
|
||||||
|
{
|
||||||
|
protected override void MainDbUpgrade()
|
||||||
|
{
|
||||||
|
Execute.Sql("DELETE FROM Indexers WHERE Implementation = 'Fanzub';");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,67 +0,0 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Text.RegularExpressions;
|
|
||||||
using NzbDrone.Common.Extensions;
|
|
||||||
using NzbDrone.Common.Http;
|
|
||||||
using NzbDrone.Core.IndexerSearch.Definitions;
|
|
||||||
|
|
||||||
namespace NzbDrone.Core.Indexers.Fanzub
|
|
||||||
{
|
|
||||||
public class FanzubRequestGenerator : IIndexerRequestGenerator
|
|
||||||
{
|
|
||||||
private static readonly Regex RemoveCharactersRegex = new Regex(@"[!?`]", RegexOptions.Compiled);
|
|
||||||
|
|
||||||
public FanzubSettings Settings { get; set; }
|
|
||||||
public int PageSize { get; set; }
|
|
||||||
|
|
||||||
public FanzubRequestGenerator()
|
|
||||||
{
|
|
||||||
PageSize = 100;
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual IndexerPageableRequestChain GetRecentRequests()
|
|
||||||
{
|
|
||||||
var pageableRequests = new IndexerPageableRequestChain();
|
|
||||||
|
|
||||||
pageableRequests.Add(GetPagedRequests(null));
|
|
||||||
|
|
||||||
return pageableRequests;
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual IndexerPageableRequestChain GetSearchRequests(AlbumSearchCriteria searchCriteria)
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual IndexerPageableRequestChain GetSearchRequests(ArtistSearchCriteria searchCriteria)
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
private IEnumerable<IndexerRequest> GetPagedRequests(string query)
|
|
||||||
{
|
|
||||||
var url = new StringBuilder();
|
|
||||||
url.AppendFormat("{0}?cat=anime&max={1}", Settings.BaseUrl, PageSize);
|
|
||||||
|
|
||||||
if (query.IsNotNullOrWhiteSpace())
|
|
||||||
{
|
|
||||||
url.AppendFormat("&q={0}", query);
|
|
||||||
}
|
|
||||||
|
|
||||||
yield return new IndexerRequest(url.ToString(), HttpAccept.Rss);
|
|
||||||
}
|
|
||||||
|
|
||||||
private IEnumerable<string> GetTitleSearchStrings(string title, int absoluteEpisodeNumber)
|
|
||||||
{
|
|
||||||
var formats = new[] { "{0}%20{1:00}", "{0}%20-%20{1:00}" };
|
|
||||||
|
|
||||||
return formats.Select(s => "\"" + string.Format(s, CleanTitle(title), absoluteEpisodeNumber) + "\"");
|
|
||||||
}
|
|
||||||
|
|
||||||
private string CleanTitle(string title)
|
|
||||||
{
|
|
||||||
return RemoveCharactersRegex.Replace(title, "");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,33 +0,0 @@
|
|||||||
using FluentValidation;
|
|
||||||
using NzbDrone.Core.Annotations;
|
|
||||||
using NzbDrone.Core.ThingiProvider;
|
|
||||||
using NzbDrone.Core.Validation;
|
|
||||||
|
|
||||||
namespace NzbDrone.Core.Indexers.Fanzub
|
|
||||||
{
|
|
||||||
public class FanzubSettingsValidator : AbstractValidator<FanzubSettings>
|
|
||||||
{
|
|
||||||
public FanzubSettingsValidator()
|
|
||||||
{
|
|
||||||
RuleFor(c => c.BaseUrl).ValidRootUrl();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public class FanzubSettings : IIndexerSettings
|
|
||||||
{
|
|
||||||
private static readonly FanzubSettingsValidator Validator = new FanzubSettingsValidator();
|
|
||||||
|
|
||||||
public FanzubSettings()
|
|
||||||
{
|
|
||||||
BaseUrl = "http://fanzub.com/rss/";
|
|
||||||
}
|
|
||||||
|
|
||||||
[FieldDefinition(0, Label = "Rss URL", HelpText = "Enter to URL to an Fanzub compatible RSS feed")]
|
|
||||||
public string BaseUrl { get; set; }
|
|
||||||
|
|
||||||
public NzbDroneValidationResult Validate()
|
|
||||||
{
|
|
||||||
return new NzbDroneValidationResult(Validator.Validate(this));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in new issue