2013-10-31 08:39:09 -07:00
|
|
|
|
using MediaBrowser.Common.IO;
|
2013-10-14 08:08:33 -07:00
|
|
|
|
using MediaBrowser.Common.Net;
|
2013-05-25 10:55:32 -07:00
|
|
|
|
using MediaBrowser.Controller.Configuration;
|
2013-10-31 08:39:09 -07:00
|
|
|
|
using MediaBrowser.Controller.Entities.TV;
|
2013-05-20 20:16:43 -07:00
|
|
|
|
using MediaBrowser.Controller.Library;
|
2013-12-26 17:23:58 -07:00
|
|
|
|
using MediaBrowser.Model.Entities;
|
2013-05-20 20:16:43 -07:00
|
|
|
|
using MediaBrowser.Model.Logging;
|
|
|
|
|
using MediaBrowser.Model.Net;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2013-10-31 08:39:09 -07:00
|
|
|
|
using System.Globalization;
|
2013-05-20 20:16:43 -07:00
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Xml;
|
2015-10-03 21:23:11 -07:00
|
|
|
|
using CommonIO;
|
2013-05-20 20:16:43 -07:00
|
|
|
|
|
2013-06-09 09:47:28 -07:00
|
|
|
|
namespace MediaBrowser.Providers.TV
|
2013-05-20 20:16:43 -07:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Class TvdbPrescanTask
|
|
|
|
|
/// </summary>
|
2014-02-09 16:08:01 -07:00
|
|
|
|
public class TvdbPrescanTask : ILibraryPostScanTask
|
2013-05-20 20:16:43 -07:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The server time URL
|
|
|
|
|
/// </summary>
|
|
|
|
|
private const string ServerTimeUrl = "http://thetvdb.com/api/Updates.php?type=none";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The updates URL
|
|
|
|
|
/// </summary>
|
|
|
|
|
private const string UpdatesUrl = "http://thetvdb.com/api/Updates.php?type=all&time={0}";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The _HTTP client
|
|
|
|
|
/// </summary>
|
|
|
|
|
private readonly IHttpClient _httpClient;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The _logger
|
|
|
|
|
/// </summary>
|
|
|
|
|
private readonly ILogger _logger;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The _config
|
|
|
|
|
/// </summary>
|
2013-05-25 10:55:32 -07:00
|
|
|
|
private readonly IServerConfigurationManager _config;
|
2013-10-31 07:03:23 -07:00
|
|
|
|
private readonly IFileSystem _fileSystem;
|
2013-12-26 17:23:58 -07:00
|
|
|
|
private readonly ILibraryManager _libraryManager;
|
2013-05-20 20:16:43 -07:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initializes a new instance of the <see cref="TvdbPrescanTask"/> class.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="logger">The logger.</param>
|
|
|
|
|
/// <param name="httpClient">The HTTP client.</param>
|
|
|
|
|
/// <param name="config">The config.</param>
|
2013-12-26 17:23:58 -07:00
|
|
|
|
public TvdbPrescanTask(ILogger logger, IHttpClient httpClient, IServerConfigurationManager config, IFileSystem fileSystem, ILibraryManager libraryManager)
|
2013-05-20 20:16:43 -07:00
|
|
|
|
{
|
|
|
|
|
_logger = logger;
|
|
|
|
|
_httpClient = httpClient;
|
|
|
|
|
_config = config;
|
2013-10-31 07:03:23 -07:00
|
|
|
|
_fileSystem = fileSystem;
|
2013-12-26 17:23:58 -07:00
|
|
|
|
_libraryManager = libraryManager;
|
2013-05-20 20:16:43 -07:00
|
|
|
|
}
|
|
|
|
|
|
2013-10-14 08:08:33 -07:00
|
|
|
|
protected readonly CultureInfo UsCulture = new CultureInfo("en-US");
|
|
|
|
|
|
2013-05-20 20:16:43 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Runs the specified progress.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="progress">The progress.</param>
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <returns>Task.</returns>
|
|
|
|
|
public async Task Run(IProgress<double> progress, CancellationToken cancellationToken)
|
|
|
|
|
{
|
2014-03-02 13:44:48 -07:00
|
|
|
|
if (!_config.Configuration.EnableInternetProviders)
|
|
|
|
|
{
|
|
|
|
|
progress.Report(100);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2014-02-11 21:29:13 -07:00
|
|
|
|
var seriesConfig = _config.Configuration.MetadataOptions.FirstOrDefault(i => string.Equals(i.ItemType, typeof(Series).Name, StringComparison.OrdinalIgnoreCase));
|
|
|
|
|
|
|
|
|
|
if (seriesConfig != null && seriesConfig.DisabledMetadataFetchers.Contains(TvdbSeriesProvider.Current.Name, StringComparer.OrdinalIgnoreCase))
|
2013-05-25 10:55:32 -07:00
|
|
|
|
{
|
|
|
|
|
progress.Report(100);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2013-11-04 13:49:36 -07:00
|
|
|
|
var path = TvdbSeriesProvider.GetSeriesDataPath(_config.CommonApplicationPaths);
|
2013-05-20 20:16:43 -07:00
|
|
|
|
|
2015-09-13 14:32:02 -07:00
|
|
|
|
_fileSystem.CreateDirectory(path);
|
2013-10-14 08:08:33 -07:00
|
|
|
|
|
2013-05-20 20:16:43 -07:00
|
|
|
|
var timestampFile = Path.Combine(path, "time.txt");
|
|
|
|
|
|
2015-10-03 20:38:46 -07:00
|
|
|
|
var timestampFileInfo = _fileSystem.GetFileInfo(timestampFile);
|
2013-05-20 20:16:43 -07:00
|
|
|
|
|
|
|
|
|
// Don't check for tvdb updates anymore frequently than 24 hours
|
2013-10-31 07:03:23 -07:00
|
|
|
|
if (timestampFileInfo.Exists && (DateTime.UtcNow - _fileSystem.GetLastWriteTimeUtc(timestampFileInfo)).TotalDays < 1)
|
2013-05-20 20:16:43 -07:00
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Find out the last time we queried tvdb for updates
|
2015-09-13 14:32:02 -07:00
|
|
|
|
var lastUpdateTime = timestampFileInfo.Exists ? _fileSystem.ReadAllText(timestampFile, Encoding.UTF8) : string.Empty;
|
2013-05-20 20:16:43 -07:00
|
|
|
|
|
|
|
|
|
string newUpdateTime;
|
|
|
|
|
|
2014-02-10 11:39:41 -07:00
|
|
|
|
var existingDirectories = Directory.EnumerateDirectories(path)
|
|
|
|
|
.Select(Path.GetFileName)
|
|
|
|
|
.ToList();
|
|
|
|
|
|
2015-01-24 23:34:50 -07:00
|
|
|
|
var seriesIdsInLibrary = _libraryManager.RootFolder
|
|
|
|
|
.GetRecursiveChildren(i => i is Series && !string.IsNullOrEmpty(i.GetProviderId(MetadataProviders.Tvdb)))
|
|
|
|
|
.Cast<Series>()
|
2014-02-10 11:39:41 -07:00
|
|
|
|
.Select(i => i.GetProviderId(MetadataProviders.Tvdb))
|
|
|
|
|
.ToList();
|
|
|
|
|
|
|
|
|
|
var missingSeries = seriesIdsInLibrary.Except(existingDirectories, StringComparer.OrdinalIgnoreCase)
|
|
|
|
|
.ToList();
|
|
|
|
|
|
2013-05-20 20:16:43 -07:00
|
|
|
|
// If this is our first time, update all series
|
|
|
|
|
if (string.IsNullOrEmpty(lastUpdateTime))
|
|
|
|
|
{
|
|
|
|
|
// First get tvdb server time
|
|
|
|
|
using (var stream = await _httpClient.Get(new HttpRequestOptions
|
|
|
|
|
{
|
|
|
|
|
Url = ServerTimeUrl,
|
|
|
|
|
CancellationToken = cancellationToken,
|
|
|
|
|
EnableHttpCompression = true,
|
2013-11-04 13:49:36 -07:00
|
|
|
|
ResourcePool = TvdbSeriesProvider.Current.TvDbResourcePool
|
2013-05-20 20:16:43 -07:00
|
|
|
|
|
|
|
|
|
}).ConfigureAwait(false))
|
|
|
|
|
{
|
2013-09-15 10:34:48 -07:00
|
|
|
|
newUpdateTime = GetUpdateTime(stream);
|
2013-05-20 20:16:43 -07:00
|
|
|
|
}
|
|
|
|
|
|
2014-02-10 11:39:41 -07:00
|
|
|
|
existingDirectories.AddRange(missingSeries);
|
|
|
|
|
|
2013-10-14 08:08:33 -07:00
|
|
|
|
await UpdateSeries(existingDirectories, path, null, progress, cancellationToken).ConfigureAwait(false);
|
2013-05-20 20:16:43 -07:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
var seriesToUpdate = await GetSeriesIdsToUpdate(existingDirectories, lastUpdateTime, cancellationToken).ConfigureAwait(false);
|
|
|
|
|
|
|
|
|
|
newUpdateTime = seriesToUpdate.Item2;
|
|
|
|
|
|
2013-10-14 08:08:33 -07:00
|
|
|
|
long lastUpdateValue;
|
|
|
|
|
|
|
|
|
|
long.TryParse(lastUpdateTime, NumberStyles.Any, UsCulture, out lastUpdateValue);
|
|
|
|
|
|
|
|
|
|
var nullableUpdateValue = lastUpdateValue == 0 ? (long?)null : lastUpdateValue;
|
|
|
|
|
|
2014-02-10 11:39:41 -07:00
|
|
|
|
var listToUpdate = seriesToUpdate.Item1.ToList();
|
|
|
|
|
listToUpdate.AddRange(missingSeries);
|
|
|
|
|
|
|
|
|
|
await UpdateSeries(listToUpdate, path, nullableUpdateValue, progress, cancellationToken).ConfigureAwait(false);
|
2013-05-20 20:16:43 -07:00
|
|
|
|
}
|
|
|
|
|
|
2015-09-13 14:32:02 -07:00
|
|
|
|
_fileSystem.WriteAllText(timestampFile, newUpdateTime, Encoding.UTF8);
|
2013-05-25 08:16:50 -07:00
|
|
|
|
progress.Report(100);
|
2013-05-20 20:16:43 -07:00
|
|
|
|
}
|
|
|
|
|
|
2013-09-15 10:34:48 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the update time.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="response">The response.</param>
|
|
|
|
|
/// <returns>System.String.</returns>
|
|
|
|
|
private string GetUpdateTime(Stream response)
|
|
|
|
|
{
|
|
|
|
|
var settings = new XmlReaderSettings
|
|
|
|
|
{
|
|
|
|
|
CheckCharacters = false,
|
|
|
|
|
IgnoreProcessingInstructions = true,
|
|
|
|
|
IgnoreComments = true,
|
|
|
|
|
ValidationType = ValidationType.None
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
using (var streamReader = new StreamReader(response, Encoding.UTF8))
|
|
|
|
|
{
|
|
|
|
|
// Use XmlReader for best performance
|
|
|
|
|
using (var reader = XmlReader.Create(streamReader, settings))
|
|
|
|
|
{
|
|
|
|
|
reader.MoveToContent();
|
|
|
|
|
|
|
|
|
|
// Loop through each element
|
|
|
|
|
while (reader.Read())
|
|
|
|
|
{
|
|
|
|
|
if (reader.NodeType == XmlNodeType.Element)
|
|
|
|
|
{
|
|
|
|
|
switch (reader.Name)
|
|
|
|
|
{
|
|
|
|
|
case "Time":
|
|
|
|
|
{
|
|
|
|
|
return (reader.ReadElementContentAsString() ?? string.Empty).Trim();
|
|
|
|
|
}
|
|
|
|
|
default:
|
|
|
|
|
reader.Skip();
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
2013-05-20 20:16:43 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the series ids to update.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="existingSeriesIds">The existing series ids.</param>
|
|
|
|
|
/// <param name="lastUpdateTime">The last update time.</param>
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <returns>Task{IEnumerable{System.String}}.</returns>
|
|
|
|
|
private async Task<Tuple<IEnumerable<string>, string>> GetSeriesIdsToUpdate(IEnumerable<string> existingSeriesIds, string lastUpdateTime, CancellationToken cancellationToken)
|
|
|
|
|
{
|
|
|
|
|
// First get last time
|
|
|
|
|
using (var stream = await _httpClient.Get(new HttpRequestOptions
|
|
|
|
|
{
|
|
|
|
|
Url = string.Format(UpdatesUrl, lastUpdateTime),
|
|
|
|
|
CancellationToken = cancellationToken,
|
|
|
|
|
EnableHttpCompression = true,
|
2013-11-04 13:49:36 -07:00
|
|
|
|
ResourcePool = TvdbSeriesProvider.Current.TvDbResourcePool
|
2013-05-20 20:16:43 -07:00
|
|
|
|
|
|
|
|
|
}).ConfigureAwait(false))
|
|
|
|
|
{
|
2013-09-15 10:34:48 -07:00
|
|
|
|
var data = GetUpdatedSeriesIdList(stream);
|
2013-05-20 20:16:43 -07:00
|
|
|
|
|
2013-09-15 10:34:48 -07:00
|
|
|
|
var existingDictionary = existingSeriesIds.ToDictionary(i => i, StringComparer.OrdinalIgnoreCase);
|
2013-05-20 20:16:43 -07:00
|
|
|
|
|
2013-09-15 10:34:48 -07:00
|
|
|
|
var seriesList = data.Item1
|
|
|
|
|
.Where(i => !string.IsNullOrWhiteSpace(i) && existingDictionary.ContainsKey(i));
|
2013-05-20 20:16:43 -07:00
|
|
|
|
|
2013-09-15 10:34:48 -07:00
|
|
|
|
return new Tuple<IEnumerable<string>, string>(seriesList, data.Item2);
|
|
|
|
|
}
|
|
|
|
|
}
|
2013-05-20 20:16:43 -07:00
|
|
|
|
|
2013-09-15 10:34:48 -07:00
|
|
|
|
private Tuple<List<string>, string> GetUpdatedSeriesIdList(Stream stream)
|
|
|
|
|
{
|
|
|
|
|
string updateTime = null;
|
|
|
|
|
var idList = new List<string>();
|
2013-08-07 09:00:20 -07:00
|
|
|
|
|
2013-09-15 10:34:48 -07:00
|
|
|
|
var settings = new XmlReaderSettings
|
|
|
|
|
{
|
|
|
|
|
CheckCharacters = false,
|
|
|
|
|
IgnoreProcessingInstructions = true,
|
|
|
|
|
IgnoreComments = true,
|
|
|
|
|
ValidationType = ValidationType.None
|
|
|
|
|
};
|
2013-05-20 20:16:43 -07:00
|
|
|
|
|
2013-09-15 10:34:48 -07:00
|
|
|
|
using (var streamReader = new StreamReader(stream, Encoding.UTF8))
|
|
|
|
|
{
|
|
|
|
|
// Use XmlReader for best performance
|
|
|
|
|
using (var reader = XmlReader.Create(streamReader, settings))
|
|
|
|
|
{
|
|
|
|
|
reader.MoveToContent();
|
|
|
|
|
|
|
|
|
|
// Loop through each element
|
|
|
|
|
while (reader.Read())
|
|
|
|
|
{
|
|
|
|
|
if (reader.NodeType == XmlNodeType.Element)
|
|
|
|
|
{
|
|
|
|
|
switch (reader.Name)
|
|
|
|
|
{
|
|
|
|
|
case "Time":
|
|
|
|
|
{
|
|
|
|
|
updateTime = (reader.ReadElementContentAsString() ?? string.Empty).Trim();
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case "Series":
|
|
|
|
|
{
|
|
|
|
|
var id = (reader.ReadElementContentAsString() ?? string.Empty).Trim();
|
|
|
|
|
idList.Add(id);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
default:
|
|
|
|
|
reader.Skip();
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2013-05-20 20:16:43 -07:00
|
|
|
|
}
|
2013-09-15 10:34:48 -07:00
|
|
|
|
|
|
|
|
|
return new Tuple<List<string>, string>(idList, updateTime);
|
2013-05-20 20:16:43 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Updates the series.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="seriesIds">The series ids.</param>
|
|
|
|
|
/// <param name="seriesDataPath">The series data path.</param>
|
2013-10-14 08:08:33 -07:00
|
|
|
|
/// <param name="lastTvDbUpdateTime">The last tv db update time.</param>
|
2013-05-25 08:16:50 -07:00
|
|
|
|
/// <param name="progress">The progress.</param>
|
2013-05-20 20:16:43 -07:00
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <returns>Task.</returns>
|
2013-10-14 08:08:33 -07:00
|
|
|
|
private async Task UpdateSeries(IEnumerable<string> seriesIds, string seriesDataPath, long? lastTvDbUpdateTime, IProgress<double> progress, CancellationToken cancellationToken)
|
2013-05-20 20:16:43 -07:00
|
|
|
|
{
|
2013-05-25 08:16:50 -07:00
|
|
|
|
var list = seriesIds.ToList();
|
|
|
|
|
var numComplete = 0;
|
|
|
|
|
|
2013-12-26 17:23:58 -07:00
|
|
|
|
// Gather all series into a lookup by tvdb id
|
2015-01-24 23:34:50 -07:00
|
|
|
|
var allSeries = _libraryManager.RootFolder
|
|
|
|
|
.GetRecursiveChildren(i => i is Series && !string.IsNullOrEmpty(i.GetProviderId(MetadataProviders.Tvdb)))
|
|
|
|
|
.Cast<Series>()
|
2013-12-26 17:23:58 -07:00
|
|
|
|
.ToLookup(i => i.GetProviderId(MetadataProviders.Tvdb));
|
|
|
|
|
|
2013-05-25 08:16:50 -07:00
|
|
|
|
foreach (var seriesId in list)
|
2013-05-20 20:16:43 -07:00
|
|
|
|
{
|
2013-12-26 17:23:58 -07:00
|
|
|
|
// Find the preferred language(s) for the movie in the library
|
|
|
|
|
var languages = allSeries[seriesId]
|
|
|
|
|
.Select(i => i.GetPreferredMetadataLanguage())
|
|
|
|
|
.Distinct(StringComparer.OrdinalIgnoreCase)
|
|
|
|
|
.ToList();
|
|
|
|
|
|
|
|
|
|
foreach (var language in languages)
|
2013-05-20 20:16:43 -07:00
|
|
|
|
{
|
2013-12-26 17:23:58 -07:00
|
|
|
|
try
|
2013-05-20 20:16:43 -07:00
|
|
|
|
{
|
2013-12-26 17:23:58 -07:00
|
|
|
|
await UpdateSeries(seriesId, seriesDataPath, lastTvDbUpdateTime, language, cancellationToken).ConfigureAwait(false);
|
|
|
|
|
}
|
|
|
|
|
catch (HttpException ex)
|
|
|
|
|
{
|
|
|
|
|
_logger.ErrorException("Error updating tvdb series id {0}, language {1}", ex, seriesId, language);
|
|
|
|
|
|
|
|
|
|
// Already logged at lower levels, but don't fail the whole operation, unless timed out
|
|
|
|
|
// We have to fail this to make it run again otherwise new episode data could potentially be missing
|
|
|
|
|
if (ex.IsTimedOut)
|
|
|
|
|
{
|
|
|
|
|
throw;
|
|
|
|
|
}
|
2013-05-20 20:16:43 -07:00
|
|
|
|
}
|
|
|
|
|
}
|
2013-05-25 08:16:50 -07:00
|
|
|
|
|
|
|
|
|
numComplete++;
|
|
|
|
|
double percent = numComplete;
|
|
|
|
|
percent /= list.Count;
|
|
|
|
|
percent *= 100;
|
|
|
|
|
|
|
|
|
|
progress.Report(percent);
|
2013-05-20 20:16:43 -07:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Updates the series.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id">The id.</param>
|
|
|
|
|
/// <param name="seriesDataPath">The series data path.</param>
|
2013-10-14 08:08:33 -07:00
|
|
|
|
/// <param name="lastTvDbUpdateTime">The last tv db update time.</param>
|
2013-12-26 17:23:58 -07:00
|
|
|
|
/// <param name="preferredMetadataLanguage">The preferred metadata language.</param>
|
2013-05-20 20:16:43 -07:00
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <returns>Task.</returns>
|
2013-12-26 17:23:58 -07:00
|
|
|
|
private Task UpdateSeries(string id, string seriesDataPath, long? lastTvDbUpdateTime, string preferredMetadataLanguage, CancellationToken cancellationToken)
|
2013-05-20 20:16:43 -07:00
|
|
|
|
{
|
2014-02-03 10:44:13 -07:00
|
|
|
|
_logger.Info("Updating series from tvdb " + id + ", language " + preferredMetadataLanguage);
|
2013-05-20 20:16:43 -07:00
|
|
|
|
|
|
|
|
|
seriesDataPath = Path.Combine(seriesDataPath, id);
|
|
|
|
|
|
2015-09-13 14:32:02 -07:00
|
|
|
|
_fileSystem.CreateDirectory(seriesDataPath);
|
2013-09-15 10:34:48 -07:00
|
|
|
|
|
2013-12-26 17:23:58 -07:00
|
|
|
|
return TvdbSeriesProvider.Current.DownloadSeriesZip(id, seriesDataPath, lastTvDbUpdateTime, preferredMetadataLanguage, cancellationToken);
|
2013-05-20 20:16:43 -07:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|