mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-30 03:28:28 -07:00
Added the open on mobile back in, this will be available in the next app update
This commit is contained in:
parent
8dd00e9e99
commit
4071b2e8a2
4 changed files with 27 additions and 14 deletions
|
@ -13,7 +13,7 @@ namespace Ombi.Core.Rule.Rules.Search
|
||||||
{
|
{
|
||||||
public static void CheckForUnairedEpisodes(SearchTvShowViewModel 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 we have all the episodes for this season, then this season is available
|
||||||
if (season.Episodes.All(x => x.Available))
|
if (season.Episodes.All(x => x.Available))
|
||||||
|
|
|
@ -85,9 +85,9 @@ namespace Ombi.Core.Rule.Rules.Search
|
||||||
if (search.SeasonRequests.Any())
|
if (search.SeasonRequests.Any())
|
||||||
{
|
{
|
||||||
var allEpisodes = PlexContentRepository.GetAllEpisodes();
|
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);
|
await AvailabilityRuleHelper.SingleEpisodeCheck(useImdb, allEpisodes, episode, season, item, useTheMovieDb, useTvDb, Log);
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,19 +52,25 @@
|
||||||
<div style="margin-left:4%" class="col-12 col-sm-6 col-xl-5">
|
<div style="margin-left:4%" class="col-12 col-sm-6 col-xl-5">
|
||||||
<mat-label [translate]="'UserPreferences.MobileQRCode'"></mat-label>
|
<mat-label [translate]="'UserPreferences.MobileQRCode'"></mat-label>
|
||||||
<div id="noQrCode" *ngIf="!qrCodeEnabled" [translate]="'UserPreferences.NoQrCode'"></div>
|
<div id="noQrCode" *ngIf="!qrCodeEnabled" [translate]="'UserPreferences.NoQrCode'"></div>
|
||||||
<div class="row">
|
|
||||||
<qrcode id="qrCode" *ngIf="qrCodeEnabled" [qrdata]="qrCode" [size]="256" [level]="'L'"></qrcode>
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12">
|
<qrcode id="qrCode" *ngIf="qrCodeEnabled" [qrdata]="qrCode" [size]="256" [level]="'L'"></qrcode>
|
||||||
<a href='https://play.google.com/store/apps/details?id=com.tidusjar.Ombi&pcampaignid=pcampaignidMKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1'
|
<div class="row">
|
||||||
target="_blank"><img width="200px" alt='Get it on Google Play'
|
<div class="col-12">
|
||||||
src='https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png' /></a>
|
<a href='https://play.google.com/store/apps/details?id=com.tidusjar.Ombi&pcampaignid=pcampaignidMKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1'
|
||||||
|
target="_blank"><img width="200px" alt='Get it on Google Play'
|
||||||
|
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 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 class="col-12">
|
</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>
|
|
||||||
</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 welcomeText: string;
|
||||||
private setWelcomeText() {
|
private setWelcomeText() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue