mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 09:04:42 +01:00
add dish hopper profile
This commit is contained in:
@@ -166,6 +166,17 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
||||
|
||||
private void OnRequestReceived(string localEndPoint)
|
||||
{
|
||||
var ignore = localEndPoint.IndexOf("::", StringComparison.OrdinalIgnoreCase) != -1 ||
|
||||
|
||||
localEndPoint.StartsWith("127.", StringComparison.OrdinalIgnoreCase) ||
|
||||
localEndPoint.StartsWith("localhost", StringComparison.OrdinalIgnoreCase) ||
|
||||
localEndPoint.StartsWith("169.", StringComparison.OrdinalIgnoreCase);
|
||||
|
||||
if (ignore)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (_localEndpointLock.TryEnterWriteLock(100))
|
||||
{
|
||||
var list = _localEndpoints.ToList();
|
||||
|
||||
@@ -355,7 +355,22 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||
/// <returns>System.String[][].</returns>
|
||||
private List<string> GetWords(string term)
|
||||
{
|
||||
return term.Split().Where(i => !string.IsNullOrWhiteSpace(i)).ToList();
|
||||
var stoplist = GetStopList().ToList();
|
||||
|
||||
return term.Split()
|
||||
.Where(i => !string.IsNullOrWhiteSpace(i) && !stoplist.Contains(i, StringComparer.OrdinalIgnoreCase))
|
||||
.ToList();
|
||||
}
|
||||
|
||||
private IEnumerable<string> GetStopList()
|
||||
{
|
||||
return new[]
|
||||
{
|
||||
"the",
|
||||
"a",
|
||||
"of",
|
||||
"an"
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -571,5 +571,12 @@
|
||||
"MediaInfoStreamTypeEmbeddedImage": "Embedded Image",
|
||||
"MediaInfoRefFrames": "Ref frames",
|
||||
"TabPlayback": "Playback",
|
||||
"HeaderSelectCustomIntrosPath": "Select Custom Intros Path"
|
||||
"HeaderSelectCustomIntrosPath": "Select Custom Intros Path",
|
||||
"HeaderRateAndReview": "Rate and Review",
|
||||
"HeaderThankYou": "Thank You",
|
||||
"MessageThankYouForYourReview": "Thank you for your review.",
|
||||
"LabelYourRating": "Your rating:",
|
||||
"LabelFullReview": "Full review:",
|
||||
"LabelShortRatingDescription": "Short rating summary:",
|
||||
"OptionIRecommendThisItem": "I recommend this item"
|
||||
}
|
||||
|
||||
@@ -1196,5 +1196,6 @@
|
||||
"LabelThisFeatureRequiresSupporterHelp": "This feature requires an active supporter membership.",
|
||||
"OptionTrailersFromMyMoviesHelp": "Requires setup of local trailers.",
|
||||
"LabelCustomIntrosPath": "Custom intros path:",
|
||||
"LabelCustomIntrosPathHelp": "A folder containing video files. A video will be randomly selected and played after trailers."
|
||||
"LabelCustomIntrosPathHelp": "A folder containing video files. A video will be randomly selected and played after trailers.",
|
||||
"ValueSpecialEpisodeName": "Special - {0}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user