Rename Amazon to Metadata

This commit is contained in:
DariusIII
2026-04-14 15:23:35 +02:00
parent 49ca479083
commit c07a1d3df9
9 changed files with 33 additions and 33 deletions
+7 -7
View File
@@ -41,7 +41,7 @@ class TmuxLayoutBuilder
// Postprocessing
'postprocessing_additional' => ' Additional',
'postprocessing_tv' => '󰟴 TV/Anime',
'postprocessing_amazon' => ' Amazon',
'postprocessing_amazon' => ' Metadata',
'postprocessing_movies' => ' Movies',
// IRC
@@ -112,14 +112,14 @@ class TmuxLayoutBuilder
$this->paneManager->selectPane('1.0');
$this->paneManager->splitHorizontal('1', '50%', $this->getPaneDisplayName('removeCrapReleases'));
// Window 2: Postprocessing (Left: Additional + TV + Amazon, Right: Movies + XXX)
// Window 2: Postprocessing (Left: Additional + TV + Metadata, Right: Movies + XXX)
$this->paneManager->createWindow(2, ' Post');
$this->paneManager->setPaneTitle('2.0', $this->getPaneDisplayName('postprocessing_additional'));
// Split horizontally to create left and right halves (don't set title yet)
$this->paneManager->splitHorizontal('2', '50%', '');
// Left side (2.0): split vertically for TV and Amazon
// Left side (2.0): split vertically for TV and Metadata
$this->paneManager->selectPane('2.0');
$this->paneManager->splitVertical('2', '67%', $this->getPaneDisplayName('postprocessing_tv'));
$this->paneManager->splitVertical('2', '50%', $this->getPaneDisplayName('postprocessing_amazon'));
@@ -157,14 +157,14 @@ class TmuxLayoutBuilder
$this->paneManager->selectPane('1.0');
$this->paneManager->splitHorizontal('1', '50%', $this->getPaneDisplayName('removeCrapReleases'));
// Window 2: Postprocessing (Left: Additional + TV + Amazon, Right: Movies + XXX)
// Window 2: Postprocessing (Left: Additional + TV + Metadata, Right: Movies + XXX)
$this->paneManager->createWindow(2, ' Post');
$this->paneManager->setPaneTitle('2.0', $this->getPaneDisplayName('postprocessing_additional'));
// Split horizontally to create left and right halves (don't set title yet)
$this->paneManager->splitHorizontal('2', '50%', '');
// Left side (2.0): split vertically for TV and Amazon
// Left side (2.0): split vertically for TV and Metadata
$this->paneManager->selectPane('2.0');
$this->paneManager->splitVertical('2', '67%', $this->getPaneDisplayName('postprocessing_tv'));
$this->paneManager->splitVertical('2', '50%', $this->getPaneDisplayName('postprocessing_amazon'));
@@ -195,7 +195,7 @@ class TmuxLayoutBuilder
$this->paneManager->selectPane('0.0');
$this->paneManager->splitHorizontal('0', '67%', $this->getPaneDisplayName('sequential'));
// Window 1: Amazon postprocessing
// Window 1: Metadata postprocessing
$this->paneManager->createWindow(1, ' Utils');
$this->paneManager->setPaneTitle('1.0', $this->getPaneDisplayName('fixReleaseNames'));
$this->paneManager->selectPane('1.0');
@@ -229,7 +229,7 @@ class TmuxLayoutBuilder
* Window layout:
* - Window 0: Monitor + Processing panes (binaries/backfill/releases)
* - Window 1: Utilities (fix names, remove crap)
* - Window 2: Postprocessing (additional, tv/anime, movies, amazon)
* - Window 2: Postprocessing (additional, tv/anime, movies, metadata)
* - Window 3: IRC Scraper
* - Window 4+: Monitoring tools (htop, nmon, vnstat, tcptrack, bwm-ng, mytop, redis, console)
*/
+4 -4
View File
@@ -713,7 +713,7 @@ class TmuxTaskRunner
}
/**
* Run Amazon post-processing (Books, Music, Games, Console)
* Run metadata post-processing (Books, Music, Games, Console)
*
* @param array<string, mixed> $runVar
*/
@@ -723,7 +723,7 @@ class TmuxTaskRunner
$pane = '2.2';
if ($enabled !== 1) {
return $this->disablePane($pane, 'Post-process Amazon', 'disabled in settings');
return $this->disablePane($pane, 'Post-process Metadata', 'disabled in settings');
}
$hasWork = (int) ($runVar['counts']['now']['processmusic'] ?? 0) > 0
@@ -732,7 +732,7 @@ class TmuxTaskRunner
|| (int) ($runVar['counts']['now']['processgames'] ?? 0) > 0;
if (! $hasWork) {
return $this->disablePane($pane, 'Post-process Amazon', 'no music/books/games to process');
return $this->disablePane($pane, 'Post-process Metadata', 'no music/books/games to process');
}
$niceness = Settings::settingValue('niceness') ?? 2;
@@ -770,7 +770,7 @@ class TmuxTaskRunner
// If no commands were added (no work available), disable the pane
if (empty($commands)) {
return $this->disablePane($pane, 'Post-process Amazon', 'no work available for any enabled type');
return $this->disablePane($pane, 'Post-process Metadata', 'no work available for any enabled type');
}
$sleep = (int) ($runVar['settings']['post_timer_amazon'] ?? 300);
+2 -2
View File
@@ -89,7 +89,7 @@
<!-- URL -->
<div>
<label for="url" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">
Amazon URL
Source URL
</label>
<input type="url"
id="url"
@@ -98,7 +98,7 @@
class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-200 rounded-md focus:ring-blue-500 focus:border-blue-500">
@if(!empty($book['url']))
<a href="{{ $book['url'] }}" target="_blank" class="text-sm text-blue-600 dark:text-blue-400 hover:underline mt-1 inline-block">
<i class="fas fa-external-link-alt mr-1"></i>View on Amazon
<i class="fas fa-external-link-alt mr-1"></i>View Source
</a>
@endif
</div>
+1 -1
View File
@@ -80,7 +80,7 @@
<a href="{{ $book->url }}"
target="_blank"
class="ml-3 text-green-600 dark:text-green-400 hover:text-green-900 dark:hover:text-green-300"
title="View on Amazon">
title="View Source">
<i class="fas fa-external-link-alt"></i>
</a>
@endif
+2 -2
View File
@@ -89,7 +89,7 @@
<!-- URL -->
<div>
<label for="url" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">
Amazon URL
Source URL
</label>
<input type="url"
id="url"
@@ -98,7 +98,7 @@
class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-200 rounded-md focus:ring-blue-500 focus:border-blue-500">
@if(!empty($con['url']))
<a href="{{ $con['url'] }}" target="_blank" class="text-sm text-blue-600 dark:text-blue-400 hover:underline mt-1 inline-block">
<i class="fas fa-external-link-alt mr-1"></i>View on Amazon
<i class="fas fa-external-link-alt mr-1"></i>View Source
</a>
@endif
</div>
@@ -103,7 +103,7 @@
<a href="{{ $console->url }}"
target="_blank"
class="text-green-600 dark:text-green-400 hover:text-green-900 dark:hover:text-green-300"
title="View on Amazon">
title="View Source">
<i class="fas fa-external-link-alt"></i>
</a>
@endif
+11 -11
View File
@@ -379,7 +379,7 @@
</option>
@endforeach
</select>
<p class="mt-1 text-sm text-gray-500">Whether to attempt to lookup music information from Amazon.</p>
<p class="mt-1 text-sm text-gray-500">Whether to attempt to lookup music information from metadata providers.</p>
</div>
<div>
@@ -407,7 +407,7 @@
</option>
@endforeach
</select>
<p class="mt-1 text-sm text-gray-500">Whether to attempt to lookup game information from Amazon.</p>
<p class="mt-1 text-sm text-gray-500">Whether to attempt to lookup game information from metadata providers.</p>
</div>
</div>
</div>
@@ -789,7 +789,7 @@
</label>
<input type="text" id="maxaddprocessed" name="maxaddprocessed" value="{{ $site['maxaddprocessed'] ?? '' }}"
class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:ring-blue-500 focus:border-blue-500 bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-100">
<p class="mt-1 text-sm text-gray-500">The maximum amount of releases to process for passwords/previews/mediainfo per run. Every release gets processed here. This uses NNTP an connection, 1 per thread. This does not query Amazon.</p>
<p class="mt-1 text-sm text-gray-500">The maximum amount of releases to process for passwords/previews/mediainfo per run. Every release gets processed here. This uses NNTP an connection, 1 per thread. This does not query external metadata providers.</p>
</div>
<div>
@@ -843,7 +843,7 @@
</label>
<input type="text" id="maxmusicprocessed" name="maxmusicprocessed" value="{{ $site['maxmusicprocessed'] ?? '' }}"
class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:ring-blue-500 focus:border-blue-500 bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-100">
<p class="mt-1 text-sm text-gray-500">The maximum amount of music to process with amazon per run. This does not use an NNTP connection.</p>
<p class="mt-1 text-sm text-gray-500">The maximum amount of music to process with metadata lookups per run. This does not use an NNTP connection.</p>
</div>
<div>
@@ -852,7 +852,7 @@
</label>
<input type="text" id="maxgamesprocessed" name="maxgamesprocessed" value="{{ $site['maxgamesprocessed'] ?? '' }}"
class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:ring-blue-500 focus:border-blue-500 bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-100">
<p class="mt-1 text-sm text-gray-500">The maximum amount of games to process with amazon per run. This does not use an NNTP connection.</p>
<p class="mt-1 text-sm text-gray-500">The maximum amount of games to process with metadata lookups per run. This does not use an NNTP connection.</p>
</div>
<div>
@@ -861,7 +861,7 @@
</label>
<input type="text" id="maxbooksprocessed" name="maxbooksprocessed" value="{{ $site['maxbooksprocessed'] ?? '' }}"
class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:ring-blue-500 focus:border-blue-500 bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-100">
<p class="mt-1 text-sm text-gray-500">The maximum amount of books to process with amazon per run. This does not use an NNTP connection</p>
<p class="mt-1 text-sm text-gray-500">The maximum amount of books to process with metadata lookups per run. This does not use an NNTP connection</p>
</div>
<div>
@@ -875,14 +875,14 @@
<div>
<label for="amazonsleep" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">
<i class="fas fa-hourglass mr-1"></i>Amazon Sleep Time
<i class="fas fa-hourglass mr-1"></i>Metadata Lookup Sleep Time
</label>
<div class="flex gap-2">
<input type="text" id="amazonsleep" name="amazonsleep" value="{{ $site['amazonsleep'] ?? '' }}"
class="flex-1 px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:ring-blue-500 focus:border-blue-500 bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-100">
<span class="px-3 py-2 bg-gray-100 dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-md">ms</span>
</div>
<p class="mt-1 text-sm text-gray-500">Sleep time in milliseconds to wait in between amazon requests. If you thread post-proc, multiply by the number of threads. ie Postprocessing Threads = 12, Amazon sleep time = 12000</p>
<p class="mt-1 text-sm text-gray-500">Sleep time in milliseconds to wait between external metadata requests. If you thread post-proc, multiply by the number of threads. ie Postprocessing Threads = 12, sleep time = 12000</p>
</div>
</div>
</div>
@@ -912,7 +912,7 @@
</label>
<input type="text" id="maxnfoprocessed" name="maxnfoprocessed" value="{{ $site['maxnfoprocessed'] ?? '' }}"
class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:ring-blue-500 focus:border-blue-500 bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-100">
<p class="mt-1 text-sm text-gray-500">The maximum amount of NFO files to process per run. This uses NNTP an connection, 1 per thread. This does not query Amazon.</p>
<p class="mt-1 text-sm text-gray-500">The maximum amount of NFO files to process per run. This uses NNTP an connection, 1 per thread. This does not query external metadata providers.</p>
</div>
<div>
@@ -1060,11 +1060,11 @@
<div>
<label for="postthreadsnon" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">
<i class="fas fa-tasks mr-1"></i>Postprocessing Non-Amazon Threads
<i class="fas fa-tasks mr-1"></i>Postprocessing Video Metadata Threads
</label>
<input type="text" id="postthreadsnon" name="postthreadsnon" value="{{ $site['postthreadsnon'] ?? '' }}"
class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:ring-blue-500 focus:border-blue-500 bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-100">
<p class="mt-1 text-sm text-gray-500">The number of threads for non-amazon postprocessing. This includes movies, anime and tv lookups.</p>
<p class="mt-1 text-sm text-gray-500">The number of threads for video metadata postprocessing. This includes movies, anime and tv lookups.</p>
</div>
<div>
@@ -239,7 +239,7 @@
</div>
</x-form.group>
<x-form.group label="Postprocess Amazon" for="post_amazon" help="Books, music and games lookups.">
<x-form.group label="Postprocess Metadata" for="post_amazon" help="Books, music and games lookups.">
<x-select id="post_amazon" name="post_amazon" class="w-full">
@foreach($yesno_ids as $index => $val)
<option value="{{ $val }}" {{ ($site['post_amazon'] ?? '') == $val ? 'selected' : '' }}>
@@ -249,14 +249,14 @@
</x-select>
</x-form.group>
<x-form.group label="Postprocess Amazon Sleep Timer" for="post_timer_amazon">
<x-form.group label="Postprocess Metadata Sleep Timer" for="post_timer_amazon">
<div class="flex gap-2">
<x-input id="post_timer_amazon" name="post_timer_amazon" type="number" value="{{ $site['post_timer_amazon'] ?? 300 }}" class="flex-1" />
<span class="px-3 py-2 bg-gray-100 dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-md text-sm">seconds</span>
</div>
</x-form.group>
<x-form.group label="Postprocess Non-Amazon" for="post_non" help="Movies, anime and TV lookups.">
<x-form.group label="Postprocess Video Metadata" for="post_non" help="Movies, anime and TV lookups.">
<x-select id="post_non" name="post_non" class="w-full">
@foreach($yesno_ids as $index => $val)
<option value="{{ $val }}" {{ ($site['post_non'] ?? '') == $val ? 'selected' : '' }}>
@@ -266,7 +266,7 @@
</x-select>
</x-form.group>
<x-form.group label="Postprocess Non-Amazon Sleep Timer" for="post_timer_non">
<x-form.group label="Postprocess Video Metadata Sleep Timer" for="post_timer_non">
<div class="flex gap-2">
<x-input id="post_timer_non" name="post_timer_non" type="number" value="{{ $site['post_timer_non'] ?? 300 }}" class="flex-1" />
<span class="px-3 py-2 bg-gray-100 dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-md text-sm">seconds</span>
+1 -1
View File
@@ -130,7 +130,7 @@
<div class="mt-2">
<a target="_blank" href="{{ $site['dereferrer_link'] }}{{ $result->url }}"
title="View Game page" class="inline-flex items-center px-2 py-1 bg-gray-600 text-white text-xs rounded hover:bg-gray-700">
<i class="fa fa-shopping-cart mr-1"></i>Amazon
<i class="fa fa-shopping-cart mr-1"></i>Source
</a>
</div>
@endif