mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
update ScheduleDirect help text
This commit is contained in:
parent
ffd9460d51
commit
f5c83f5578
@ -523,6 +523,31 @@ namespace MediaBrowser.Server.Implementations.LiveTv.Listings
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private async Task AddLineupToAccount(ListingsProviderInfo info, CancellationToken cancellationToken)
|
||||||
|
{
|
||||||
|
var token = await GetToken(info, cancellationToken);
|
||||||
|
|
||||||
|
if (string.IsNullOrWhiteSpace(token))
|
||||||
|
{
|
||||||
|
throw new ArgumentException("Authentication required.");
|
||||||
|
}
|
||||||
|
|
||||||
|
_logger.Info("Adding new LineUp ");
|
||||||
|
|
||||||
|
var httpOptions = new HttpRequestOptions()
|
||||||
|
{
|
||||||
|
Url = ApiUrl + "/lineups/" + info.ListingsId,
|
||||||
|
UserAgent = UserAgent,
|
||||||
|
CancellationToken = cancellationToken
|
||||||
|
};
|
||||||
|
|
||||||
|
httpOptions.RequestHeaders["token"] = token;
|
||||||
|
|
||||||
|
using (var response = await _httpClient.SendAsync(httpOptions, "PUT"))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public string Name
|
public string Name
|
||||||
{
|
{
|
||||||
get { return "Schedules Direct"; }
|
get { return "Schedules Direct"; }
|
||||||
@ -814,6 +839,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.Listings
|
|||||||
|
|
||||||
public async Task Validate(ListingsProviderInfo info)
|
public async Task Validate(ListingsProviderInfo info)
|
||||||
{
|
{
|
||||||
|
await AddLineupToAccount(info, CancellationToken.None).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task<List<NameIdPair>> GetLineups(ListingsProviderInfo info, string location)
|
public Task<List<NameIdPair>> GetLineups(ListingsProviderInfo info, string location)
|
||||||
|
@ -2200,6 +2200,8 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
|||||||
}
|
}
|
||||||
|
|
||||||
_config.SaveConfiguration("livetv", config);
|
_config.SaveConfiguration("livetv", config);
|
||||||
|
|
||||||
|
_taskManager.CancelIfRunningAndQueue<RefreshChannelsScheduledTask>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<ListingsProviderInfo> SaveListingProvider(ListingsProviderInfo info)
|
public async Task<ListingsProviderInfo> SaveListingProvider(ListingsProviderInfo info)
|
||||||
@ -2231,10 +2233,11 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
|||||||
|
|
||||||
_config.SaveConfiguration("livetv", config);
|
_config.SaveConfiguration("livetv", config);
|
||||||
|
|
||||||
|
_taskManager.CancelIfRunningAndQueue<RefreshChannelsScheduledTask>();
|
||||||
|
|
||||||
return info;
|
return info;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public Task<List<NameIdPair>> GetLineups(string providerId, string location)
|
public Task<List<NameIdPair>> GetLineups(string providerId, string location)
|
||||||
{
|
{
|
||||||
var config = GetConfiguration();
|
var config = GetConfiguration();
|
||||||
|
@ -823,5 +823,6 @@
|
|||||||
"HeaderAddProvider": "Add Provider",
|
"HeaderAddProvider": "Add Provider",
|
||||||
"ErrorAddingTunerDevice": "There was an error adding the tuner device. Please ensure it is accessible and try again.",
|
"ErrorAddingTunerDevice": "There was an error adding the tuner device. Please ensure it is accessible and try again.",
|
||||||
"ErrorSavingTvProvider": "There was an error saving the TV provider. Please ensure it is accessible and try again.",
|
"ErrorSavingTvProvider": "There was an error saving the TV provider. Please ensure it is accessible and try again.",
|
||||||
"ErrorGettingTvLineups": "There was an error downloading tv lineups. Please ensure your username and password are correct and try again."
|
"ErrorGettingTvLineups": "There was an error downloading tv lineups. Please ensure your username and password are correct and try again.",
|
||||||
|
"MessageCreateAccountAt": "Create an account at {0}"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user