Added the open on mobile back in, this will be available in the next app update

pull/4185/head v4.0.1350
tidusjar 4 years ago
parent 8dd00e9e99
commit 4071b2e8a2

@ -13,7 +13,7 @@ namespace Ombi.Core.Rule.Rules.Search
{
public static void CheckForUnairedEpisodes(SearchTvShowViewModel search)
{
foreach (var season in search.SeasonRequests)
foreach (var season in search.SeasonRequests.ToList())
{
// If we have all the episodes for this season, then this season is available
if (season.Episodes.All(x => x.Available))

@ -85,9 +85,9 @@ namespace Ombi.Core.Rule.Rules.Search
if (search.SeasonRequests.Any())
{
var allEpisodes = PlexContentRepository.GetAllEpisodes();
foreach (var season in search.SeasonRequests)
foreach (var season in search.SeasonRequests.ToList())
{
foreach (var episode in season.Episodes)
foreach (var episode in season.Episodes.ToList())
{
await AvailabilityRuleHelper.SingleEpisodeCheck(useImdb, allEpisodes, episode, season, item, useTheMovieDb, useTvDb, Log);
}

@ -61,10 +61,16 @@
src='https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png' /></a>
</div>
<div class="col-12">
<a href='https://apps.apple.com/us/app/ombi/id1335260043' target="_blank"><img style="margin-left:13px" width="170px"
alt='Get it on Google Play' src='../../../images/appstore.svg' /></a>
</div></div>
</div></div>
<a href='https://apps.apple.com/us/app/ombi/id1335260043' target="_blank"><img
style="margin-left:13px" width="170px" alt='Get it on Google Play'
src='../../../images/appstore.svg' /></a>
</div>
<div class="col-12">
<button style="margin-left:13px; margin-top: 20px;" mat-raised-button color="accent" type="button" (click)="openMobileApp($event)">Open Mobile App</button>
</div>
</div>
</div>
</div>
</div>
</div>

@ -120,6 +120,13 @@ export class UserPreferenceComponent implements OnInit {
})
}
public openMobileApp(event: any) {
event.preventDefault();
const url = `ombi://${this.qrCode}`;
window.location.assign(url);
}
private welcomeText: string;
private setWelcomeText() {

Loading…
Cancel
Save