From 0e3034d1c1952d27921ea4947ddd37fe6f883c2f Mon Sep 17 00:00:00 2001 From: BillyOutlast <172061051+BillyOutlast@users.noreply.github.com> Date: Mon, 1 Sep 2025 19:13:10 -0400 Subject: [PATCH] Fixed logic and requiments for porn ids --- resources/views/torrent/edit.blade.php | 321 ++++++++++++------------- resources/views/torrent/show.blade.php | 5 +- 2 files changed, 162 insertions(+), 164 deletions(-) diff --git a/resources/views/torrent/edit.blade.php b/resources/views/torrent/edit.blade.php index fc4ae8889..e659b1f14 100644 --- a/resources/views/torrent/edit.blade.php +++ b/resources/views/torrent/edit.blade.php @@ -26,13 +26,18 @@ cats: JSON.parse(atob('{{ base64_encode(json_encode($categories)) }}')), type: {{ (int) $torrent->type_id }}, types: JSON.parse(atob('{{ base64_encode(json_encode($types)) }}')), - tmdb_movie_exists: - {{ Js::from(old('movie_exists_on_tmdb', $torrent->tmdb_movie_id) !== null) }}, + tmdb_movie_exists: {{ Js::from(old('movie_exists_on_tmdb', $torrent->tmdb_movie_id) !== null) }}, tmdb_tv_exists: {{ Js::from(old('tv_exists_on_tmdb', $torrent->tmdb_tv_id) !== null) }}, imdb_title_exists: {{ Js::from(old('title_exists_on_imdb', $torrent->imdb) !== null) }}, tvdb_tv_exists: {{ Js::from(old('tv_exists_on_tvdb', $torrent->tvdb) !== null) }}, mal_anime_exists: {{ Js::from(old('anime_exists_on_mal', $torrent->mal) !== null) }}, igdb_game_exists: {{ Js::from(old('game_exists_on_igdb', $torrent->igdb) !== null) }}, + // Porn meta contracts + movie_exists_on_theporndb: {{ Js::from(old('movie_exists_on_theporndb', $torrent->theporndb_movie_id) ? true : false) }}, + jav_exists_on_theporndb: {{ Js::from(old('jav_exists_on_theporndb', $torrent->theporndb_jav_id) ? true : false) }}, + scene_exists_on_theporndb: {{ Js::from(old('scene_exists_on_theporndb', $torrent->theporndb_scene_id) ? true : false) }}, + stashdb_exists: {{ Js::from(old('stashdb_exists', $torrent->stashdb_id) ? true : false) }}, + fansdb_exists: {{ Js::from(old('fansdb_exists', $torrent->fansdb_id) ? true : false) }}, }" >

{{ __('common.edit') }}: {{ $torrent->name }}

@@ -105,167 +110,157 @@

-
-
-

- theporndb_scene_id)) - x-model="scene_exists_on_theporndb" - @change="scene_exists_on_theporndb = !!$event.target.checked" - /> - -

-

- - - -

-
-
-

- theporndb_movie_id)) - x-model="movie_exists_on_theporndb" - @change="movie_exists_on_theporndb = !!$event.target.checked" - /> - -

-

- - - -

-
-
-

- theporndb_jav_id)) - x-model="jav_exists_on_theporndb" - @change="jav_exists_on_theporndb = !!$event.target.checked" - /> - -

-

- - - -

-
-
-

- stashdb_id)) - x-model="stashdb_exists" - @change="stashdb_exists = !!$event.target.checked" - /> - -

-

- - - -

-
-
-

- fansdb_id)) - x-model="fansdb_exists" - @change="fansdb_exists = !!$event.target.checked" - /> - -

-

- - - -

-
+
+

+ theporndb_scene_id)) + x-model="scene_exists_on_theporndb" + /> + +

+

+ + + +

+

+ theporndb_movie_id)) + x-model="movie_exists_on_theporndb" + /> + +

+

+ + + +

+

+ theporndb_jav_id)) + x-model="jav_exists_on_theporndb" + /> + +

+

+ + + +

+

+ stashdb_id)) + x-model="stashdb_exists" + /> + +

+

+ + + +

+

+ fansdb_id)) + x-model="fansdb_exists" + /> + +

+

+ + + +